You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

A request in SCAYT or WProofreader is a set of sentences up to 10 sentences. Under a “sentence” (token) we understand a string of text which ends with one of the punctuation symbols such as (.!?\n) followed a space and the word that starts with capital letter by or 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 after the stop typing. If in a received response there are completed sentences – all the found errors will be highlighted. Otherwise, new requests will be sent containing only with sentences where changes were made. 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 the highlighting in the plugin itself is the same, the only difference that now the minimal unit is a sentence 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 the additional load on CPU. Yes, we can do some additional optimizations and tricks to smooth the visual delay for the end users but it would take the additional time. We obviously are going to try them but in WProofreader only and this is already in the backlog.