Sha256: f1a62f854fa74714ce57164fea259bc9fb0f7ca0d0dffdc6ff1b1e06a5c4215a

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

module Sastrawi
  module Morphology
    module Disambiguator
      class DisambiguatorPrefixRule6b
        def disambiguate(word)
          contains = /^ter([aiueo].*)$/.match(word)

          if contains
            matches = contains.captures

            return "r#{matches[0]}"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sastrawi-0.1.4 lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule6b.rb