Freeing the Law with LOCUS: A Local Ordinance Corpus for the United States
Denis Peskoff, Joe Barrow, Christopher Vu, Diag Davenport
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM Evaluation and Auditing · Type: benchmark or dataset · Keywords: local ordinance corpus, legal AI, machine-readable law, OCR processing, county-harmonized data, ModernBERT classifiers
Areas: Evaluation & Benchmarks › Model Capability Diagnostics › Language Model Benchmarks
Summary
LOCUS is a comprehensive, county-harmonized corpus of U.S. municipal and county ordinance codes that makes local law machine-readable and enables large-scale legal AI research.
Explained to a 5-year-old
People need to know the rules that cities make about where you can live and what businesses you can open. These rules are written in many different books that are hard to read on a computer. The researchers made a big library called LOCUS that collects almost all of those rule books and turns them into easy-to-read text. They also made a special tool that helps look at how strict or kind the rules are. Now other people can use this library to learn about the rules that affect everyday life.
Explained to a 5-year-old, longer
Imagine every town and county in the United States has its own rule book about things like where you can park, what you can feed your pets, and how loud you can be. These rule books are written in many different formats, some on paper, some on old scanners, and they are not easy for computers to understand. The researchers decided to make a huge digital library that gathers almost all of those rule books and turns them into plain text that anyone can read. They called this library LOCUS, and they also made it so that the rule books from different places line up together, making it simple to compare them. Inside LOCUS, they added a set of smart programs that can look at the rules and tell you whether the rules are very strict, very relaxed, or somewhere in between. They also gave away the library with detailed information about which places are included, so other scientists can use it to study how laws work in real life. This helps lawyers, computer scientists, and everyday people understand the rules that really matter to them, no matter which city they live in.
For a technical reader
The paper introduces a unified, county-harmonized repository of U.S. municipal and county ordinance codes, converting heterogeneous document formats via OCR into a searchable text corpus. It provides coverage metadata for reproducibility and includes pre-trained ModernBERT classifiers to assess legal dimensions such as opacity and paternalism at scale. The dataset is released openly, enabling downstream legal AI research and facilitating the development of applications that need comprehensive local regulatory knowledge.
Problem
Access to machine-readable local ordinance codes is limited, as municipal and county laws are fragmented across platforms not designed for bulk research. This lack of a unified, publicly available corpus hinders legal AI studies that rely on comprehensive legal text.
Method
The authors collected nearly all publicly available municipal and county ordinance codes, applied OCR to convert scanned documents into machine-readable text, and built a county-harmonized access layer that aligns codes across jurisdictions. They also trained ModernBERT-based classifiers and scorers to analyze dimensions such as opacity and paternalism across the corpus.
Contributions
The paper provides a large-scale, county-harmonized corpus of U.S. municipal and county ordinance codes and demonstrates its utility by training classifiers to analyze legal dimensions at unprecedented scale. It also releases coverage metadata and OCR-processed text to enable reproducible research in legal AI.
Practical relevance
It enables researchers and practitioners to build and evaluate legal AI systems on the full scope of U.S. local regulations, fostering more comprehensive and equitable AI applications.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction