Sha256: 6735380d98b49854518b2b5edfad4a50f5dd38ee710f77508951f4bc901b7cf5
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule37b def disambiguate(word) contains = /^([bcdfghjklmnpqrstvwxyz])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
3 entries across 3 versions & 1 rubygems