Yes, this silly little microapp has an API for your amusement, or maybe even practical use.
It's dead simple: Just make a GET request to:
How does this black magic work? We're calling aspell behind the scenes, so word accuracy and suggestions are all based on what it returns. Your mileage may vary and I make no guarantees or promises. Use this puppy at your own risk.
/word.jsonIt returns... get ready for this... a JSON-formatted document for your use. Let's say you want to check the word "occurance" to see if it is spelled correctly. Make a call like this:
/occurance.jsonAnd you will receive a document like this:
{
"correct": false,
"word": "occurance",
"suggestions": [ "occurrence", "occupancy", "occurrences",
"accordance", "accuracy", "assurance",
"accuracies", "occurrence's", "occurring" ]
}
If you make a POST request to /, you can check multiple words at once. To do this, pass the parameter "words" as a comma-separated list of words to check. It returns an array of the above, in JSON format.
How does this black magic work? We're calling aspell behind the scenes, so word accuracy and suggestions are all based on what it returns. Your mileage may vary and I make no guarantees or promises. Use this puppy at your own risk.
