Sha256: 6bbf2e0a46fcd53dfbb990bc338a47c942be58d0e4bf5b8f2ff5f736b451eb89
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule38a def disambiguate(word) contains = /^([bcdfghjklmnpqrstvwxyz])(el[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