-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readd(ed) corrects to itself #712
Comments
Related discussion in #410, it's not clear how to deal with this case yet |
As I mentioned in #410, I think something needs to be done. Personally if things like |
Maybe what we should do is have support for multiple dictionary files, which will use the union of all entries (probably just taking the entries from ones listed later if there are overlaps). Then the default can be |
Sounds good to me, multiple files should give some much better options for validation during CI. The only real question is how they get merged or overwritten regards suggestions etc. |
I would try to keep it simple and let the later entries take precendence (overwriting any exitsing entries). From a user perspective it's clear what happens, and if we need some other behavior let's add it later and not over-engineer (assume YAGNI for now). @peternewman do you want to try to implement this? |
Yes, I guess I should given I keep banging on about it! I've got some other stuff I need to sort first, but I'll try and take a look at some point soon. In the meantime, I guess people can start preparing additional dictionaries... |
I think I've unfortunately found a scenario where suggestions may need merging (or maybe I just need a working camel case filter). If you find dictionary entries matching |
Okay, so after some hacking around, I've got a test of the dictionary. There are currently 112 valid words (according to aspell's English dictionary) listed as typos in the dictionary file, so anyone not using interactive mode will potentially be getting these offered up as typos: I've not yet checked how many of these offer themselves as corrections, as discussed in #410 . |
Another rare word, but a valid word nonetheless |
The dictionary.txt currently contains the following:
which corrects to itself:
If the correct spelling of "readded" would be "re-added" then there is also the following found a few lines below:
The text was updated successfully, but these errors were encountered: