akmsg / soundex

efficient go implementation of soundex which is a phonetic algorithm for indexing names by sound as pronounced in English

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

soundex Build Status

efficient go implementation of soundex which is a phonetic algorithm for indexing names by sound, as pronounced in English

Usage

Command Line

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

Programmatically

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"))
}

About

efficient go implementation of soundex which is a phonetic algorithm for indexing names by sound as pronounced in English

License:MIT License


Languages

Language:Go 100.0%