Skip to content

proposal: inclusive language rules for speciesist terminology #23557

@stuckvgn

Description

@stuckvgn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-decisionAwaiting a decision from a maintainerruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions