Answer the question
In order to leave comments, you need to log in
How to implement inaccurate string comparison?
There are two lines:
Erin Fitzgerald
OEridn Fitzgserdalds
There may be a completely different number of words and letters represented in them. How to determine the similarity of strings in percent?
For example, line 2 is similar to line 1 by 40% .
Answer the question
In order to leave comments, you need to log in
Similarity can be calculated, for example, from the Levenshtein distance .
example another example
The smaller the distance, the more similar the strings.
How to convert this distance into percentages, decide for yourself if you need it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question