OpenLex: An Open-Source Framework for Computational Jurisdiction Mapping Across U.S. Legal Systems
Every legal technology application must answer a foundational question before it can be useful: which law applies here? In the United States, this question implicates an overlapping system of federal statutes, 50 independent state legislatures, hundreds of regulatory agencies, and thousands of courts — a combinatorial complexity that each application must independently resolve. We introduce OpenLex, an open-source jurisdiction mapping engine that provides a structured, queryable model of U.S. legal authority. Given a legal topic and geographic location, OpenLex returns applicable statutes, regulations, governing bodies, and courts. The framework is implemented as a modular TypeScript library comprising six packages: a core query engine with a hierarchical jurisdiction model and legal topic taxonomy, a citation parser supporting U.S. Code, C.F.R., and state code formats, a regulatory agency database, a federal court hierarchy with venue determination, a TF-IDF search index, and structured export to JSON, CSV, and Markdown. We evaluate OpenLex against a benchmark of 200 jurisdiction queries drawn from legal aid intake forms and public legal forums, demonstrating 87.5% precision in authority identification across 10 legal topics and 50 states. We argue that open jurisdiction infrastructure is a necessary precondition for lowering the barrier to legal technology development and for enabling systematic computational research on the structure of American law.
Authors
- Ahmed Allem (ORCID: https://orcid.org/0009-0003-4937-5858)
Publication Details
- Published
- 2026-11-15
- DOI
- https://doi.org/10.68956/journalos.jrn-2026-legaltech-b20186897e67417ab3f8e4cdb4e8875e
- Primary Topic
- Artificial Intelligence in Law
- Type
- article
- Field-Weighted Citation Impact
- 0.00