Languagetool API wrapper in Golang
Wrapper for opensource text proofreading api provided by Languagetool.org
Link to api documentation here. Note: Api has limit of 20 calls per minute per IP.
Install:
go get github.com/bas24/languagetool
Example usage:
package main
import (
"fmt"
lt "github.com/bas24/languagetool"
)
func main(){
text := `Text with eror.`
result, err := lt.Check(text, "en-US")
if err != nil {
fmt.Println(err)
}
fmt.Println(result)
}
Better not very nice code, than no code.