class Sastrawi::Morphology::Disambiguator::DisambiguatorPrefixRule17d

Public Instance Methods

disambiguate(word) click to toggle source
# File lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17d.rb, line 5
def disambiguate(word)
  contains = /^meng([aiueo])(.*)$/.match(word)

  if contains
    matches = contains.captures

    return "ng#{matches[0]}#{matches[1]}"
  end
end