gem install stemmer
require 'stemmer'
This will import the default Stemmer. At the moment there is only one, however other stemmers may be included in future. To import a specific stemmer,
require 'stemmer/porter'
By default the Porter stemmer will add the stem method to String. You can also include the Stemmable module in your own classes. The stem method uses self.dup.to_str as the basis for stemming.