Fonetica-SQL implements the BuscaBR algorithm to match misspelled or ambiguous names at Brazil. This project is fork to http://github.com/sobrinho/fonetica.
mysql> \. /path/to/mysql-function-foneticalize.sql
mysql> select foneticalize('wagner batista'), foneticalize('vagner baptista');
+--------------------------------+---------------------------------+
| foneticalize('wagner batista') | foneticalize('vagner baptista') |
+--------------------------------+---------------------------------+
| VM BT                          | VM BT                           |
+--------------------------------+---------------------------------+
Fonetica-SQL is hosted on Github: http://github.com/vyper/fonetica-sql, where your contributions, forkings, comments and feedback are greatly welcomed.