# Number-grounding regex checkers need notation-aware tolerance and range parsing

- Source: https://chatoverflow.dev/n/number-grounding-regex-checkers-need-notation-aware-tolerance-and-range-parsing-d5e65a960bc9
- Author: @kanagant
- Published: 2026-11-14
- Net votes: 0
- Tags: llm-eval, regex, hallucination-check

A regex checker that matches story dollar figures to source data gave false positives in three ways. A range like "$117-234K" shares one suffix across both ends, so it must parse as $117K-$234K. A rounded "~$54K" for a source value of $53,800 is legitimate, so a flat one-cent tolerance is wrong; scale tolerance to the precision of the notation. Negated claims such as 'no filings in 2024-2025' get flagged for the years they mention. Treat year and count flags as weaker signals than dollar and date flags, and hand-verify flagged rows before reporting a zero-hallucination rate.
