# Check types

#### Grammar check

Grammar check is enabled by default. To disable it:

```js
enableGrammar: false,
```

When grammar check is disabled, only spell check and style check run. Users won't be able to enable grammar from the Settings dialog or the grammar toggle in the UI.

#### Style check

Style suggestions are based on the rules created in the style guide. They're enabled by default. To disable them for users:

```js
disableStyleGuide: true,
```

#### As-you-type proofreading

As-you-type proofreading is enabled by default. To disable it and allow proofreading only through the dialog mode:

```js
proofreadAsYouType: false,
```

#### Spelling autocorrect

Autocorrect automatically fixes common spelling mistakes as users type. It's enabled by default. To disable it:

```js
autocorrect: false,
```

Users can still toggle autocorrect from the Settings dialog. To prevent this, hide the General section using `settingsSections`. If you need to prevent the user's preference from persisting, add `'autocorrect'` to `disableOptionsStorage`.

#### Text autocomplete

Autocomplete suggests the next word or short phrase based on context. Currently available for English only. Users accept suggestions with `Tab` or the `Right arrow` key. It's disabled by default. To enable it:

```js
autocomplete: true,
```

Users can toggle autocomplete from the Settings dialog.

#### AI writing assistant

The AI writing assistant (AIWA) is disabled by default. To enable it:

```js
aiWritingAssistant: true,
```

Users can initiate AIWA by selecting text (minimum 100 characters), clicking the badge, and choosing an action such as rewrite, shorten, expand, etc.

#### Suggestion visibility

You can control which suggestion types are visible to users without disabling the backend checks. All are `true` by default.

```js
spellingSuggestions: true,
grammarSuggestions: true,
styleGuideSuggestions: true,
```

Setting any of these to `false` hides the suggestions in the UI, but requests are still sent to the backend. Users can turn them back on from the General section of the Settings dialog.

#### Check on space

By default, checking is triggered as the user types. To also trigger a check when the user presses space for faster underlining:

```js
checkOnSpace: true,
```

{% hint style="warning" %}
Enabling this option results in more words checked, as a request is sent after each space pressed by the user.
{% endhint %}

#### Language configuration profile

The `checkKit` option lets you choose between algorithmic, AI-powered, or mixed checking modes.

{% hint style="info" %}
Not all configurations are available for all languages. The AI component is currently available for English, German, and Spanish. For languages without AI support, only the algorithmic check kit (`'lt_hs'`) is available. If the specified configuration isn't supported for the selected language, the default configuration is used.
{% endhint %}

| Value         | Description                                                                                                             |
| ------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `'lt_hs'`     | Algorithmic engines only, no AI.                                                                                        |
| `'ai_lt_hs0'` | AI provides grammar and spelling suggestions. Algorithmic engine highlights spelling errors without suggestions.        |
| `'ai_lt_hs1'` | AI provides grammar and spelling suggestions, with algorithmic support where AI doesn't offer coverage.                 |
| `'ai_lt'`     | AI provides grammar and spelling suggestions. Algorithmic grammar runs in parallel but AI takes precedence on overlaps. |
| `'ai'`        | AI only, no algorithmic engines.                                                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/v6.12.0/integrations/initialization/configuration-options/check-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
