To create the perfect fuzzy string option, it's important to know about the context of the strings. When it comes to small typos, Levenshtein can be pretty good. When it comes to incorrect sound, you can use a phonetic algorithm such as soundex or metaphone. In most cases, you need a combination of the following algorithms and some more specific hand-written files.
- Needleman-wunsch
- Soundex
- Metaphone
- Levenshtein distance
- Bitmap image
- Hamming Distance
There is no better algorithm for comparing fuzzy strings. It's all about the context in which it is used, so you need to tell us about where you want to use string matching.
source share