Sha256: ce0886d1f37b5da90585552aec07f157698f927ad50c17f270365b2d81e0ee65
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule26b def disambiguate(word) contains = /^pem([aiueo])(.*)$/.match(word) if contains matches = contains.captures return "p#{matches[0]}#{matches[1]}" 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_rule26b.rb |