-
Notifications
You must be signed in to change notification settings - Fork 471
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
Add renaming advice based on IETF draft-knodel-terminology-00 #1556
Add renaming advice based on IETF draft-knodel-terminology-00 #1556
Conversation
The CI error is:
I wonder whether we have any way to say "you meant this, but you probably want to use something else anyway". |
Hmm, this one is a bit trickier. This almost seems like something that should have its own dictionary so that people can opt into using. |
Based on my research, the There's a fairly good chance that other "engineering" uses of the word "master", such as "master copy", would also be orphan references like this one, but I lack the research skills to dig down. |
Based on the number of false alarms (i.e., "I want to keep using |
I don't really see a difference between "I want to keep using |
I'd be happy extending the code or the checks to allow for 2 levels of "correction", if you tell me how you'd want it to behave. |
What you are proposing is a word usage change -- in this sense, a standard typo like One important consideration is that this change will cause a lot (probably a majority!) of our users to need to add a new argument to BTW we use |
That is exactly what adding a new dictionary would do, we just wouldn't have it in the default set and it would be opt-in. Maybe https://github.com/codespell-project/codespell/blob/master/codespell_lib/_codespell.py#L39 And it wouldn't be enabled by default, since it's not in the default list |
Understood, I'll update the patch to use a separate dictionary that tries to include the other suggestions from the IETF draft as well. |
Probably worth moving |
While I agree with the principal of this and #1554 , I think they should be in another dictionary file entirely (which can be enabled by default if deemed appropriate). I think the original typos and corrections should exist in the dictionaries they are currently in, and we probably need to add a new option so this special dictionary is ignored from the list of corrections. From what I can tell the patch for #1554 doesn't appear to have been merged into Linux Git (unless I'm looking in the wrong place). Also similar to the master stuff, there may be external requirements to use those terms for now, e.g. if you are spell-checking stuff includingAPIs or config for external code which uses those terms. I think informal is the equivalent, there are lots of nuanced reasons why people may still have to (even if they don't want to), use these words currently. |
I don't think informal is quite equivalent, I'd rather have a new |
Yeah sorry, I didn't mean putting them in that dictionary, but neither set are typos, they are changes in usage. You may want to allow or not for various reasons. |
2e56992
to
cd0da1a
Compare
Apologies for the spam, my distro doesn't have aspell packaged up, and I thought I could get away without using a virtualenv... |
cd0da1a
to
c0d497f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments @hadess .
Add a new "usage" dictionary with usage advice based on: https://tools.ietf.org/id/draft-knodel-terminology-00.html#rfc.section.1.1.1 Offer to replace master/slave with: - Primary-secondary - Leader-follower - Active-standby - Primary-replica - Writer-reader - Coordinator-worker - Parent-helper
Backout the changes from commit 98ab0fa and move them into the "usage" dictionary.
c0d497f
to
5f28353
Compare
Use the recommended replacement "allowlist"
5f28353
to
dca2068
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @hadess .
Thanks @hadess ! |
Next step I think would be to make sure we enable this dictionary in testing our own repo at least. Probably will require adding a |
I've made a start on this here codespell-project/actions-codespell#14 just need to fix some of the tests. |
Thanks for being a receptive project :) |
Not for much longer: https://www.bbc.co.uk/news/technology-53050955 |
Based on:
https://tools.ietf.org/id/draft-knodel-terminology-00.html#rfc.section.1.1.1
Offer to replace master/slave with: