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