CheckError
POST https://{{rapidHostDomain}}/v2/check
Request Body
[{"name"=>"language", "value"=>"{{languageCode}}", "datatype"=>"string"}, {"name"=>"text", "value"=>"{{languageText}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-RapidAPI-Host | string | ||
X-RapidAPI-Key | string | ||
content-type | string |
RESPONSES
status: OK
{"software":{"name":"LanguageTool","version":"5.9-SNAPSHOT","buildDate":"2022-08-22 17:16:25 +0000","apiVersion":1,"premium":true,"premiumHint":"You might be missing errors only the Premium version can find. Contact us at support\u003cat\u003elanguagetoolplus.com.","status":""},"warnings":{"incompleteResults":false},"language":{"name":"English (US)","code":"en-US","detectedLanguage":{"name":"English (US)","code":"en-US","confidence":0.528,"source":"ngram"}},"matches":[{"message":"Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.","shortMessage":"Wrong article","replacements":[{"value":"an"}],"offset":8,"length":1,"context":{"text":"This is a error.","offset":8,"length":1},"sentence":"This is a error.","type":{"typeName":"Other"},"rule":{"id":"EN_A_VS_AN","description":"Use of 'a' vs. 'an'","issueType":"misspelling","urls":[{"value":"https://languagetool.org/insights/post/indefinite-articles/"}],"category":{"id":"MISC","name":"Miscellaneous"},"isPremium":false},"ignoreForIncompleteSentence":false,"contextForSureMatch":1}],"sentenceRanges":[[0,16]]}