-
Notifications
You must be signed in to change notification settings - Fork 180
feat: add speciesist language checks #1490
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
Open
stuckvgn
wants to merge
3
commits into
amperser:main
Choose a base branch
from
stuckvgn:feat/speciesist-language-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| """ | ||
| Speciesism. | ||
|
|
||
| --- | ||
| layout: post | ||
| source: Dunayer, J. (2001). Animal Equality: Language and Liberation. | ||
| source_url: https://doi.org/10.1017/S0962728600024489 | ||
| title: speciesism | ||
| date: 2026-04-08 12:00:00 | ||
| categories: writing | ||
| --- | ||
|
|
||
| Points out speciesist idioms and animal comparisons used as insults, | ||
| and suggests clearer alternatives. | ||
|
|
||
| """ | ||
|
|
||
| from proselint.registry.checks import Check, types | ||
|
|
||
| CHECK_PATH = "social_awareness.speciesism" | ||
|
|
||
| check_preferred_forms = Check( | ||
| check_type=types.PreferredFormsSimple( | ||
| items={ | ||
| "kill two birds with one stone": "solve two problems at once", | ||
| "beat a dead horse": "belabor the point", | ||
| "wild goose chase": "futile search", | ||
| "let the cat out of the bag": "reveal the secret", | ||
| "guinea pig": "test subject", | ||
| "the elephant in the room": "the obvious issue", | ||
| "dog-eat-dog": "cutthroat", | ||
| "rat race": "daily grind", | ||
| "work like a dog": "work relentlessly", | ||
| "more than one way to skin a cat": "more than one way to solve this", | ||
| "open a can of worms": "create a new set of problems", | ||
| "hold your horses": "slow down", | ||
| "dark horse": "unexpected contender", | ||
| "straight from the horse's mouth": "from the original source", | ||
| "flog a dead horse": "belabor the point", | ||
| "take the bull by the horns": "tackle the problem directly", | ||
| "bull in a china shop": "clumsy or disruptive person", | ||
| "sacred cow": "untouchable assumption", | ||
| "cash cow": "reliable revenue source", | ||
| "herding cats": "managing an unruly group", | ||
| "let sleeping dogs lie": "avoid stirring up past trouble", | ||
| "barking up the wrong tree": "pursuing a mistaken course", | ||
| "cat got your tongue": "unable to speak", | ||
| "raining cats and dogs": "raining heavily", | ||
| "bird's-eye view": "aerial view", | ||
| "cold turkey": "abruptly", | ||
| } | ||
| ), | ||
| path=CHECK_PATH, | ||
| message="Speciesist idiom. Consider '{}' instead of '{}'.", | ||
| ) | ||
|
|
||
| check_derogatory = Check( | ||
| check_type=types.PreferredFormsSimple( | ||
| items={ | ||
| "eat like a pig": "eat ravenously", | ||
| "stubborn as a mule": "extremely stubborn", | ||
| "blind as a bat": "completely blind", | ||
| "quiet as a mouse": "extremely quiet", | ||
| "drunk as a skunk": "extremely drunk", | ||
| "fat as a pig": "overweight", | ||
| "sweating like a pig": "sweating heavily", | ||
| "slow as a snail": "extremely slow", | ||
| "memory like a goldfish": "short memory", | ||
| } | ||
| ), | ||
| path=CHECK_PATH, | ||
| message="Animal comparison used as an insult. Consider '{}' instead of '{}'.", | ||
| ) | ||
|
|
||
| __register__ = (check_preferred_forms, check_derogatory) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these all specific examples from the source itself? I can think of potentially better ways to say many of these, so if so, I'll need to investigate the source further.