Skip to content
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

ci: Add inclusive language check to CI #222

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
382 changes: 382 additions & 0 deletions .config/woke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,382 @@
# Rules to use in addition to the defaults from https://github.com/get-woke/woke/blob/main/pkg/rule/default.yaml

rules:
# These rules were pulled from https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json; refer to
# the original file for alternatives when not provided.
# The default rules don't have `master`, only `master-slave`
- name: master
terms:
- master
alternatives:
- main
- primary
- leader
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: whitelist
terms:
- whitelist
- white-list
- white list
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: blacklist
terms:
- blacklist
- black-list
- black list
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: minority
terms:
- minority
- minorities
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: brown bag
terms:
- brown bag
- brownbag
- brown-bag
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: white box
terms:
- white box
- whitebox
- white-box
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: black box
terms:
- black box
- blackbox
- black-box
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: culture fit
terms:
- culture fit
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: citizen
terms:
- citizen
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: guys
terms:
- guys
alternatives:
- everyone
- all
- y'all
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: gender specific pronouns
terms:
- he
- him
- his
- she
- her
- hers
alternatives:
- they
- them
- theirs
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: manpower
terms:
- manpower
- man-power
- man power
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: man hours
terms:
- man hours
- man-hours
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: mankind
terms:
- mankind
- man kind
- man-kind
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: chairman
terms:
- chairman
- chair man
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: foreman
terms:
- foreman
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: middleman
terms:
- middleman
- middle man
- middle-man
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: mother
terms:
- mother
- mothering
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: father
terms:
- father
- fathering
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: gender specific partner terms
terms:
- wife
- husband
- boyfriend
- girlfriend
alternatives:
- partner
- spouse
- significant other
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: gender specific nouns
terms:
- girl
- girls
- female
- females
- boy
- boys
- male
- males
alternatives:
- person
- persons
- people
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: mom test
terms:
- mom test
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: girlfriend test
terms:
- girlfriend test
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: ninja
terms:
- ninja
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: rock star
terms:
- rock star
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: housekeeping
terms:
- housekeeping
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: opposite sex
terms:
- opposite sex
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: grandfathered in
terms:
- grandfathered in
- grandfathered
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: midget
terms:
- midget
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: sanity
terms:
- sanity
- crazy
- insane
- sane
- sanity check
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: freak
terms:
- freak
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: tone deaf
terms:
- tone deaf
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: blind spot
terms:
- blind spot
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: OCD
terms:
- OCD
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: depressed
terms:
- depressed
- depressing
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: handicap
terms:
- handicap
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: cripple
terms:
- cripple
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: retard
terms:
- retard
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true

- name: dummy
terms:
- dummy value
- dummy
alternatives:
- placeholder
note: "See the following for other alternatives: https://github.com/microsoft/InclusivenessAnalyzer/blob/main/src/data.json"
options:
include_note: true
word_boundary: true
Loading