Sha256: b1d388d8015f266d88948622e5da1d2fee9b84236ad30fca80622b56b7680146

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

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

          if contains
            matches = contains.captures

            return "ny#{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_rule18a.rb