Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 26, 2025

GH Actions: add a basic spellcheck CI check

Follow up on PR #2472 - safeguarding that no new typos get introduced.

Notes:

  • The "Typos" tool is known for having a low false positive ratio and being aware of code contexts. However, this also means, it may at times miss some things.
    When selecting it, I deemed the low false positive ratio more important.
  • The language has been set to en-US as that's the language predominantly used for the WordPress documentation.
    This does mean that various phrases using en-GB spelling will need to be fixed/updated.

Ref: https://github.com/crate-ci/typos

Spellcheck: add some exceptions and fix some typos

Mostly US English vs UK English and as WP Core predominantly uses US English, I think we should standardize on that for this spellcheck as well.

Note: where text was copied from the rules on https://developer.wordpress.org/coding-standards/ (typically to the ruleset.xml files), the text upstream has been updated via WordPress/wpcs-docs#151.

jrfnl added 2 commits June 26, 2025 12:59
Follow up on PR 2472 - safeguarding that no new typos get introduced.

Notes:
* The "Typos" tool is known for having a low false positive ratio and being aware of code contexts. However, this also means, it may at times miss some things.
    When selecting it, I deemed the low false positive ratio more important.
* The language has been set to `en-US` as that's the language predominantly used for the WordPress documentation.
    This does mean that various phrases using `en-GB` spelling will need to be fixed/updated.

Ref: https://github.com/crate-ci/typos
Mostly US English vs UK English and as WP Core predominantly uses US English, I think we should standardize on that for this spellcheck as well.

Note: where text was copied from the rules on https://developer.wordpress.org/coding-standards/ (typically to the `ruleset.xml` files), the text upstream has been updated via WordPress/wpcs-docs#151.
@jrfnl jrfnl merged commit 6ee142e into develop Jun 26, 2025
52 checks passed
@jrfnl jrfnl deleted the feature/ghactions-add-spellcheck branch June 26, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants