Sha256: 8b26400e2038c99ba397ae5223c2d507d6cf363d62ef07506412c1a64b23e5c2

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

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

          if contains
            matches = contains.captures

            return matches[0] << matches[1] << matches[2]
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sastrawi-0.1.0 lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule38a.rb
sastrawi-0.1.0.pre lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule38a.rb