Sha256: 802fcadc4a575f0e22233972927fa66115f460275de145a3160355f10219386d
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule3 def disambiguate(word) contains = /^ber([bcdfghjklmnpqrstvwxyz])([a-z])er([aiueo])(.*)$/.match(word) if contains matches = contains.captures return if matches[0] == 'r' return "#{matches[0]}#{matches[1]}er#{matches[2]}#{matches[3]}" 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_rule3.rb |