-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix new typos found by codespell #364
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
Conversation
Signed-off-by: Stefan Weil <sw@weilnetz.de>
|
Ooh that's very useful. Thanks. Perhaps we should be using this ourselves... |
|
Yes, it is useful and easy to get: https://github.com/lucasdemarchi/codespell. I suggest to use a tagged version – the latest Git version which added Travis support also confused the code a little bit. |
|
Sounds good to me - but make sure any automated spellchecking catches are signed off by @lauraclay or @LornaLynch please! |
|
I don't think automated corrections would work here (too many technical terms), but it would be good for spotting typos (suggesting corrections, not making them). |
|
I also recall seeing codespell mentioned in typo-fixing PRs on the userland and/or firmware repos. |
|
Have now got round to looking at this, and several thoughts spring to mind:
I'm generally wary of 'X is an automated solution to doing it manually,' for which you can blame years of QA. So, colour me sceptical of codespell. |
|
In this instance I believe it suggested changes. I absolutely agree: automated spellcheck which does not allow for a human stage in the middle is a TERRIBLE idea. Anecdote that proves the point: My sister-in-law wrote a journal paper called "Bonfire of the Quangos" that ended up being published as "Bonfire of the Guanos" because the editor subbed his job out to a spellchecker. True story. All instances of Aenurin Bevan in it were also replaced with with Anuran Bean. |
|
@lauraclay, as far as I know, codespell does not require that text must use American spelling. I'm not a native speaker, so please correct me if I am wrong. Regarding your questions about codespell: it is primarily a tool to detect possible typos. It can also fix typos, but only if there is only one possible fix and only if this fix does not introduce potential problems (like changing a C++ name from @LizUpton, yes, you need someone who decides which typos are typos and which of them should be fixed. You even need a second person who reviews the modifications. Typical scenarios where typos should not be fixed include code which was copied from other projects (those typos should be fixed in the original project) or typos in patch files which would break the patch. Nevertheless automated spell checking (without automated fixes) can be used in continuous integration, and the automated fixes which can be done with codespell can help a human. |
Signed-off-by: Stefan Weil sw@weilnetz.de