Uh oh!
There was an error while loading. Please reload this page.
Add typos of align, allocate, block, docker, given - #1815
Conversation
With `-ing` and `-ed` form
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fixes per @lurch
bl-ue
commented
Dec 9, 2020
@lurch done, PTAL. |
Uh oh!
There was an error while loading. Please reload this page.
lurch
commented
Dec 9, 2020
You need to fix the sorting of the entries to make the CI tests happy 😉 |
bl-ue
commented
Dec 9, 2020
Uh oh!
There was an error while loading. Please reload this page.
lurch
commented
Dec 10, 2020
Apart from the small query about |
bl-ue
commented
Dec 10, 2020
lurch
commented
Dec 10, 2020
(@bl-ue But just to clarify - my query may be totally invalid... I can never remember how all the different dictionaries are supposed to work together 😉 ) |
@lurch what about codespell/codespell_lib/data/dictionary.txt Line 17455 in d133bef and codespell/codespell_lib/data/dictionary.txt Line 17459 in d133bef which are in the main dictionary? |
lurch
commented
Dec 10, 2020
It's hard to imagine a normal word that |
bl-ue
commented
Dec 10, 2020
Good point. So instead I'll add |
lurch
commented
Dec 10, 2020
I've got no absolutely no idea what the "correct" action is in this situation. ping @larsoner@peternewman@sebweb3r |
sebweb3r
commented
Dec 10, 2020
There is (from my understanding) no better fitting dictionary. "Correct" solutions can only be provided by the other two mentioned. |
peternewman
commented
Dec 11, 2020
Again it doesn't matter; ALL we care about is that the typo isn't a valid word in some context, then it gets shunted out to another dictionary (see also rare e.g.
I think the only downside of this is we don't currently chain dictionaries (see also e.g. #1672), although as long as there is more than one correction in the main one (i,e. it duplicates the corrections from either side of the code one) it shouldn't have any negative side effects.
We just need to add this commit back in (or make an equivalent edit): The list of correcting to a typo in another dictionary is kept as small as practically possible because you shouldn't generally be correcting to a word that is itself a typo in another dictionary, instead you should correct directly to the final correction. The exceptions are allowed where required. The obvious case being colur->colour in the main dictionary and colour->color in GB to US is obviously acceptable and intended. If anyone can word this in a more friendly way and put it in a readme would be great as it and similar variations do seem to keep coming up. Or better descriptions for the various dictionaries. Or do we just need a note about it generally only being the typo side of the dictionary we care about (apart from GB to US). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bl-ue
commented
Dec 11, 2020
@lurch@sebweb3r@peternewman done @ 307fe9e, PTAL. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bl-ue
commented
Dec 15, 2020
@peternewman review? |
With
-ingand-edform