Id like to compare two strings in Ruby and find their similarity
I\'ve had a look at the Levenshtein gem but it seems this was last updated in 2008 and
Levenshtein
I can recommend the fuzzy-string-match gem.
You can use it like this (taken from the docs):
require "fuzzystringmatch" jarow = FuzzyStringMatch::JaroWinkler.create(:native) p jarow.getDistance("jones", "johnson")
It will return a score ~0.832 which tells how good those strings match.
~0.832