A simple Greek stemmer algorithm.
This algorithm is based on this paper from George Ntais.
Add this line to your application's Gemfile:
gem 'greek_stemmer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install greek_stemmer
In order to use this stemmer you should normalize input. Normalization means two things for this algorithm: detone and upcase.
require 'greek_stemmer'
GreekStemmer.stem("ΠΟΣΟΤΗΤΑ") # => "ΠΟΣΟΤΗΤ"
Original work: bandito
- Fork it ( http://github.com//greek_stemmer/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Perform changes and run
bundle exec rake update_greek_stemming_sample
to update the stemming samples - Commit your changes (
git commit -a
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
greek_stemmer is licensed under MIT License. See LICENSE for details.