# What is the mechanism of errors highlighting by WProofreader and SCAYT plugin for CKEditor 4?

A request in SCAYT or WProofreader is a set of sentences totaling up to 4 sentences. Under a “sentence” (or a token) we understand a string of text which ends with one of the punctuation symbols such as (.!?\n) followed by a space and the word that starts with capital letter by or the end of the paragraph (e.g. \</p>).

The requests to our AppServer will be sent immediately after pressing **Enter** or **Space** keys or in 2 seconds for SCAYT or 500 ms for WProofreader after stop the typing. If there are completed sentences in the received response, all the found errors will be highlighted. Otherwise, new requests containing only sentences where changes were made will be sent. Such behavior is present due to the fact that the sentence was not completed by the time a response arrives, it might have been changed, thus, a new request will be sent.

Right now the mechanism of errors highlighting in the plugin itself is the same. The only difference that now the minimal unit is a sentence but not a single word. Yes, it might have a slight delay and cause some inconvenience to an end-user. But this is done intentionally to avoid additional CPU load. Yes, we can make certain optimizations and tricks to smooth the visual delay for the end users but it would take the additional time. We are going to try them but for WProofreader only, and this feature is already in our backlog.


---

# 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/faq/technical/wproofreader/what-is-the-mechanism-of-errors-highlighting-by-wproofreader-and-scayt-plugin-for-ckeditor-4.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.
