Commit 8887ab0
fix(extract): don't flag the singular of a defined y→ies plural term
STRUCT-006's undefined-term scan skips a singular phrase whose plural is a
defined term, but the check only tried the bare "+s"/"+es" forms. For a term
whose final word takes a "y"→"ies" plural — "Licensed Facilities" defined,
"Licensed Facility" used — those forms produce "licensed facilitys" /
"licensed facilityes", so the singular was not recognized and leaked in as a
used-but-undefined term. (The regular "+s" case, "Licensed Products" →
"Licensed Product", already worked.)
Also test regularPlural(phrase), which produces the "ies" form; the bare
"+s"/"+es" forms are kept for a final word already ending in "s" ("Asset
Class" → "Asset Classes"), which regularPlural intentionally skips.
Zero golden churn: no fixture in the 327-doc corpus uses the singular of a
y→ies plural-defined term.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3cb0121 commit 8887ab0
3 files changed
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | | - | |
| 1335 | + | |
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
997 | 1012 | | |
998 | 1013 | | |
999 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
713 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
714 | 724 | | |
715 | 725 | | |
716 | 726 | | |
| |||
0 commit comments