From: Siep Korteling Date: 2008-07-09T00:27:31+09:00 Subject: Re: String matching/comparing, statistical similarity Chris Chris wrote: > Hi there, > > I am trying to find a solution for this problem: > (...) > Second thing I thought of, maybe there's a way in Ruby to compare > strings and get back a percentage of how similar the strings are? I don't think this can be done. You may be able to come up with something but you'll never know if it's correct. Anyway, Levenshtein distance is available: http://raa.ruby-lang.org/project/levenshtein/ Regards, Siep -- Posted via http://www.ruby-forum.com/.