Sha256: 6ac33b08bda6f24e22b1135c1002a92726dd26ecf40a0b9e5238fcf0e6e14aff

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

module Sastrawi
  module Morphology
    module Disambiguator
      class DisambiguatorPrefixRule30b
        def disambiguate(word)
          contains = /^peng([aiueo])(.*)$/.match(word)

          if contains
            matches = contains.captures

            return "k#{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_rule30b.rb