This is a simple script that implement the phonetizer() function. It's usefull to implement a phonetic search at name fields. It was based on a Java version published under GPL v2 by the Instituto do Coração (Heart Institute) from the Hospital de Clínicas da Faculdade de Medicina da USP (Clinic Hospital of the Faculty of Medicine of the University of São Paulo (USP)) and by the Centro de Informações e Análises (Information and Analysis Center) from the same hospital. It was originally published at http://www.incor.usp.br/spdweb/ccssis/fonetica/.
You can access the demo at https://ernaniaz.github.io/phonetizer/demo.html.
- Translate name or other texts to phonetic version.
var phonetic = phonetizer ( 'Your name here');
- No dependencies needed.
I translated the Java version of this code to PHP a long time ago, and nowaday where the applications became client side at browser, I had the need to translate it to JavaScript.
v1.0 - Released Jul/21/2017:
- First release.
GPL v3 License.