Commit b321356
Reach the wrong-case apposition fallback
The fallback that lets an apposition or parenthesis in the wrong case
parse with an error tag ("Ég ræddi við forsætisráðherra (Sigmundur
Davíð)") was defined under the misspelt name Svigainnihald_* and thus
never referenced, although GreynirCorrect still has the handler for
its AðvörunSvigaInnihaldNl node.
Attach it as the last, lowest-priority alternative of SvigaInnihald
via a per-case helper. A separate definition block would have gotten
top priority and pruned the correct readings, since the priority
counter of a block is not shared with the generic definition.
On the 1000-sentence baseline 2 trees change, both improved (a
parenthesis "( átta )" now attaches as an apposition instead of
forcing a heading analysis). Engine and GreynirCorrect suites pass.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent d4c4576 commit b321356
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5459 | 5459 | | |
5460 | 5460 | | |
5461 | 5461 | | |
5462 | | - | |
5463 | | - | |
5464 | | - | |
5465 | | - | |
5466 | | - | |
5467 | | - | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
5468 | 5471 | | |
5469 | 5472 | | |
5470 | 5473 | | |
| |||
0 commit comments