efficient go implementation of soundex which is a phonetic algorithm for indexing names by sound, as pronounced in English
Install the binary
go install github.com/akmsg/soundex/soundexcmd
Run the binary and supply command line arguments for showing their soundex code
soundexcmd robert rupert
Sample response:
robert: R163
rupert: R163
Download the module
go get github.com/akmsg/soundex/soundexcore
Import and use, example:
import (
"fmt"
"github.com/akmsg/soundex/soundexcore"
)
func main() {
fmt.Println(soundexcore.GetCode("robert"))
fmt.Println(soundexcore.GetCode("rupert"))
}