Follow-up to #591, as discussed in the review there.
Problem
A four-digit number directly after the title was explained as a year, so a release for a differently numbered work confirmed against the shorter stored title:
| stored book | release | before | now |
|---|---|---|---|
| Blade Runner | Philip K. Dick - Blade Runner 2049 [M4B]
| confirmed | deferred |
| Death Race | Death Race 2000 by Jane Doe
| confirmed | deferred |
| Wonder Woman | Jane Doe - Wonder Woman 1984 (Unabridged)
| confirmed | deferred |
| Blade Runner | Philip K. Dick - Blade Runner 2049 Unabridged MP3
| confirmed | deferred |
Change
ReleaseSpanInterpreter now requires an explicit metadata boundary before a number can be a year. When the first field after the title is a four-digit number and the original text between them is only whitespace or a dot, the field is left ambiguous with numeric_annotation_ambiguous. The check runs before the field recognizers, so the number cannot be absorbed into a larger technical-token span such as 2049 Unabridged MP3. There is no plausible-year range; 9999 and 1984 are treated the same.
Still explained as before:
- delimited years:
(2010),[2010],- 2010 -,, 2010 - a year after another metadata field:
Unabridged 2010,[M4B] 2010 - scene fields:
Title-2010-Unabr-M4B-NMR,...-M4B-de.Ocampo.2010.NMR - a year before the title
- complete numeric titles: a stored
1984orThe Quiet Orchard 2049still matches its own release, in plain and scene layouts
Numbers of other lengths next to the title (204, 2, 20491) were already unexplained and stay that way.
Tests
Four new theories in ReleaseRecallRuleTests (29 cases). Eleven of them fail without the interpreter change.
- Focused slice (Search.Matching, AutomaticRelevance, ProcessorRelevance, SearchResultScorer, AutomaticSearch, architecture): 1512 pass, 0 fail.
- Replay of the 498-release corpus against v1.8.0 and this branch, with title and author only ...
Automated Canary build