Sha256: 4b737073b670230149e359e00a1bbc641e7bed630f29bd19a7b9bafe1dccb1e5
Contents?: true
Size: 347 Bytes
Versions: 5
Compression:
Stored size: 347 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule21a def disambiguate(word) contains = /^per([aiueo])(.*)$/.match(word) if contains matches = contains.captures return matches[0] << matches[1] end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems