Lightweight to stem Arabic words
This small gem allows you to stem Arabic words i.e. to remove the common suffixes and prefixes. It is a lightweight stemmer.
Examples
المعلمون => معلم
المدرسة => مدرسة
الأجهزة => اجهزة
Add this line to your application's Gemfile:
gem 'arabic_stemmer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install arabic_stemmer
word = "المعلمون" result = ArabicStemmer.to_arabic_stem(word)
- Fork it ( https://github.com/shuaibzahda/arabic_stemmer/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Please ensure all unit tests pass. To run them user: rake test