Sha256: 6c9c4c7f7f116d3eceef8270c96d0b1d5c758b8645cf553e79f39e86625ed481
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule40b def disambiguate(word) contains = /^([bcdfghjklmnpqrstvwxyz])in([aiueo])(.*)$/.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_rule40b.rb |