Soundex is a go implementation of the Soundex algorithm.
"Soundex is a phonetic algorithm for indexing names by sound, as pronounced in English. The goal is for homophones to be encoded to the same representation so that they can be matched despite minor differences in spelling." - Wikipedia
$ go get github.com/umahmood/soundex
package main
import (
"fmt"
"github.com/umahmood/soundex"
)
func main() {
fmt.Println(soundex.Code("Miller"))
fmt.Println(soundex.Code("Muller"))
}
Output:
M460
M460
See the LICENSE file for license rights and limitations (MIT).