Spelling autocorrect
Overview
Spelling autocorrect as you type functionality (beta) was released on August 13, 2020, as a part of the WebSpellChecker v5.15.0 release. Autocorrect automatically makes or suggests corrections for common spelling mistakes while users are typing.
It is a new feature enabled for:
WProofreader core (e.g. WProofreader add-on for RTEs, plugin for WordPress, plugin for CKEditor 5, browser extension);
API.
The feature is available for all languages where spelling is supported (excluding Japanese and Chinese).
For the 25 most popular languages that are enabled by default for the on-premises version, autocorrect is based on the replaced_data statistics that were extracted from our databaseDB to the *.cvs files with word pairs that will be used initially for autocorrect. The same files are for the Cloud and Standalone versions. Autocorrect for other languages generates suggestions purely from spell-check dictionaries.
While the on-premises client can configure what languages should have autocorrect enabled using AppServerX.xml.
The autocorrect mechanism
The trigger action that starts autocorrection — the user types a word and presses the space key or comma.
The algorithm behind autocorrect relies on a similarity score (Levenshtein distance). If the condition is not met, we return an empty response → no autoreplace.
Also, there is an additional check for the languages that use the replaced_data statistics file. The algorithm will check if the word for replacing is present in one of the available dictionaries: language dictionary, user, or company custom dictionary. If a word is not present in the dictionary, we will not use the word from the autocorrect file.
In the case of an autodetected language, autocorrect uses the last detected language as a language for autocorrect check.
The user can undo the correction using the revert option. For now, the revert isn't localized and is valid only for the current section.
Some clients may want to have their own lists for autocorrection. This option will be available for on-premises clients only. Cloud customers may report the most common corrections, and we will add them manually.
How autocorrect works
The user is typing text and Autocorrect automatically makes or suggests corrections for common spelling mistakes like hte-the, havent-haven’t, isnt-isn’t.
The autocorrected word will be underlined with a gray dotted line. End-users have an option to revert/undo the correction by hovering on it and selecting the original word.
Also, users can enable/disable Autocorrect in the Settings dialog of the product with the toggle “Autocorrect."
Check how it works in the video below or play with demos here.

How to configure Autocorrect
Admins can disable autocorrect by default by adding the autocorrect option set to false to WEBSPELLCHECKER_CONFIG. In this case, end-users still will have an option to enable autocorrect from the UI of the Settings dialog.
This option, as well as all other options for WProofreader, are available in the WProofreader API options.
5. Instructions for managing autocorrect word pairs for on-premises clients
To manage the list of current word pairs for Autocorrect or add new pairs, please follow the steps below:
1. Stop the WebSpellChecker AppServer.
2. Navigate to the WebSpellChecker_Installation_Path\AppServer\LanguageDictionaries\language_shortcode directory.
3. Locate and open the "language_shortcode_autocorrect.csv" file.
4. Make the desired changes to the file.
5. Save the modified file.
6. Restart the WebSpellChecker AppServer to apply the changes.
By following these instructions, you will be able to effectively manage and update the Autocorrect word pairs in the designated file. If you encounter any issues or require further assistance, please don't hesitate to contact our support team at support@webspellchecker.com.
Was this helpful?

