Created
January 11, 2012 21:35
-
-
Save sunnygleason/1596875 to your computer and use it in GitHub Desktop.
Apply Snowball Stemming Algorithm to Words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'lingua/stemmer' | |
stemmer = Lingua::Stemmer.new(:language => "en") | |
puts ARGV.map { |w| stemmer.stem(w) }.join(" ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment