I am looking for a gem that can compare two strings (in this case paragraphs of text) and be able to gauge the likelihood that they are similar in content (with perhaps only a few words rearranged, changed). I believe that SO uses something similar when users submit questions.
Share
I’d probably use something like Diff::LCS:
It uses the longest common subsequence algorithm (the method for using LCS to get a diff is described on the wiki page).