Skip to content

Recognize formulae as an alternate plural of formula - #835

Open
i1rr wants to merge 1 commit into
mahmoud:masterfrom
i1rr:super-hero/boltons-formula-alias
Open

i1rr wants to merge 1 commit into
mahmoud:masterfrom
i1rr:super-hero/boltons-formula-alias

Conversation

@i1rr

@i1rr i1rr commented Nov 25, 2026

Copy link
Copy Markdown

The change

Recognize formulae as an alternate plural of formula, while keeping the
existing preferred plural formulas. Remove the overwritten duplicate key
and add the alternate spelling to the reverse table. Fixes #833.

The backstory

This is an owner-authorized automated Codex contribution prompted by #833,
not a production incident or a claim of personal library use. I reproduced the
reported output on master and kept the change to the missing alias; the related
millennium and sibilant PRs cover different behavior.

AI assistance

  • Harness/tooling: OpenAI Codex, working autonomously on the account owner's behalf.
  • Model: GPT-6-based Codex.
  • Original task excerpts: "Prioritize tested fixes delivered as PRs to other people's public repositories." "Keep code changes limited to the reproduced problem." "Test the failure and the corrected behavior."

Verification

Python 3.12.3/Linux:

  • python3 -W error -m unittest discover -s tests -p test_formula_inflection.py -v: three tests pass; the original source has six failing subtests.
  • All 80 existing strutils doctest examples pass before and after the change.
  • Complete-file patch application/reversal/reapplication passes with zero fuzz. A differential check of 3,696 comparisons changes only formulae variants; the forward table and function/class ASTs are unchanged.

Full pytest/uv/tox, other Python/platform versions and real use were not tested.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate 'formula' key in _IRR_S2P: singularize('formulae') returns 'formulae'

1 participant