Proposal
Add inclusive language rules to Ruff that detect speciesist terminology in comments, docstrings, and string literals, suggesting clearer alternatives.
Context
Ruff already covers code style, security, complexity, and typing. Inclusive language scanning is a natural extension — several other linting tools have added this category:
Example Rules
| Code |
Rule |
Fix |
# Kill two birds with one stone |
SPE001 |
# Accomplish two things at once |
# This is a guinea pig feature |
SPE002 |
# This is a test feature |
# Treat servers like cattle, not pets |
SPE003 |
# Treat servers as ephemeral, not persistent |
CANARY_DEPLOYMENT = True |
SPE004 |
PROGRESSIVE_ROLLOUT = True |
Severity
These would be suggestion-level rules, disabled by default, opt-in via configuration. Similar to how Ruff handles style preferences — available for teams that want them, invisible to those who don't.
Academic Foundation
- Hagendorff et al. (2023). "Speciesist bias in AI." AI and Ethics.
- Takeshita et al. (2022). Information Processing & Management.
- Leach et al. (2023). British Journal of Social Psychology.
Willingness to Contribute
Happy to implement if there's interest. Open Paws has already built speciesist language detection for 7+ tools.
Proposal
Add inclusive language rules to Ruff that detect speciesist terminology in comments, docstrings, and string literals, suggesting clearer alternatives.
Context
Ruff already covers code style, security, complexity, and typing. Inclusive language scanning is a natural extension — several other linting tools have added this category:
Example Rules
# Kill two birds with one stoneSPE001# Accomplish two things at once# This is a guinea pig featureSPE002# This is a test feature# Treat servers like cattle, not petsSPE003# Treat servers as ephemeral, not persistentCANARY_DEPLOYMENT = TrueSPE004PROGRESSIVE_ROLLOUT = TrueSeverity
These would be
suggestion-level rules, disabled by default, opt-in via configuration. Similar to how Ruff handles style preferences — available for teams that want them, invisible to those who don't.Academic Foundation
Willingness to Contribute
Happy to implement if there's interest. Open Paws has already built speciesist language detection for 7+ tools.