Sha256: c23d5e038410db468ff2b71b0920288305f237a4a947f9442d579b5d18c23154
Contents?: true
Size: 450 Bytes
Versions: 4
Compression:
Stored size: 450 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule9 def disambiguate(word) contains = /^te([bcdfghjklmnpqrstvwxyz])er([bcdfghjklmnpqrstvwxyz])(.*)$/.match(word) if contains matches = contains.captures return if matches[0] == 'r' return matches[0] << 'er' << matches[1] << matches[2] end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems