Sha256: 5198c2594e7dd848f854044bc64fa19c841154db15c66c70c02fd86ec2342034
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule5 def disambiguate(word) contains = /^be([bcdfghjklmnpqstvwxyz])(er[bcdfghjklmnpqrstvwxyz])(.*)$/.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