ResearchPod Summary
Legal AI has historically focused on federal statutes, case law, and contracts, leaving the vast, fragmented, and often inaccessible body of local municipal and county ordinances largely unstudied. The authors seek to "free the law" by creating a standardized, machine-readable corpus that allows researchers to perform large-scale empirical analysis on the regulations that govern everyday life, such as zoning, housing, and business licensing.
To overcome the fragmentation of local codes across various vendor platforms, the authors developed a pipeline to collect, OCR, and clean over 9,000 municipal and county ordinance documents. They utilized a vision-language model (LightOnOCR-2-1B) to convert diverse PDF formats into structured Markdown. To make the data useful for research, they trained ModernBERT-based classifiers to categorize ordinances by function (e.g., rules, enforcement, structural) and topic (e.g., zoning, nuisance). Furthermore, they implemented a dimensional analysis framework using TrueSkill-based pairwise comparisons to score ordinances on four normative axes: opacity, paternalism, enforcement discretion, and problem salience.
The resulting LOCUS-v1 dataset provides a reproducible substrate for legal AI research, covering jurisdictions that represent 94% of the U.S. population. The authors demonstrate that their ModernBERT-based scorers can reliably predict normative dimensions of local law, enabling researchers to identify macro-trends—such as regional differences in how opaque or paternalistic local regulations are—that were previously impossible to quantify at this scale.
By transforming fragmented, human-browsing-oriented legal documents into a structured, searchable dataset, LOCUS enables a new class of empirical legal studies. It provides the necessary infrastructure for future work in legal retrieval, comparative policy analysis, and the evaluation of foundational models on complex, multi-layered legal reasoning tasks where state, county, and municipal authorities overlap.
Alex: Welcome to another episode of ResearchPod. Today, we're looking at a project called LOCUS, which aims to make local American laws—city and county rules—actually searchable and usable for research.
Sam: So this paper is asking: why can we easily find federal laws online, but we're totally stuck when it comes to the rules for our own neighborhoods?
Alex: Exactly. Local laws are trapped in a fragmented system of different websites and PDF files. They aren't built for computers to read, so it's nearly impossible to compare them across towns.
Sam: That makes sense. If I wanted to compare business licensing rules between two counties, I'd have to manually dig through two different websites. It sounds like this team is trying to turn that chaos into a single, organized library.
Alex: That is the goal. They built a system to gather millions of pages of local documents and convert them into a standard digital format. Think of it like taking thousands of messy, handwritten notebooks and typing them all into one clean spreadsheet.
Sam: How do they actually get the text out of those messy files? I imagine the documents aren't all formatted the same way.
Alex: Most of these documents exist as scanned images—basically photographs of paper. So the team uses a technology that looks at those images and converts the visual shapes of letters into actual typed characters a computer can work with. That process is called Optical Character Recognition, or OCR. It's the same technology that lets you take a photo of a receipt and have your phone read the text off it.
Sam: Okay, so once they have all that text in a digital format, how do they make sense of it? They can't be reading it all by hand.
Alex: Right. Imagine you needed to sort thousands of documents into categories—zoning rules, noise ordinances, business licenses—without reading each one yourself. You'd want an assistant that had already read millions of similar documents and learned to recognize the patterns. That's essentially what a language model does. The team uses one called ModernBERT, which has been trained to categorize text by topic automatically.
Sam: And they use that to score laws on specific traits, right? I saw mentions of things like "opacity" and "paternalism." How does a computer measure something that abstract?
AI-generated third-party summary by ResearchPod. Not official content or an endorsement by the paper authors or affiliated organizations.
Alex: That's where it gets interesting. They can't just search for a keyword, because a law can be hard to understand without ever using the word "confusing." So instead, they train the model by showing it thousands of examples—laws that human experts have already labeled as more or less opaque. The model learns to recognize the underlying patterns in that language. It's a bit like teaching someone to identify a formal essay versus a casual text message: you don't give them a rulebook, you just show them enough examples until they develop an instinct for it.
Sam: So instead of searching for specific words, you could theoretically ask the system to surface laws that are particularly hard for ordinary people to understand, or ones that are unusually restrictive.
Alex: Precisely. And because every law in the database gets scored the same way, you can now compare them. A researcher could ask whether rural counties tend to have more opaque zoning rules than urban ones, and actually get an answer.
Sam: But how do they know the computer isn't just guessing? Legal language is notoriously subtle.
Alex: That's a fair challenge. The scoring system is built on comparisons rather than absolute judgments. Instead of asking the model to rate a law from one to ten, they ask it a simpler question: between these two laws, which one is more opaque? They repeat that process thousands of times across different pairs. The system they use to tally those comparisons is called TrueSkill—originally developed to rank competitive video game players online. The logic is straightforward: if Law A consistently beats Law B in head-to-head comparisons, and Law B consistently beats Law C, you can build a reliable ranking without ever needing a perfect numerical score.
Sam: That's a clever way to sidestep the problem. It's not asking for an absolute number—it's asking for a relative judgment, which is much easier to get right.
Alex: Exactly. And once they have those rankings, they train a smaller, faster model to predict them. That smaller model can then score millions of laws cheaply and quickly—the paper reports costs well under a dollar per thousand pages.
Sam: So they've turned a mountain of unreadable PDFs into a structured, searchable database, at a cost that makes the whole project practical. That's a meaningful shift in what's possible.
Alex: It is. Before this, studying local law at a national scale meant either hiring large teams of research assistants or simply giving up. Now there's a consistent, automated way to measure and compare laws that were previously invisible to large-scale analysis.
Sam: But does this actually solve the legal problem? Laws aren't just text—they're about who has the power to enforce what.
Alex: That is a critical limitation the paper acknowledges directly. Having the text of a local law doesn't tell you whether that law is actually enforceable. There's a legal principle called preemption—when a state law and a local law conflict, the state law wins. So a city might have a rule on the books, but if the state has passed something that overrides it, that local rule is essentially a dead letter.
Sam: So LOCUS can tell you the law exists, but not whether it has any teeth.
Alex: Precisely. The paper is clear that LOCUS is infrastructure for retrieval, not a substitute for careful human legal analysis. It transforms local law into something structured and measurable—which is the necessary first step before any deeper reasoning can happen. Think of it as building the roads before you can navigate the city. The navigation still requires judgment that no database can replace.
Sam: It's a significant piece of work, then—not because it solves the problem of local law, but because it makes the problem visible in a way it simply wasn't before.
Alex: That's a good way to put it. And that visibility, at scale, is what opens the door for researchers, policymakers, and journalists to ask questions about local governance that were previously unanswerable. Thanks for listening to ResearchPod.