Using Fuzzy Matching to Search by Sound with Python
When you’re writing code to search a database, you can’t rely on all those data entries being spelled correctly. Doug Hellmann, developer at DreamHost and author of The Python Standard Library By Example, reviews available options for searching databases by the sound of the target’s name, rather than relying on the entry’s accuracy.
Searching for a person’s name in a database is a unique challenge. Depending on the source and age of the data, you may not be able to count on the spelling of the name being correct, or even the same name being spelled the same way when it appears more than once.
Doug Hellmann