I am trying to compare 2 paragraphs of strings the output of which has to be the percentage of similarity.
I have tried doing this using the diff method
diff
See my similar Question here what I needed but did not know what it was called was a Levenshtein distance algorithm