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

Descripción general

Casos de uso

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

Funcionalidades

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

Puntos finales de la API

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

Parámetros

Nombre Tipo Obligatorio Descripción
text string Obligatorio The text to spell-check.

Pruébalo

Demostración en vivo
Solicitud

The text to spell-check.

Campos de respuesta

Campo Tipo Descripción
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)

Ejemplos de código

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"}'

Respuestas de error

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

Parámetros

Nombre Tipo Obligatorio Descripción
texts array<string> Obligatorio The list of texts to spell-check. Between 1 and 50 items.

Pruébalo

Demostración en vivo
Solicitud

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

Campos de respuesta

Campo Tipo Descripción
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.

Ejemplos de código

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"]}'

Respuestas de error

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.

Preguntas frecuentes