Sha256: 5f51362dd04e1895029087692fbbabcd9f8836199f267cad94ead9e44180dfa2
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule5 def disambiguate(word) contains = /^be([bcdfghjklmnpqstvwxyz])(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_rule5.rb |