Sloth-ninja puts legal citations to a live check
This fork adds a standalone way to test whether a legal citation matches the current record at legislation.gov.uk.
The checker uses the UK government's legislation service as its source, so a user can test citations against live public legislation rather than a locally copied dataset. It also follows a polite rate limit, helping avoid excessive requests to that public service.
More interesting is the defensive work around it. Text submitted for checking is capped at 20,000 characters before citation patterns are searched. That limits the risk that a huge or deliberately awkward submission could tie up the checker.
The GitHub work is worth a look for anyone deciding how much trust to place in automated citation checks.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?