add federal law: the whole United States Code, 60,433 sections across all 53 titles, measured (OLRC USLM XML bulk, release point Public Law 119-103, 2026-09-02). Notes/annotations excluded from text; source credit, positive-law flag and repealed/omitted status kept in extra. Card regenerated with a federal row and a per-title table.
Browse files- README.md +134 -22
- data/us/statutes.jsonl.gz +3 -0
README.md
CHANGED
|
@@ -3,8 +3,8 @@ license: cc0-1.0
|
|
| 3 |
language: [en]
|
| 4 |
task_categories: [text-retrieval, question-answering]
|
| 5 |
size_categories: [1M<n<10M]
|
| 6 |
-
tags: [legal, law, statutes, state-law, us-law, public-domain, rag, legal-nlp]
|
| 7 |
-
pretty_name: US
|
| 8 |
configs:
|
| 9 |
- config_name: all
|
| 10 |
data_files: data/*/statutes.jsonl.gz
|
|
@@ -38,14 +38,18 @@ dataset_info:
|
|
| 38 |
dtype: string
|
| 39 |
---
|
| 40 |
|
| 41 |
-
# US
|
| 42 |
|
| 43 |
-
**1,
|
| 44 |
-
|
| 45 |
-
|
|
|
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
| 48 |
|---|--:|---|
|
|
|
|
| 49 |
| California (`ca`) | 162,431 | `Government Code`, `Health and Safety Code`, `Education Code` … |
|
| 50 |
| Texas (`tx`) | 122,681 | `Special District Local Laws Code`, `Government Code`, `Health & Safety Code` … |
|
| 51 |
| Oregon (`or`) | 72,649 | `Oregon Revised Statutes` |
|
|
@@ -76,38 +80,146 @@ taken from any index page's own total.
|
|
| 76 |
|
| 77 |
`*` Illinois is a **snapshot of a harvest that was still running** when its file was published —
|
| 78 |
48,587 sections so far (the ILCS crawl at ftp.ilga.gov honours a 10-second crawl delay). It is a
|
| 79 |
-
complete record of what had been fetched, and will be republished when the crawl finishes.
|
| 80 |
-
published that way earlier and is now the **complete** code, all 55,413 sections. New York is the
|
| 81 |
Consolidated Laws only — Unconsolidated Laws, Court Acts and the miscellaneous categories at nysenate.gov
|
| 82 |
-
were out of scope for
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
## The record
|
| 85 |
|
| 86 |
Every row has the same twelve columns, all strings:
|
| 87 |
|
| 88 |
-
`id`, `level` (`state`), `jurisdiction`
|
| 89 |
-
`source` (the URL), `license`, `retrieved_at`, `extra`.
|
| 90 |
|
| 91 |
`extra` is a JSON **string** (parse it with `json.loads`) carrying whatever else the source exposed —
|
| 92 |
-
title, chapter, subchapter, catchline, history note, edition — so that it can differ by
|
| 93 |
-
breaking the shared schema.
|
|
|
|
|
|
|
| 94 |
|
| 95 |
## Load it
|
| 96 |
|
| 97 |
```python
|
| 98 |
from datasets import load_dataset
|
| 99 |
-
ds = load_dataset("docketx/us-statutes")
|
| 100 |
-
|
|
|
|
| 101 |
```
|
| 102 |
|
| 103 |
## Coverage, stated honestly
|
| 104 |
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
| 108 |
publisher and no official machine-readable source exists. It is never a state whose law we hold and
|
| 109 |
withheld. Coverage grows as each state clears that check.
|
| 110 |
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
language: [en]
|
| 4 |
task_categories: [text-retrieval, question-answering]
|
| 5 |
size_categories: [1M<n<10M]
|
| 6 |
+
tags: [legal, law, statutes, us-code, federal-law, state-law, us-law, public-domain, rag, legal-nlp]
|
| 7 |
+
pretty_name: US Statutes — federal and state (verbatim)
|
| 8 |
configs:
|
| 9 |
- config_name: all
|
| 10 |
data_files: data/*/statutes.jsonl.gz
|
|
|
|
| 38 |
dtype: string
|
| 39 |
---
|
| 40 |
|
| 41 |
+
# US Statutes — held word for word
|
| 42 |
|
| 43 |
+
**1,134,330 statute sections**: the whole **United States Code** (60,433 sections, all 53 titles)
|
| 44 |
+
plus **24 states** (1,073,897 sections), each section as its legislature publishes it, with
|
| 45 |
+
the URL it was taken from. Statutes are the law a court applies; a paraphrase is not usable in a filing,
|
| 46 |
+
so the text here is verbatim.
|
| 47 |
|
| 48 |
+
Ask *"what does 42 U.S.C. § 1983 say"* and this dataset answers with the section, not a summary of it.
|
| 49 |
+
|
| 50 |
+
| jurisdiction | sections | codes |
|
| 51 |
|---|--:|---|
|
| 52 |
+
| **United States (federal)** (`us`) | **60,433** | `United States Code`, all 53 titles |
|
| 53 |
| California (`ca`) | 162,431 | `Government Code`, `Health and Safety Code`, `Education Code` … |
|
| 54 |
| Texas (`tx`) | 122,681 | `Special District Local Laws Code`, `Government Code`, `Health & Safety Code` … |
|
| 55 |
| Oregon (`or`) | 72,649 | `Oregon Revised Statutes` |
|
|
|
|
| 80 |
|
| 81 |
`*` Illinois is a **snapshot of a harvest that was still running** when its file was published —
|
| 82 |
48,587 sections so far (the ILCS crawl at ftp.ilga.gov honours a 10-second crawl delay). It is a
|
| 83 |
+
complete record of what had been fetched, and will be republished when the crawl finishes. New York is the
|
|
|
|
| 84 |
Consolidated Laws only — Unconsolidated Laws, Court Acts and the miscellaneous categories at nysenate.gov
|
| 85 |
+
were out of scope for that pass.
|
| 86 |
+
|
| 87 |
+
## The United States Code (`jurisdiction: us`, `level: federal`)
|
| 88 |
+
|
| 89 |
+
Taken from the **Office of the Law Revision Counsel** of the U.S. House of Representatives, the statutory
|
| 90 |
+
publisher of the Code, at its **release point Public Law 119-103 (2026-09-02)** — one bulk download of the
|
| 91 |
+
official USLM XML (`xml_uscAll@119-103.zip`), not a crawl. The Code runs to Title 54, but there is no
|
| 92 |
+
Title 53 — the OLRC prints it as `Title 53 [Reserved]` — so these 53 titles are the whole Code.
|
| 93 |
+
|
| 94 |
+
| title | name | sections | positive law |
|
| 95 |
+
|--:|---|--:|---|
|
| 96 |
+
| 1 | General Provisions | 39 | yes |
|
| 97 |
+
| 2 | The Congress | 1,612 | no |
|
| 98 |
+
| 3 | The President | 64 | yes |
|
| 99 |
+
| 4 | Flag and Seal, Seat of Government, and the States | 47 | yes |
|
| 100 |
+
| 5 | Government Organization and Employees | 1,163 | yes |
|
| 101 |
+
| 6 | Domestic Security | 569 | no |
|
| 102 |
+
| 7 | Agriculture | 2,926 | no |
|
| 103 |
+
| 8 | Aliens and Nationality | 376 | no |
|
| 104 |
+
| 9 | Arbitration | 33 | yes |
|
| 105 |
+
| 10 | Armed Forces | 4,033 | yes |
|
| 106 |
+
| 11 | Bankruptcy | 280 | yes |
|
| 107 |
+
| 12 | Banks and Banking | 1,999 | no |
|
| 108 |
+
| 13 | Census | 70 | yes |
|
| 109 |
+
| 14 | Coast Guard | 449 | yes |
|
| 110 |
+
| 15 | Commerce and Trade | 2,701 | no |
|
| 111 |
+
| 16 | Conservation | 5,095 | no |
|
| 112 |
+
| 17 | Copyrights | 153 | yes |
|
| 113 |
+
| 18 | Crimes and Criminal Procedure | 1,399 | yes |
|
| 114 |
+
| 19 | Customs Duties | 1,111 | no |
|
| 115 |
+
| 20 | Education | 2,029 | no |
|
| 116 |
+
| 21 | Food and Drugs | 757 | no |
|
| 117 |
+
| 22 | Foreign Relations and Intercourse | 3,475 | no |
|
| 118 |
+
| 23 | Highways | 172 | yes |
|
| 119 |
+
| 24 | Hospitals and Asylums | 162 | no |
|
| 120 |
+
| 25 | Indians | 2,399 | no |
|
| 121 |
+
| 26 | Internal Revenue Code | 2,161 | no |
|
| 122 |
+
| 27 | Intoxicating Liquors | 45 | no |
|
| 123 |
+
| 28 | Judiciary and Judicial Procedure | 806 | yes |
|
| 124 |
+
| 29 | Labor | 844 | no |
|
| 125 |
+
| 30 | Mineral Lands and Mining | 626 | no |
|
| 126 |
+
| 31 | Money and Finance | 498 | yes |
|
| 127 |
+
| 32 | National Guard | 78 | yes |
|
| 128 |
+
| 33 | Navigation and Navigable Waters | 1,569 | no |
|
| 129 |
+
| 34 | Crime Control and Law Enforcement | 795 | no |
|
| 130 |
+
| 35 | Patents | 175 | yes |
|
| 131 |
+
| 36 | Patriotic and National Observances, Ceremonies, and Organizations | 1,173 | yes |
|
| 132 |
+
| 37 | Pay and Allowances of the Uniformed Services | 234 | yes |
|
| 133 |
+
| 38 | Veterans' Benefits | 1,198 | yes |
|
| 134 |
+
| 39 | Postal Service | 181 | yes |
|
| 135 |
+
| 40 | Public Buildings, Property, and Works | 459 | yes |
|
| 136 |
+
| 41 | Public Contracts | 241 | yes |
|
| 137 |
+
| 42 | The Public Health and Welfare | 8,481 | no |
|
| 138 |
+
| 43 | Public Lands | 1,464 | no |
|
| 139 |
+
| 44 | Public Printing and Documents | 356 | yes |
|
| 140 |
+
| 45 | Railroads | 294 | no |
|
| 141 |
+
| 46 | Shipping | 1,032 | yes |
|
| 142 |
+
| 47 | Telecommunications | 432 | no |
|
| 143 |
+
| 48 | Territories and Insular Possessions | 661 | no |
|
| 144 |
+
| 49 | Transportation | 1,371 | yes |
|
| 145 |
+
| 50 | War and National Defense | 1,360 | no |
|
| 146 |
+
| 51 | National and Commercial Space Programs | 249 | yes |
|
| 147 |
+
| 52 | Voting and Elections | 171 | no |
|
| 148 |
+
| 54 | National Park Service and Related Programs | 366 | yes |
|
| 149 |
+
|
| 150 |
+
**27 titles are positive law** and **26 are not**; the distinction is carried per row in
|
| 151 |
+
`extra.is_positive_law`, read from the XML's own `<property role="is-positive-law">` and checked against the
|
| 152 |
+
star the OLRC prints beside positive-law titles on its download page — the two agree on all 27. In a non-positive-law
|
| 153 |
+
title the Code text is *prima facie* evidence of the law and the underlying Statutes at Large are legal
|
| 154 |
+
evidence, so the distinction matters when you cite.
|
| 155 |
+
|
| 156 |
+
What is in `text`, and what is deliberately not:
|
| 157 |
+
|
| 158 |
+
- **In:** the section's own number and heading, and its operative text — subsections, paragraphs, clauses,
|
| 159 |
+
provisos, in order.
|
| 160 |
+
- **Out:** everything USLM marks as an annotation. Editorial and statutory notes, amendment notes,
|
| 161 |
+
codification notes, effective-date notes and the three-column tables are **not statute text** and are not
|
| 162 |
+
mixed into `text`. The statutory **source credit** — `(R.S. § 1979; Pub. L. 96–170 …)` — is kept, but in
|
| 163 |
+
`extra.source_credit`, not in the text of the law. Footnote reference marks are dropped from `text` and
|
| 164 |
+
the footnotes themselves are kept in `extra.footnotes`.
|
| 165 |
+
- **Retained and marked:** sections that are repealed, omitted, transferred, renumbered, reserved or vacant
|
| 166 |
+
are kept — a repealed section is often exactly what a lawyer is looking for — and flagged in
|
| 167 |
+
`extra.status` (repealed 5,131, omitted 2,037, transferred 1,911, renumbered 368, vacant 17, reserved 16, unknown 1).
|
| 168 |
+
Sections with no such flag are current (50,952).
|
| 169 |
+
- **Not here:** the US Code *appendices* (Titles 5, 11, 18, 28 and 50 Appendix). Those carry the Federal
|
| 170 |
+
Rules of Civil Procedure, Appellate Procedure, Evidence, Criminal Procedure and Bankruptcy Procedure,
|
| 171 |
+
which are court rules rather than statutes and live in `docketx/court-rules`.
|
| 172 |
+
|
| 173 |
+
Six section numbers are used twice in their own title — a real anomaly in the Code, not a parsing error.
|
| 174 |
+
Congress has enacted two § 1932s of title 28 (Judicial Panel on Multidistrict Litigation, and Revocation
|
| 175 |
+
of earned release credit), and the same has happened at 5 U.S.C. § 3598, 5 U.S.C. § 5757,
|
| 176 |
+
10 U.S.C. § 130g, 38 U.S.C. § 1167 and 40 U.S.C. § 3318. Both sections of each pair are published, with an
|
| 177 |
+
identical `citation` and `id`s distinguished by a `_d` suffix; the Code itself footnotes the clash and that
|
| 178 |
+
footnote is in `extra.footnotes`.
|
| 179 |
|
| 180 |
## The record
|
| 181 |
|
| 182 |
Every row has the same twelve columns, all strings:
|
| 183 |
|
| 184 |
+
`id`, `level` (`federal` or `state`), `jurisdiction` (`us`, or the two-letter state), `code`, `section`,
|
| 185 |
+
`citation`, `title`, `text` (verbatim), `source` (the URL), `license`, `retrieved_at`, `extra`.
|
| 186 |
|
| 187 |
`extra` is a JSON **string** (parse it with `json.loads`) carrying whatever else the source exposed —
|
| 188 |
+
title, chapter, subchapter, part, catchline, history note, edition — so that it can differ by jurisdiction
|
| 189 |
+
without breaking the shared schema. Federal rows add `title_number`, `title_name`, `is_positive_law`,
|
| 190 |
+
`identifier` (the USLM path, e.g. `/us/usc/t42/s1983`), `release_point`, `source_credit`, `status` where
|
| 191 |
+
one applies, and `browse_url` (the OLRC viewer page for that section).
|
| 192 |
|
| 193 |
## Load it
|
| 194 |
|
| 195 |
```python
|
| 196 |
from datasets import load_dataset
|
| 197 |
+
ds = load_dataset("docketx/us-statutes") # federal + every state
|
| 198 |
+
usc = ds["train"].filter(lambda r: r["level"] == "federal") # the United States Code
|
| 199 |
+
al = ds["train"].filter(lambda r: r["jurisdiction"] == "al") # one state
|
| 200 |
```
|
| 201 |
|
| 202 |
## Coverage, stated honestly
|
| 203 |
|
| 204 |
+
Federal statutory law is complete: every title of the US Code at the release point named above.
|
| 205 |
+
|
| 206 |
+
The states listed are the ones whose statutes we have verified against a live official source, with the
|
| 207 |
+
structure proven by extracting a real section before any harvest ran. A state missing from this table is
|
| 208 |
+
one we have **not yet verified** — in several cases because the state licensed its code to a commercial
|
| 209 |
publisher and no official machine-readable source exists. It is never a state whose law we hold and
|
| 210 |
withheld. Coverage grows as each state clears that check.
|
| 211 |
|
| 212 |
+
## Source and credit
|
| 213 |
+
|
| 214 |
+
The United States Code is prepared and published by the **Office of the Law Revision Counsel of the U.S.
|
| 215 |
+
House of Representatives**, which is the publisher Congress designated for it. It is a work of the United
|
| 216 |
+
States Government and is **in the public domain** — not copyrighted, and free of any licence condition. The
|
| 217 |
+
same data is mirrored by the **U.S. Government Publishing Office** on govinfo.gov. Nothing here is
|
| 218 |
+
republished from a commercial annotator: there are no headnotes, no editorial annotations and no
|
| 219 |
+
publisher's notes in this dataset.
|
| 220 |
+
|
| 221 |
+
State codes are published by the named state legislature, legislative service or code commission, likewise
|
| 222 |
+
as government works. Each row carries the exact URL it came from in `source`.
|
| 223 |
+
|
| 224 |
+
Part of the [DocketX](https://docketx.ai) open legal corpus, alongside `docketx/us-caselaw`
|
| 225 |
+
(10.8M opinions), `docketx/court-rules`, `docketx/oral-arguments-us` and `docketx/us-judges`.
|
data/us/statutes.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da85535e02afa3bfcd28f4977377258f55b62642adc8e83602659aaa89c40931
|
| 3 |
+
size 43362888
|