Skip to content

Commit 001b96e

Browse files
committed
docs: add vale rules for animal-derived language alternatives
Introduce suggestion-level substitution rules that flag common animal-derived phrases and offer clearer alternatives.
1 parent 5523b5e commit 001b96e

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

docs/codeql/.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ MinAlertLevel = suggestions
1818
# Vale comes with three built-in styles: write-good, proselint, and Joblint.
1919
# You could enable all rules in the "Microsoft" style guide as follows:
2020
# BasedOnStyles = Microsoft
21-
BasedOnStyles = Semmle
21+
BasedOnStyles = Semmle, Speciesism
2222

2323
# Initially, we only want to run a few rules, so we'll specify them individually
2424
# Style.Rule = {YES, NO} to enable or disable a specific rule
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
extends: substitution
2+
message: "Consider using '%s' instead of '%s'. This phrase normalizes violence toward animals."
3+
link: https://doi.org/10.1007/s43681-023-00380-w
4+
level: suggestion
5+
ignorecase: true
6+
swap:
7+
'kill two birds with one stone': accomplish two things at once
8+
'killing two birds with one stone': accomplishing two things at once
9+
'killed two birds with one stone': accomplished two things at once
10+
'beat a dead horse': belabor the point
11+
'beating a dead horse': belaboring the point
12+
'flog a dead horse': belabor the point
13+
'flogging a dead horse': belaboring the point
14+
'bring home the bacon': bring home the results
15+
'bringing home the bacon': bringing home the results
16+
'brought home the bacon': brought home the results
17+
'more than one way to skin a cat': more than one way to solve this
18+
'many ways to skin a cat': many ways to approach this
19+
'let the cat out of the bag': reveal the secret
20+
'letting the cat out of the bag': revealing the secret
21+
'open a can of worms': create a complicated situation
22+
'opening a can of worms': creating a complicated situation
23+
'opened a can of worms': created a complicated situation
24+
'wild goose chase': pointless pursuit
25+
'take the bull by the horns': face the challenge head-on
26+
'taking the bull by the horns': facing the challenge head-on
27+
'took the bull by the horns': faced the challenge head-on
28+
'like shooting fish in a barrel': extremely easy
29+
'straight from the horse''s mouth': directly from the source
30+
'from the horse''s mouth': from a reliable source
31+
'whack-a-mole': recurring problem
32+
'whack a mole': recurring problem
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
extends: substitution
2+
message: "Consider using '%s' instead of '%s'. This term references animals as objects or tools."
3+
link: https://doi.org/10.1007/s43681-023-00380-w
4+
level: suggestion
5+
ignorecase: true
6+
swap:
7+
'guinea pig': test subject
8+
'sacred cow': unquestioned belief
9+
'sacred cows': unquestioned beliefs
10+
'scapegoat(?:ed|ing)?': wrongly blamed
11+
'dog-eat-dog': ruthlessly competitive
12+
'dog eat dog': ruthlessly competitive
13+
'rat race': competitive grind
14+
'red herring': false lead

0 commit comments

Comments
 (0)