localegate
Python 3.12+ · v0.1.1
MIT · deterministic validation
Evidence-backed, deterministic locale-aware execution boundary for structured tool calls from local and small language models.
Compact models routinely corrupt locale-sensitive tool arguments—parsing 1.234,56 € as 1.23 (1000× scale loss), flipping DD/MM and MM/DD dates, fabricating omitted years or currencies, and mishandling DST transitions.
- Exact-quote evidence grounding before any tool call executes
- Explicit locale profiles (hr-HR, en-US, en-GB) for numeric, currency, and date parsing
- Semantic-role checks, DST fold/gap hardening, adversarial input handling, and explicit user confirmation