<p>As per <a href="https://stackoverflow.com/questions/41970/lightweight-fuzzy-search-library#41975">this</a> comment in a related thread, I'd like to know why Levenshtein distance based methods are better than Soundex.</p>

[{'answer_id': 42025, 'author': 'Keith', 'author_id': 905, 'author_profile': 'https://Stackoverflow.com/users/905', 'pm_score': 4, 'selected': False, 'text': '<p>Soundex is rather primitive - it was originally developed to be hand calculated. It results in a key that can be compared.</p>\n\n<p>Soundex works well with western names, as it was originally developed for US census data. It\'s intended for phonetic comparison.</p>\n\n<p>Levenshtein distance looks at two values and produces a value based on their similarity. It\'s looking for missing or substituted letters.</p>\n\n<p>Basically Soundex is better for finding that "Schmidt" and "Smith" might be the same surname.</p>\n\n<p>Levenshtein distance is better for spotting that the user has mistyped "Levnshtein" ;-)</p>\n'}, {'answer_id': 42037, 'author': 'ColinYounger', 'author_id': 1223, 'author_profile': 'https://Stackoverflow.com/users/1223', 'pm_score': 0, 'selected': False, 'text': '<p><a href="https://stackoverflow.com/questions/42013/levenshtein-distance-based-methods-vs-soundex#42025">@Keith</a>:</p>\n\n<p>As I posted on the other question, Daitch-Mokotoff is better for us Europeans (and I\'d argue the US).</p>\n\n<p>I\'ve also read the Wiki on Levenshtein. But I don\'t see why (in real life) it\'s <em>better</em> for the user than Soundex. </p>\n'}, {'answer_id': 42047, 'author': 'erickson', 'author_id': 3474, 'author_profile': 'https://Stackoverflow.com/users/3474', 'pm_score': 3, 'selected': False, 'text': '<p>I would suggest using <a href="http://en.wikipedia.org/wiki/Metaphone" rel="noreferrer">Metaphone</a>, not Soundex. As noted, Soundex was developed in the 19th century for American names. Metaphone will give you some results when checking the work of poor spellers who are "sounding it out", and spelling phonetically.</p>\n\n<p>Edit distance is good at catching typos such as repeated letters, transposed letters, or hitting the wrong key.</p>\n\n<p>Consider the application to decide which will fit your users best&mdash;or use both together, with Metaphone complementing the suggestions produced by Levenshtein.</p>\n\n<p>With regard to the original question, I\'ve used <a href="http://en.wikipedia.org/wiki/N-gram#n-grams_for_approximate_matching" rel="noreferrer">n-grams</a> successfully in information retrieval applications.</p>\n'}, {'answer_id': 42057, 'author': 'Keith', 'author_id': 905, 'author_profile': 'https://Stackoverflow.com/users/905', 'pm_score': 2, 'selected': False, 'text': '<p>I agree with you on Daitch-Mokotoff, Soundex is biased because the original US census takers wanted \'Americanized\' names.</p>\n\n<p>Maybe an example on the difference would help:</p>\n\n<p>Soundex puts addition value in the start of a word - in fact it only considers the first 4 phonetic sounds.  So while "Schmidt" and "Smith" will match "Smith" and "Wmith" won\'t.</p>\n\n<p>Levenshtein\'s algorithm would be better for finding typos - one or two missing or replaced letters produces a high correlation, while the phonetic impact of those missing letters is less important.</p>\n\n<p>I don\'t think either is better, and I\'d consider both a distance algorithm and a phonetic one for helping users correct typed input.</p>\n'}]
['https://Stackoverflow.com/questions/42013', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1223/']