Sha256: 8aef8be5644346572cc3092bb11a762b9c9250090dc271a164e5fe82213df4f5
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule36 def disambiguate(word) contains = /^pe([bcdfghjkpqstvxz])(er[bcdfghjklmnpqrstvwxyz])(.*)$/.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_rule36.rb |