About this endpoint
What it does
Detects misspelled words in the submitted text and returns the original text, a corrected version, and a mapping of misspelled terms to their corrections.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | Input text. Maximum length: 512 characters; the schema note says it is truncated to 512 tokens. |
Response
Returns a JSON object with three top-level fields: original and corrected as strings, and misspelled as an object mapping string keys to string values.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| original | String | No | The original input text. |
| corrected | String | No | The corrected version of the text. |
| misspelled | Object | No | An object whose additional properties are strings, representing misspelled words and their corresponding corrections. |