Ruby Minimal Stemmer Implementation
Implements the "S-Stemmer" from How Effective Is Suffixing? Donna Harman. Just like Lucene's EnglishMinimalStemmer.
Installation
gem install minimal_stemmer
Usage
require 'minimal_stemmer'
MinimalStemmer.stem('words')
# => 'word'
It's also possible to include it so it adds a #stem
method to the core ruby
string method. For safety, this must be included explicitly:
require 'minimal_stemmer/core_ext/string'
'words'.stem
# => 'word'