POST
/
v1
/
validate
/
spell_check
import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const result = await jigsawstack.validate.spellcheck({
  text: "All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.",
  language_code: "en",
});
{
  "success": true,
  "message": "Validated successfully",
  "misspellings_found": 0,
  "auto_correct_text": ""
}

Params

text
string
required

The text to check.

language_code
string
default:
"en"
required

The language code of the text. Default is “en”.

x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

message
string

The message returned by the API.

misspellings_found
number

The number of misspellings found in the text.

auto_correct_text
string

The auto corrected text.

If no misspellings were found, the original text is returned.

import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const result = await jigsawstack.validate.spellcheck({
  text: "All the world's a stage, and all the men and women merely players. They have their exits and their entrances; And one man in his time plays many parts.",
  language_code: "en",
});
{
  "success": true,
  "message": "Validated successfully",
  "misspellings_found": 0,
  "auto_correct_text": ""
}