SpellCheck service Http API (8.31.0)

Download OpenAPI specification:Download

Documentation of the Open-Xchange GmbH SpellCheck service Http API.


SpellCheck

The SpellCheck service module.

Paragraph spelling request

Check spelling of the given paragraphs, using the given locales.

Request Body schema: application/json
Array of objects

Paragraphs consisting of texts to check spelling for.

noReplacements
boolean
Default: false

Optional property to specify if replacments should be retrieved and returned for the current request. Default is set to false, so that replacements are returned if not specified.

Responses

Request samples

Content type
application/json
{
  • "paragraph": [
    ],
  • "noReplacements": false
}

Response samples

Content type
application/json
{
  • "spellResult": [
    ]
}

Text spelling request

Check spelling of the given text using the given locale.

Request Body schema: application/json
locale
string

The locale to be used to check the spelling of the given text.

text
string

The text to check spelling for, using the given locale and required language encoding of the used dictionary.

offset
integer

Offset that is added to the appropriate character position within the response for detected, misspelled words.

noReplacements
boolean
Default: false

Optional property to specify if replacments should be retrieved and returned for the current request. Default is set to false, so that replacements are returned if not specified.

Responses

Request samples

Content type
application/json
{
  • "locale": "string",
  • "text": "string",
  • "offset": 0,
  • "noReplacements": false
}

Response samples

Content type
application/json
{
  • "spellResult": [
    ]
}

Server Health Request

Getting the current health status of the SpellCheck service.

Responses

Response samples

Content type
application/json
{
  • "health": {
    }
}

Misspelled request

Checking if a word is misspelled, using the given locale.

Request Body schema: application/json
locale
string

The locale to be used to check the spelling of the given word.

word
string

The word to check spelling for, using the given locale and required language encoding of the used dictionary.

Responses

Request samples

Content type
application/json
{
  • "locale": "string",
  • "word": "string"
}

Response samples

Content type
application/json
{
  • "spellResult": true
}

Suggested replacements request

Retrieving the suggested replacements for a given word, using the given locale.

Request Body schema: application/json
locale
string

The locale to be used to check the spelling of the given word.

word
string

The word to check spelling for, using the given locale and required language encoding of the used dictionary.

Responses

Request samples

Content type
application/json
{
  • "locale": "string",
  • "word": "string"
}

Response samples

Content type
application/json
{
  • "spellResult": [
    ]
}

Supported locales request

Retrieving all locales that are supported to be used for spell check requests.

Responses

Response samples

Content type
application/json
{
  • "spellResult": [
    ]
}