feat(go/M2.2): port czech.ParseMonthReferences #5
Reference in New Issue
Block a user
Delete Branch "feat/m2-2-parse-month-references"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Ports
parse_month_referencesfromscripts/czech_utils.pyto Go asinternal/domain/czech.ParseMonthReferences.Three-pass implementation mirroring the Python logic exactly:
"11+12/2025","01/26", plus-split months, 2-digit year → +2000"12.2025"(4-digit year required;"1.26"is rejected)m≥10 → defaultYear-1heuristic. Longest-match alternation (names sorted desc by length) ensurescervenecbeatscerven.35 table-driven tests. All expected outputs verified against the live Python implementation before locking the table (see plan at
docs/plans/2026-05-05-2337-go-rewrite-m2-2-parse-month-references.md).Addresses risk #4 from the parent plan (Czech month parser semantics).
Test plan
cd go && go build ./...— clean compilecd go && go test ./internal/domain/czech/...— 35/35 greencd go && go test -race ./...— race-cleanmake go-lint— clean, gofumpt-formattedPYTHONPATH=scripts:. python -c 'from czech_utils import parse_month_references; ...'🤖 Generated with Claude Code