Reputation: 11143
How to get relevance percentage between two string in C#?
Upvotes: 2
Views: 1803
Reputation: 1
check out the open source package SimMetrics on sourceforge - this should cover every possible need fairly simply.
Upvotes: 0
Reputation: 33388
There's no simple answer for this, but have a look at Wikipedia's string metrics article. There are lots of different approaches, though the most widely known is probably the Levenshtein distance, which assigns an integer ranking to a pair of strings to quantify the 'distance' between them.
Upvotes: 0
Reputation: 16812
Are you looking for something similar to the the Levenshtein distance, which is the distance between two strings is given by the minimum number of operations needed to transform one string into the other?
Upvotes: 7