Skip to content

gotomgo/bingSpellCheck

Repository files navigation

bingSpellCheck

A GOLANG client for Bing Spell Check API version 7

One Saturday morning I had nothing better to do. You are welcome.

Getting Started

  1. Download/Install it
$ go get github.com/gotomgo/bingSpellCheck
  1. In examples/main.go add your Bing Spell Check API key
const key = "<INSERT YOUR API KEY HERE>"
  1. Run the example:
$ go run example/*.go "Is teh teh data good to go?"
  1. 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)
}

About

a Golang client for Bing Spell Check API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages