A GOLANG client for Bing Spell Check API version 7
One Saturday morning I had nothing better to do. You are welcome.
- Download/Install it
$ go get github.com/gotomgo/bingSpellCheck
- In examples/main.go add your Bing Spell Check API key
const key = "<INSERT YOUR API KEY HERE>"
- Run the example:
$ go run example/*.go "Is teh teh data good to go?"
- Review the example for basic usage
client := bingSpellCheck.NewClient(key)
spellCheck, err := client.SpellCheck(os.Args[1])
if err != nil {
fmt.Println(err)
} else {
spew.Dump(spellCheck)
}
correctedText, err := bingSpellCheck.BuildAutoCorrectedText(os.Args[1], spellCheck)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(correctedText)
}