---
title: "autocorrect.options: AutoCorrect Options — Doc kit command — Kition"
description: "Turns AutoCorrect on or off, or adds a replacement (from, to), and answers the AutoCorrect list."
canonical: "https://developer.kition.ai/docs/kits/doc/commands/autocorrect.options"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/doc/commands/autocorrect.options](https://developer.kition.ai/docs/kits/doc/commands/autocorrect.options)

# autocorrect.options

**AutoCorrect Options.** Turns AutoCorrect on or off, or adds a replacement (from, to), and answers the AutoCorrect list.

- Kit: Doc 0.1.0 (.docx); reference: [Doc kit commands](https://developer.kition.ai/docs/kits/doc.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `add` | `object` | no |  |
| `enabled` | `boolean` | no |  |

## Call through doc_run

```text
doc_run {
  "path": "<file>.docx",
  "steps": [{ "command": "autocorrect.options" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `add`, `enabled`. doc_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `enabled` | `boolean` | no |  |
| `entries` | `number` | no |  |
| `user` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "entries": {
      "type": "number"
    },
    "user": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "additionalProperties": true,
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/doc-darwin-arm64@0.1.0 and the kit itself (doc_commands through @kition/cli@0.1.1, built from KitionAI/kition-doc@41e14a8).
