Sha256: 01ed679bcbe7f541497bb232a81ac0eb5bf724ea3aae868740cc92b0b043dd50

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

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

          if contains
            matches = contains.captures

            return "m#{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_rule26a.rb