AACsearch
Api reference

Spell check a search query

Applies AACsearch's NLP pipeline: language detection, keyboard layout fix (RU↔EN), transliteration detection, diacritics normalization, Yo/ё normalization, SymSpell fast dictionary correction. Returns suggestions ranked by similarity + frequency. Optionally builds dictionary from the specified index's documents for better results.

Applies AACsearch's NLP pipeline: language detection, keyboard layout fix (RU↔EN), transliteration detection, diacritics normalization, Yo/ё normalization, SymSpell fast dictionary correction. Returns suggestions ranked by similarity + frequency. Optionally builds dictionary from the specified index's documents for better results.

POST
/projects/{projectId}/spell-check

Authorization

BearerAuth
AuthorizationBearer <token>

Search API key (ss_search_*) from the dashboard or keys API. Scopes (search, ingest, admin) are stored on the key; each route requires the matching scope.

In: header

Path Parameters

projectId*string

Project (organization) ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/projects/string/spell-check" \  -H "Content-Type: application/json" \  -d '{    "text": "string"  }'
{
  "original": "string",
  "corrected": "string",
  "didYouMean": "string",
  "suggestions": [
    {
      "word": "string",
      "corrected": "string",
      "options": [
        {
          "text": "string",
          "score": 0,
          "algorithm": "string"
        }
      ]
    }
  ],
  "appliedFixes": [
    {
      "type": "string",
      "description": "string",
      "original": "string",
      "result": "string"
    }
  ],
  "detectedLanguage": "string",
  "mode": "auto",
  "dictionarySize": 0
}
{
  "error": "string",
  "message": "string",
  "details": null
}
{
  "error": "string",
  "message": "string",
  "details": null
}
{
  "error": "string",
  "message": "string",
  "details": null
}