Add typos of align, allocate, block, docker, given#1815
Conversation
With `-ing` and `-ed` form
Fixes per @lurch
|
@lurch done, PTAL. |
|
You need to fix the sorting of the entries to make the CI tests happy 😉 |
|
Apart from the small query about |
|
(@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? |
|
It's hard to imagine a normal word that |
|
Good point. So instead I'll add |
|
I've got no absolutely no idea what the "correct" action is in this situation. ping @larsoner @peternewman @sebweb3r |
|
There is (from my understanding) no better fitting dictionary. "Correct" solutions can only be provided by the other two mentioned. |
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). |
peternewman
left a comment
There was a problem hiding this comment.
A few more comments
|
@lurch @sebweb3r @peternewman done @ 307fe9e, PTAL. |
|
@peternewman review? |
With
-ingand-edform