Sha256: 5cddce1d7663aa710d2ffcdb5a07c069ec35657220e3e845c2d537e9d220685c

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

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

          if contains
            matches = contains.captures

            return "r#{matches[0]}"
          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_rule1b.rb