Sha256: 729b0b4934f8d63e48e6c46cf5504cbedf81ca72ddd128bb00e5e2d551802d23
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule8 def disambiguate(word) contains = /^ter([bcdfghjklmnpqrstvwxyz])(.*)$/.match(word) if contains matches = contains.captures return if matches[0] == 'r' || /^er(.*)$/.match(matches[1]) return "#{matches[0]}#{matches[1]}" 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_rule8.rb |