Sha256: b27a7d356bc1e1d7ba40717010001c523c1c9013fe951f524683a4c1d2bd1db5
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule37b def disambiguate(word) contains = /^([bcdfghjklmnpqrstvwxyz])er([aiueo])(.*)$/.match(word) if contains matches = contains.captures return "#{matches[0]}#{matches[1]}#{matches[2]}" 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_rule37b.rb |