From: Tim Fletcher Date: 2006-10-25T17:35:17+09:00 Subject: Re: Text Not a dumb question, seeing as the documentation isn't actually included in the gem. I'll fix that in the next release. For Levenshtein, the following should work: require 'rubygems' require 'text' Text::Levenshtein.distance(a, b) You can also view the main README here: http://rubyforge.org/cgi-bin/viewvc.cgi/README.rdoc?revision=11&root=text Hope that helps! Caleb Jones wrote: > Tim Fletcher wrote: > > Version 1.1.0 now includes the Porter Stemmer. Thanks for the > > suggestion Alex! > > Sorry for the dumb question, but I couldn't find ANY documentation in > the Text gem directories so I'll ask here. How do you include and use > this libarary? I think that "require_gem 'Text'" works but how do I > then use it? When I try: > > Text::Levenshtein(str1, str2) > > or > > Text.Levenshtein(str1, str2) > > ..I get a "undefined method `Levenshtein' for Text:Module" > > Thanks for the help. > > -- > Posted via http://www.ruby-forum.com/.