Arshdeep Arshdeep - 5 months ago 32
PHP Question

How to calculate the percentage of similarity or difference between two texts / strings?

Explaining it further

Assume i have two strings like below

I am a super boy who can Fly! Really .

I am super boy who can Break walls!
Really .

So some characters are similar
I am super boy who can
Really .
Is there anything ready to use to find percentage similarity/diffrence between those two strings.

Answer Source

You should look into Levenshtein Distance.