Sha256: 4f1d393548629cd0052479aad828e4b97d8e4a1850deaa1cb6e83ad0bfd9385c

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module Sastrawi
  module Morphology
    module Disambiguator
      class DisambiguatorPrefixRule19
        def disambiguate(word)
          contains = /^memp([abcdfghijklmopqrstuvwxyz])(.*)$/.match(word)

          if contains
            matches = contains.captures

            return "p#{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_rule19.rb