Sha256: 15014fb86c44392786ee7f0399d7789dcea336f7190702c475354a284cc4a3f2
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule29 def disambiguate(word) contains = /^pen([bcdfghjklmnpqrstvwxyz])(.*)$/.match(word) if contains matches = contains.captures return 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.0.pre | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule29.rb |