Skip to content

Commit

Permalink
ci: Add inclusive language check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed Jun 21, 2024
1 parent 1716448 commit c15d9e3
Show file tree
Hide file tree
Showing 2 changed files with 401 additions and 0 deletions.
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

0 comments on commit c15d9e3

Please sign in to comment.