From enforcement notices to repeat violations
Public enforcement notices can be searched for repeat violations, patterns over time and similarities between companies. Every finding can be opened down to its source document.
Problem
Public enforcement orders exist only record by record and as free text. They cannot answer why violations happen, whether they recur or how pressure differs by region or sector. Large operators look worse in raw counts simply because they have more sites.
What is different
The app rebuilds a normalised, pseudonymised dataset from public APIs every night. Comparisons are normalised by register size, such as orders per 100 sites. A language model reads each document and extracts the cause, the official's assessment and what the operator did itself, each backed by a verbatim quote.
Invisible layers
- A nightly pipeline pulls from public APIs, detects new, changed and removed records by content hash, and aborts if a change is suspiciously large.
- Personal data is removed twice. At ingest, officials get pseudonyms, personal codes are checksum-validated and replaced, and emails and phones become tags. A nightly scan then re-checks everything and quarantines suspicious records out of public view.
- Domains are assigned by a deterministic lexicon, identical in TypeScript and SQL.
- The LLM cause layer runs in batches, with character-level citations, prompt versions, a cost cap per run and a global kill switch on all paid calls.
- Every LLM extraction is reviewed by two people independently.
- Semantic search and a drafting aid suggest deadlines and fines from similar past cases.
- Recurrence is detected as evidence chains linked to the source documents.
- A public MCP server with 24 tools and downloadable files expose the same data to AI assistants.
What comes next
A drafting aid for inspectors writing new orders, tracking of promised deadlines, and more registers as denominators.