Repository navigation
Commit eb546e5
committed
refactor: stop asking the verb list whether a subject passes
The IMPERATIVES fast path was protecting exactly four words -- embed,
feed, ping, speed -- and all four are already in
NON_IMPERATIVE_LOOKALIKES, so it changed no verdict. Checked over the
2,333 distinct first words in git.git's history: zero differences,
576 rejections either way.
Removing it leaves the morphology as the only thing that decides, and
moves the lookalike check into _is_inflected where it belongs, since
those words exist because of the suffix test rather than beside it.
IMPERATIVES stays for the -s stem test, which genuinely needs it, but
its header no longer tells contributors to treat a rejected subject as
a missing entry. That contract is what #526 was about, and it is gone:
an absent verb now costs a missed violation, never a false rejection.1 parent f6ecd9f commit eb546e5
2 files changed
Lines changed: 10 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | 425 | | |
430 | 426 | | |
431 | 427 | | |
| |||
435 | 431 | | |
436 | 432 | | |
437 | 433 | | |
| 434 | + | |
| 435 | + | |
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
0 commit comments