fix(normalizer): keep Task 5 scoped — drop year-only matcher (belongs to Task 8)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-25 13:36:48 +02:00
parent cff486dda7
commit b43dd6cdd4
2 changed files with 3 additions and 12 deletions

View File

@@ -60,6 +60,6 @@ def test_parse_approx_marker_upgrades_precision():
assert r.precision == Precision.UNKNOWN # no month-name matcher until Task 7; full APPROX check in Task 8
def test_parse_leading_qualifier_is_approx():
r = dates.parse_date("nach 1900") # "after 1900" -> year salvaged, but precision is APPROX not exact
assert r.iso == "1900-01-01"
r = dates.parse_date("nach 1.5.1900") # qualifier stripped, numeric date salvaged, precision APPROX
assert r.iso == "1900-05-01"
assert r.precision == Precision.APPROX