Spell Check

Check spelling and get correction suggestions. Returns a corrected version of the input text and a list of individual corrections with their positions.

Get API Key

Overview

Use Cases

  • Writing assistants and text editors
  • User-generated content quality checks
  • Form validation and input sanitisation
  • Educational platforms and grammar tools

Features

Detects misspelled words and grammar issues using LanguageTool
Returns the best correction and up to 3 ranked alternative suggestions per misspelled word
Returns character positions for each correction
Supports full Unicode input including accented and non-Latin characters
Batch endpoint processes up to 50 texts in a single request

API Endpoints

Check Spelling

Checks the input text for spelling mistakes and returns a corrected version along with per-word corrections.

POST
https://requiems.xyz/v1/text/spellcheck

Parameters

Name Type Required Description
text string Required The text to spell-check.

Try it out

Live Demo
Request

The text to spell-check.

Response Fields

Field Type Description
corrected string The full input text with all misspelled words replaced by the top-ranked suggestion
corrections array<object> List of individual corrections. Each item contains: original (the misspelled word), suggested (the top-ranked replacement applied to corrected), suggestions (up to 3 ranked alternatives returned by LanguageTool, from most to least likely), and position (0-based Unicode character offset in the original text)

Code Examples

curl -X POST https://requiems.xyz/v1/text/spellcheck \
  -H "requiems-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Ths is a smiple tset"}'

Error Responses

validation_failed

The text field is missing or empty.

bad_request

The request body is missing or malformed.

internal_error

Unexpected server error.

Check Spelling (Batch)

Checks multiple texts for spelling mistakes in a single request. Returns a corrected version and per-word corrections for each input text. Results are returned in the same order as the input array.

POST
https://requiems.xyz/v1/text/spellcheck/batch

Parameters

Name Type Required Description
texts array<string> Required The list of texts to spell-check. Between 1 and 50 items.

Try it out

Live Demo
Request

The list of texts to spell-check. Between 1 and 50 items.

Response Fields

Field Type Description
results array<object> One entry per input text, in the same order as the input array. Each item contains corrected (the fixed text) and corrections (list of individual corrections with original, suggested, suggestions, and position).
total integer Number of texts processed. Equals the length of the input array.

Code Examples

curl -X POST https://requiems.xyz/v1/text/spellcheck/batch \
  -H "requiems-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"texts": ["Ths is a tset", "Smiple example"]}'

Error Responses

validation_failed

The texts field is missing, empty, or exceeds 50 items.

bad_request

The request body is missing or malformed.

internal_error

Unexpected server error.

Frequently Asked Questions