Skip to content

Fix pluralization of lynx, quiz and jeans#571

Open
cool-RR wants to merge 1 commit into
sloria:devfrom
cool-RR:fix-pluralize-403
Open

Fix pluralization of lynx, quiz and jeans#571
cool-RR wants to merge 1 commit into
sloria:devfrom
cool-RR:fix-pluralize-403

Conversation

@cool-RR

@cool-RR cool-RR commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #403.

Three words were getting bad plurals:

  • pluralize("lynx") gave "lynges". The classical rule ([iay])nx$ -> nges is right for larynx and pharynx, but there's no such word as "lynges". Added an explicit lynx -> lynxes rule (Merriam-Webster lists "lynx" and "lynxes" as the plurals).
  • pluralize("jeans") gave "jeanss". Added "jeans" to the uninflected lists, next to its cousins breeches and britches, on both the pluralize and singularize sides.
  • pluralize("quiz") gave "quizs". I found this one while reproducing the issue. Funny enough, singularize already had a quizzes -> quiz rule, so the plural side just never kept up its end of the deal. Added quiz -> quizzes, plus lynxes -> lynx to the irregular singulars so round trips work.

Added tests for all three words in both directions. The whole suite passes.

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.

Pluralization gives dubious results on some corner cases

1 participant