Sha256: 9db75b117ef2f90e1bf856d4fc6e8b04492a123884884e770ea196cdc94275ab
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule39a def disambiguate(word) contains = /^([bcdfghjklmnpqstvwxyz])(em[aiueo])(.*)$/.match(word) if contains matches = contains.captures return matches[0] << matches[1] << matches[2] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sastrawi-0.1.0 | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule39a.rb |
sastrawi-0.1.0.pre | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule39a.rb |