matrix-awarenessbot/dictionary/default.yaml
Kumi 629718b79f
feat: add inclusive language Matrix bot
Added an inclusive language bot for Matrix chat, which detects and suggests replacements for non-inclusive or unacceptable language based on configurable terms. Bot can send direct messages to users and notify room admins. Included configuration and default dictionary files.

- Added `.gitignore` for virtual environments, build artifacts, and Python cache
- Config YAML template and default inclusive dictionary terms
- Required dependencies listed in `requirements-dev.txt`
2024-08-19 17:08:37 +02:00

144 lines
3.7 KiB
YAML

non_inclusive_terms:
blacklist:
replacement: "blocklist"
reason: "Avoids racial connotations"
whitelist:
replacement: "allowlist"
reason: "Avoids racial connotations"
master:
replacement: "main"
reason: "Avoids references to slavery"
slave:
replacement: "replica"
reason: "Avoids references to slavery"
sanity_check:
replacement: "quick check"
reason: "Avoids ableist language"
dummy_value:
replacement: "placeholder value"
reason: "Avoids ableist language"
man_hours:
replacement: "person-hours"
reason: "Gender-neutral"
manpower:
replacement: "workforce"
reason: "Gender-neutral"
grandfathered:
replacement: "legacy status"
reason: "Avoids ageist language"
crazy:
replacement: "unreasonable"
reason: "Avoids ableist language"
insane:
replacement: "unreasonable"
reason: "Avoids ableist language"
crippled:
replacement: "restricted"
reason: "Avoids ableist language"
dumb:
replacement: "unwise"
reason: "Avoids ableist language"
lame:
replacement: "unimpressive"
reason: "Avoids ableist language"
powwow:
replacement: "meeting"
reason: "Avoids cultural appropriation"
spirit animal:
replacement: "inspiration"
reason: "Avoids cultural appropriation"
tribe:
replacement: "group"
reason: "Avoids cultural appropriation"
off the reservation:
replacement: "off track"
reason: "Avoids cultural appropriation"
Eskimo:
replacement: "Inuit" or "Yupik"
reason: "More accurate and respectful term"
gypped:
replacement: "cheated"
reason: "Avoids ethnic slur"
long time no see:
replacement: "it's been a while"
reason: "Avoids mocking non-native English speakers"
no can do:
replacement: "unable to do"
reason: "Avoids mocking non-native English speakers"
black sheep:
replacement: "outcast"
reason: "Avoids racial connotations"
cakewalk:
replacement: "easy task"
reason: "Avoids references to slavery"
peanut gallery:
replacement: "audience"
reason: "Avoids classist language"
sold down the river:
replacement: "betrayed"
reason: "Avoids references to slavery"
uppity:
replacement: "arrogant"
reason: "Avoids racial connotations"
grandfather clause:
replacement: "legacy clause"
reason: "Avoids ageist language"
gyp:
replacement: "cheat"
reason: "Avoids ethnic slur"
# Add more term-improvement pairs here
unacceptable_terms:
- term: "nigga"
reason: "Racial slur"
- term: "nigger"
reason: "Racial slur"
- term: "fag"
reason: "Homophobic slur"
- term: "tranny"
reason: "Transphobic slur"
- term: "retard"
reason: "Ableist slur"
- term: "spic"
reason: "Racial slur"
- term: "chink"
reason: "Racial slur"
- term: "gook"
reason: "Racial slur"
- term: "kike"
reason: "Anti-Semitic slur"
- term: "cunt"
reason: "Sexist slur"
- term: "faggot"
reason: "Homophobic slur"
- term: "dyke"
reason: "Homophobic slur"
- term: "coon"
reason: "Racial slur"
- term: "wetback"
reason: "Racial slur"
- term: "jap"
reason: "Racial slur"
- term: "towelhead"
reason: "Racial slur"
- term: "sandnigger"
reason: "Racial slur"
- term: "whore"
reason: "Sexist slur"
- term: "slut"
reason: "Sexist slur"
- term: "bitch"
reason: "Sexist slur"
- term: "pussy"
reason: "Sexist slur"
- term: "dickhead"
reason: "Sexist slur"
- term: "asshole"
reason: "Offensive language"
- term: "cock"
reason: "Offensive language"
- term: "motherfucker"
reason: "Offensive language"
- term: "cocksucker"
reason: "Offensive language"
# Add more unacceptable terms here