Sha256: cac449ffae5494a2cb03f52dfee37bfc389406fb5ca40a91021bd97f4a20b6f5
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule37a def disambiguate(word) contains = /^([bcdfghjklmnpqstvwxyz])(er[aiueo])(.*)$/.match(word) if contains matches = contains.captures return matches[0] << matches[1] << matches[2] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sastrawi-0.1.0 | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule37a.rb |
sastrawi-0.1.0.pre | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule37a.rb |