Commit b72adf6
fix: recognize single-letter suffix_not_acronyms (e.g. 'V') in suffix-comma format (closes #136)
Roman numeral suffixes like 'V' are single uppercase letters, which the
initial regex also matches. In suffix-comma format ("John Ingram, V") the
post-comma position is unambiguous, so the initial guard should not block
recognition. Add are_suffixes_after_comma() that bypasses the initial check
for suffix_not_acronyms members and use it at the suffix-comma detection site,
leaving is_suffix() unchanged for the no-comma path where 'V' mid-name should
still be treated as an initial.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1fe391c commit b72adf6
2 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
490 | 505 | | |
491 | 506 | | |
492 | 507 | | |
| |||
686 | 701 | | |
687 | 702 | | |
688 | 703 | | |
689 | | - | |
| 704 | + | |
690 | 705 | | |
691 | 706 | | |
692 | 707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
0 commit comments