Spellcheck API
HTTP spellcheck API based off hunspell.
The API server needs node version 0.11.0 or higher and to be ran with the --harmony
flag.
Install
git clone git@github.com:montanaflynn/Spellcheck-API.gitnpm install
Usage
node --harmony ./server.js [port]
Default port is 8080
.
Example
node --harmony server 1337 &curl "localhost:1337?text=wrng"
Responses
If there is no text
querystring parameter return error message:
If there are no mistakes return false for suggestion.
If there are mistakes but no suggestions return null for suggestion and corrections.
If there are mistakes and suggestions return an array for each correction and replace the word in the suggestion
string.
FAQ
Didn't this use to be a PHP project?
Yes indeed, however the PHP version is no longer supported. The source code is still available.
Contributing
Forks and pull requests are most welcomed.
License
The MIT License (MIT)
Copyright 2014, Montana Flynn (http://anonfunction.com/)