3

Possible Duplicate:
Are there any Fuzzy Search or String Similarity Functions libraries written for C#?

I need to check the similarity of input value -which one user entered- to our records.

12345 vs 1234
12345 vs 13245
Robert vs Robret

etc...

In short; I need to calculate the similarity and tolerate the input in some ratio...

Community
  • 1
  • 1
Nime Cloud
  • 6,162
  • 14
  • 43
  • 75

3 Answers3

3

The Levenshtein distance is a string similarity algorithm you could use.

Joey
  • 344,408
  • 85
  • 689
  • 683
1

I think you might be looking for an Edit Distance algorithm.

pablochan
  • 5,625
  • 27
  • 42
1

Google shows me this

Rolando Cruz
  • 2,834
  • 1
  • 16
  • 24
  • There is a sample project which one contains Levenstein distance & some other cool algorithms including String.Similarity() in percent. – Nime Cloud Sep 09 '11 at 09:08