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