The Law Is a Database Nobody's Allowed to Refactor

Created Sep 29, 2026 Revised Sep 29, 2026

The law is not a book. It is a relational database… and nobody has ever been allowed to normalize it.

The Law Is a Database Nobody's Allowed to Refactor

By Andrew Davis

Every statute on the books is a row in a table. Every cross-reference — "as defined in section 101," "subject to chapter 7" — is a foreign key. The law is not a book. It is a relational database, and it has been one for centuries, long before anyone built a database.

The problem is that nobody has ever been allowed to normalize it.

The same concept gets defined differently across different titles. Amendments patch old rows instead of restructuring them. Case law piles on top as a second layer of interpretation, and the schema drifts further from reality with every session of Congress.

This is why lawyers get paid. Not because the law is profound — because navigating a decades-old Access file with no documentation is genuinely hard work.

We regulate software, finance, and infrastructure with modern tools. We run the law itself on a system that would embarrass a small business. That is not a philosophical problem. It is an engineering problem, and it is fixable.


Footnotes

  1. "Section 101" is a placeholder — it means "whatever section 101 of this same title defines." It is the most common cross-reference in the U.S. Code, and it only makes sense once you know which title you are in. The classic example is Title 26, the Internal Revenue Code, where section 101 defines gross income — so when another section says "as defined in section 101," it means that definition, not section 101 of Title 18 or Title 42. That is the database wrinkle: the same number means different things depending on which table you are in.
  1. "Subject to chapter 7" is a conditional clause, not a page reference. The U.S. Code is organized into titles, and each title is split into chapters, sections, subsections, and paragraphs. So "subject to chapter 7" means "this rule applies, but chapter 7 overrides it if they conflict." In a book, page 7 is just a location — it does not change what page 3 says. In the Code, chapter 7 is a set of rules that actively modifies the rule you are reading. It is less "go look at page 7" and more "this rule is subordinate to whatever chapter 7 says."

← All op-eds