Sha256: 3ad62b98358166c8091a2df0a239eb951940f613c107d4954ba3a25dfb944460
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule17b def disambiguate(word) contains = /^meng([aiueo])(.*)$/.match(word) if contains matches = contains.captures return "k#{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_rule17b.rb |