Sha256: cb76d73fdd07974f095a19f0989201d7169e5432bc469fa441eb1f0873d65e71
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule5 def disambiguate(word) contains = /^be([bcdfghjklmnpqrstvwxyz])(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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sastrawi-0.1.0 | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule5.rb |
sastrawi-0.1.0.pre | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule5.rb |