-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Standardize spelling to American English in documentation #9804
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
browniebroke
left a comment
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.
Can we configure codespell in any way to catch this in the future? We're already using it as pre-commit hook
|
Thanks for review and suggestion @browniebroke !
That would be great if we configured. I have done small research and i found |
f4e1eaf to
f2f5d86
Compare
|
I tried locally I would love to work on the configuring codespell hook. Can i raise Seperate PR ? if yes, then which file to be ignored for now? |
Yes, sure. Fine by me |
|
@browniebroke If you go through the image, It detect other words too which i haven't detect in the PR. So Should i update those too ? So It will be in one go. |
If you want to, sure. Thinking about it again. Would be nice to update codespell config so it's all done in one go as well... This all feels very much related. Fixing the problem and setting us up for no further changes. Same spirit as updating tests as your fix a bug.
👍🏻 Noted |
…tency changes: - Activates the `en-GB_to_en-US` built-in dictionary to flag British spellings - Created codespell-ignore-words.txt file to ignore specific words - include `code` and `names` for comprehensive typo checking in technical contexts. - changed the 'lets' to 'let's'.
browniebroke
left a comment
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.
Nice work!
deronnax
left a comment
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.
in two places, a legitimate "lets" (3rd person of "let") was replaced for "let's" ("let us", suggestive form, invitation to do something).
| ## Hawk HTTP Authentication | ||
|
|
||
| The [HawkREST][hawkrest] library builds on the [Mohawk][mohawk] library to let you work with [Hawk][hawk] signed requests and responses in your API. [Hawk][hawk] lets two parties securely communicate with each other using messages signed by a shared key. It is based on [HTTP MAC access authentication][mac] (which was based on parts of [OAuth 1.0][oauth-1.0a]). | ||
| The [HawkREST][hawkrest] library builds on the [Mohawk][mohawk] library to let you work with [Hawk][hawk] signed requests and responses in your API. [Hawk][hawk] let's two parties securely communicate with each other using messages signed by a shared key. It is based on [HTTP MAC access authentication][mac] (which was based on parts of [OAuth 1.0][oauth-1.0a]). |
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.
the change to let's here is an error, ` was the right form
| Often you'll want serializer classes that map closely to Django model definitions. | ||
|
|
||
| The `ModelSerializer` class provides a shortcut that lets you automatically create a `Serializer` class with fields that correspond to the Model fields. | ||
| The `ModelSerializer` class provides a shortcut that let's you automatically create a `Serializer` class with fields that correspond to the Model fields. |
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.
same wrong change here.
Good catch! Can someone open a PR to fix these? |
|
i have open the PR #9833 which will restore this incorrect wording. |


According to DRF language-style the documentation should follow the american english style.
But I have found some British style words or inconsistent spellings like
behaviour,customise,initialise,e-mail,Sub-classesin the docs. In this PR I have modified them to DRF style.I have touched 26 files. and I can understand this is relatively large change. I'm not sure whether DRF team will like my approach or not. but if anything is there I'm happy to adjust.
Note:
highlight.pack.jswere intentionally not modified.