Skip to content

Commit

Permalink
feat: Include rules for inclusive Language
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen committed May 30, 2024
1 parent 6665fc2 commit 0a4e092
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Coop/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Vocab = CoopGeneral, CoopTech, CoopCompanies, CoopAbbreviations, CoopSystems, Co

[*.md]
TokenIgnores = [\w][\w.]*@[\w*][\w.]*[\w], <https://.+>, {{\sread_.+\(.+\)\s}}, \[.+\]\(.+\), \[.+\]\[.+\]
BasedOnStyles = Vale
BasedOnStyles = Vale, Coop
21 changes: 21 additions & 0 deletions Coop/styles/Coop/InclusiveLanguage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Warning: Coop.InclusiveLanguage
#
# Suggests alternatives for words that are culturally inappropriate.
#
# For a list of all options, see https://vale.sh/docs/topics/styles/

extends: substitution
message: "**Warning**: Use inclusive language. Consider '%s' instead of '%s'."
level: error
ignorecase: true
swap:
blacklist(?:ed|ing|s)?: denylist
whitelist(?:ed|ing|s)?: allowlist
master: primary, main
slave: secondary
he: they
his: their
she: they
hers: their
sanity (?:check|test): check for completeness
dummy: placeholder, sample, fake

0 comments on commit 0a4e092

Please sign in to comment.