Commit 96e6186
committed
test: pin whole-word matching for Turkic marker regex; docs: clarify guard asymmetry
Addresses PR review feedback on #198:
- Add a regex-level test confirming is_turkic_patronymic_marker() only
matches whole marker words, not substrings (e.g. "ogluu", "Bogluchik"),
guarding against a future accidental .match()->.search() swap.
- Soften docs/customize.rst's "mirroring the strictness of the
East-Slavic guard" claim, which overstated parity: the Turkic guard
has no middle-token disambiguation check analogous to East-Slavic's,
since marker words are a small closed set unlikely to coincide with
an ordinary given name.1 parent 83615bc commit 96e6186
2 files changed
Lines changed: 23 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | 20 | | |
| |||
0 commit comments