Sha256: 2ac7fa6f64ee948dfe589dfd23085025adcffb338b7dc9e9f9497d72549941d0
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
module Sastrawi module Morphology module Disambiguator class DisambiguatorPrefixRule25 def disambiguate(word) contains = /^pem([bfv])(.*)$/.match(word) if contains matches = contains.captures return "#{matches[0]}#{matches[1]}" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sastrawi-0.1.4 | lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule25.rb |