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 using an English dictionary
Provides the best correction suggestion per misspelled word
Returns character positions for each correction
Preserves original capitalisation in suggestions
Only ASCII letter sequences are spell-checked; non-ASCII characters are passed through unchanged

API Endpoints

Check Spelling

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

POST
https://api.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 their suggested corrections
corrections array of objects List of individual corrections. Each item contains: original (the misspelled word), suggested (the correction), and position (0-based character offset in the original text)

Code Examples

curl -X POST https://api.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.

Frequently Asked Questions