Sha256: 95c589fdf3a9bd8ad19fd981e1a0eb2b7a3b0f549df84faded1244b8be28d745
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule31a def disambiguate(word) contains = /^peny([aiueo])(.*)$/.match(word) if contains matches = contains.captures return "ny#{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_rule31a.rb |