Sha256: d53b25f2eebc1d909741edf70fe7b6d45c879c2436a4d8e11148c58c39dc5f0a

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

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

          if contains
            matches = contains.captures

            return "n#{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_rule28a.rb