Sha256: 8c5996870d441c37c52a167478abdcf2c7982562a5e20869a09c7c3d46fb0708

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

module Sastrawi
  module Morphology
    module Disambiguator
      class DisambiguatorPrefixRule16
        def disambiguate(word)
          contains = /^meng([g|h|q|k])(.*)$/.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_rule16.rb