A port of metaphone
module from the Natural javascript package: https://github.com/NaturalNode/natural/blob/master/lib/natural/phonetics/metaphone.js
Also see the wikipedia article on metaphone: http://en.wikipedia.org/wiki/Metaphone
go install github.com/sanjayc77/metaphone
This will install the metaphone
package.
import "metaphone"
st := metaphone.Process("phonetics") // => FNTKS
go test metaphone
Precompile the regular expressions for faster processing.