---
title: "Grammar and spell check"
method: POST
path: "/grammar"
tags: ["Content"]
---

# Grammar and spell check

`POST /grammar`

Checks text for grammar errors, spelling mistakes, and style issues. Returns a list of corrections with context and suggested replacements.

## Request body

- object
  - `text` string, required — Text to check
  - `language` string — BCP 47 language tag

## Response `200`

Grammar check results

- GrammarResult
  - `text` string
  - `language` string
  - `corrections` object[]
    - `message` string
    - `short_message` string
    - `context` object
      - `text` string
      - `offset` integer
      - `length` integer
    - `replacements` string[]
    - `rule_id` string
    - `rule_desc` string
    - `category` string
  - `correction_count` integer

## Other responses

- `400` — Invalid request parameters
- `401` — Missing or invalid API key
- `429` — Rate limit exceeded

---

[API](https://skmtc.dev/kiprio/apis/kiprio-api.md) · [All operations](https://skmtc.dev/kiprio/apis/kiprio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kiprio/kiprio-api/revisions/bbe8f8fb1a35/schema)
