Skip to content

Fix singular_noun stripping for nouns ending in ics and ess (#214) - #254

Open
Saarthak-Lawand wants to merge 1 commit into
jaraco:mainfrom
Saarthak-Lawand:fix-issue-214
Open

Fix singular_noun stripping for nouns ending in ics and ess (#214)#254
Saarthak-Lawand wants to merge 1 commit into
jaraco:mainfrom
Saarthak-Lawand:fix-issue-214

Conversation

@Saarthak-Lawand

Copy link
Copy Markdown

Overview

This PR fixes an issue where the singular_noun engine aggressively strips trailing 's' characters from mass nouns ending in -ess (like business) and academic/scientific terms ending in -ics (like physics or biomechanics).

Changes

  • Added a global module array (ess_nouns) containing invariant singular terms ending in -ess.
  • Injected an early-return safety layer inside _sinoun to catch -ics and ess_nouns strings and return False, correctly preserving their singular status.
  • Verified the changes locally via pytest; all core test cases pass with zero regressions.

Closes #214

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.

Incorect singular inflections of business, physics, biomechanics

1 participant