Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Autocomplete is based on the GPT2 (small) model pre-trained on a very large corpus of English data.

The autocomplete suggests the next word or a short phrase based on the context. For example, the user writes “thank”, the autocomplete suggests “you”. Autocomplete suggestions are highlighted in gray. To accept the suggestion, the user clicks the right arrow key . To ignore/refuse the suggestion, the user should continue writing. To “undo” the autocomplete suggestion, the user should use the native revert mechanism of the browser or editor (for instance, click Ctrl+Z).

The functionality is disabled for input fields and tables due to the lack of space to show autocomplete suggestions. The feature works in textareas if the cursor is at the end of the text.

The autocomplete suggests the next word or a short phrase based on the context. For example, the user writes “thank”, the autocomplete suggests “you”. Autocomplete suggestions are highlighted in gray.The user is typing a word, after 300ms the request for the autocomplete command is sent. If the text is smaller or equals 200 characters, then the request includes the whole text. If the text is larger than 200 characters, then the autocomplete request includes only the last 200 characters. If the text is too large, it will be limited to 32 tokens on the server/network side.

To accept the suggestion, the user clicks the right arrow key

To ignore/refuse the suggestion, the user should continue writing. To “undo” the autocomplete suggestion, the user should use the native revert mechanism of the browser or editor (for instance, click Ctrl+Z).

Configuration

Admins can disable enable autocomplete permanently by adding autocomplete:falsetrue, option to WEBSPELLCHECKER_CONFIG. In this case, end End users will still will have an option to enable disable autocomplete suggestions from the UI of the Settings dialog.

...

Admins can hide the autocomplete section from the settings, so users can’t enable or disable this feature by removing 'general' value from settingsSections option. Please note that in this case the option to enable/disable spelling Spelling autocorrect won’t be available as well.

...

This option as well as all other options for WProofreader are available in the WProofreader API options