Commit 46d4a8d
Address PR review findings
- Fix stale parse_pieces docstring that still described adding derived
parts "to the constant"
- Document the derived-set branch in the is_prefix / is_suffix /
is_conjunction docstrings, and reword is_leading_title's now-vacuous
"does not mutate C.titles" contrast into the narrower load-bearing
fact (the regex match is not registered anywhere, even per-parse)
- Remove the redundant _derived_suffixes check from is_suffix_lenient:
it falls through to is_suffix(), which already consults the overlay,
and derived suffixes always contain an interior period so they can
never trip the is_an_initial() veto that "lenient" exists to bypass
- Add mutation-verified regression tests for the two coverage gaps:
is_rootname's derived-title exclusion (its overlay checks were
deletable without any test failing, yet dropping them misparses
"Lt.Gov. juan e garcia" into an empty first name) and the
__setstate__ backfill for pickles predating the derived sets (whose
absence crashes capitalize() with AttributeError)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 61df6fa commit 46d4a8d
3 files changed
Lines changed: 48 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | | - | |
587 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
591 | 592 | | |
592 | | - | |
| 593 | + | |
| 594 | + | |
593 | 595 | | |
594 | 596 | | |
595 | 597 | | |
| |||
602 | 604 | | |
603 | 605 | | |
604 | 606 | | |
605 | | - | |
| 607 | + | |
| 608 | + | |
606 | 609 | | |
607 | 610 | | |
608 | 611 | | |
| |||
657 | 660 | | |
658 | 661 | | |
659 | 662 | | |
660 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
661 | 666 | | |
662 | 667 | | |
663 | 668 | | |
| |||
697 | 702 | | |
698 | 703 | | |
699 | 704 | | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
| 705 | + | |
704 | 706 | | |
705 | 707 | | |
706 | 708 | | |
| |||
1211 | 1213 | | |
1212 | 1214 | | |
1213 | 1215 | | |
1214 | | - | |
1215 | | - | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1216 | 1219 | | |
1217 | 1220 | | |
1218 | 1221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
98 | 119 | | |
99 | 120 | | |
100 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
228 | 240 | | |
229 | 241 | | |
230 | 242 | | |
| |||
0 commit comments