-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autocorrection: handle typos containing ' char.
Previously, autocorrection was limited to detecting typos with chars a-z and "word breaks" with the special : char. This commit adds support for the ' single quote char, useful for typos involving misplaced apostrophes. Thanks to reddit user u/Dutchnesss1 for suggesting this. As an example, the entry `dosen't -> doesn't` is added to the default dictionary. The script make_autocorrection_data.py is revised to support the ' char. Additionally, the fallback `CORRECT_WORDS` list is expanded a bit.
- Loading branch information
Showing
4 changed files
with
123 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters