Skip to content

Add support for treaties #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ A complete data point has fields like so:

"$citation": [
{
"cite_type": "state|federal|neutral|specialty|specialty_west|specialty_lexis|state_regional|scotus_early",
"cite_type": "state|federal|neutral|specialty|specialty_west|specialty_lexis|state_regional|scotus_early|treaty",
"editions": {
"$citation": {
"end": null,
Expand Down
180 changes: 170 additions & 10 deletions reporters_db/data/laws.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"jurisdiction": "United States",
"name": "Armed Services Board of Contract Appeals",
"regexes": [
"$reporter No. (?P<docket_number>\\d+)"
"$reporter $number_label (?P<docket_number>\\d+)"
],
"start": null,
"variations": []
Expand Down Expand Up @@ -475,6 +475,24 @@
"variations": []
}
],
"C.E.T.S.": [
{
"cite_type": "treaty",
"end": null,
"examples": [
"C.E.T.S. No. 196",
"C.E.T.S. Number 196"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "",
"name": "Council of Europe Treaty Series",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+)"
],
"start": "2004-01-01T00:00:00",
"variations": []
}
],
"C.F.R.": [
{
"cite_type": "admin_compilation",
Expand Down Expand Up @@ -524,7 +542,7 @@
"name": "Civilian Board of Contract Appeals",
"notes": "Don't know valid docket number suffixes",
"regexes": [
"$reporter No. (?P<docket_number>\\d+-[A-Z])"
"$reporter $number_label (?P<docket_number>\\d+-[A-Z])"
],
"start": null,
"variations": []
Expand All @@ -541,7 +559,7 @@
"jurisdiction": "United States",
"name": "Consumer Financial Protection Bureau",
"regexes": [
"$reporter No. (?P<docket_number>\\d{4}-CFPB-\\d+)"
"$reporter $number_label (?P<docket_number>\\d{4}-CFPB-\\d+)"
],
"start": null,
"variations": []
Expand All @@ -558,7 +576,7 @@
"jurisdiction": "United States",
"name": "Commodity Futures Trading Commission",
"regexes": [
"$reporter No. (?P<docket_number>\\d+-[A-Z\\d]+)"
"$reporter $number_label (?P<docket_number>\\d+-[A-Z\\d]+)"
],
"start": null,
"variations": []
Expand Down Expand Up @@ -1176,6 +1194,40 @@
"variations": []
}
],
"E.A.S.": [
{
"cite_type": "treaty",
"end": "1945-12-31T23:59:59",
"examples": [
"E.A.S. 472"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "United States",
"name": "Executive Agreement Series",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+)"
],
"start": "1922-01-01T00:00:00",
"variations": []
}
],
"E.T.S.": [
{
"cite_type": "treaty",
"end": "2003-12-31T23:59:59",
"examples": [
"E.T.S. 5"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "",
"name": "European Treaty Series",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+)"
],
"start": "1948-01-01T00:00:00",
"variations": []
}
],
"FR": [
{
"cite_type": "admin_register",
Expand Down Expand Up @@ -1587,6 +1639,24 @@
"variations": []
}
],
"Hein's": [
{
"cite_type": "treaty",
"end": null,
"examples": [
"Hein's No. KAV 2053",
"Hein's Number KAV 2053"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "United States",
"name": "Hein’s United States Treaties and Other International Agreements",
"regexes": [
"$reporter\\s*$number_label?\\s*KAV\\s*(?P<number>\\d+)"
],
"start": "1984-01-01T00:00:00",
"variations": []
}
],
"Idaho Admin. Bull.": [
{
"cite_type": "admin_register",
Expand Down Expand Up @@ -4573,7 +4643,7 @@
"name": "",
"notes": "Automatically generated. Remove this message if replacing with real examples.",
"regexes": [
"$law_year $reporter No\\. (?P<number>\\d+), $page_with_commas"
"$law_year $reporter $number_label (?P<number>\\d+), $page_with_commas"
],
"start": null,
"variations": []
Expand Down Expand Up @@ -4817,6 +4887,24 @@
"variations": []
}
],
"Pan-Am. T.S.": [
{
"cite_type": "treaty",
"end": null,
"examples": [
"Pan-Am. T.S. No. 22",
"Pan-Am. T.S. Number 22"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "",
"name": "Pan-American Treaty Series",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+)"
],
"start": "1949-01-01T00:00:00",
"variations": []
}
],
"Pub. L.": [
{
"cite_type": "leg_statute",
Expand All @@ -4831,7 +4919,7 @@
"jurisdiction": "United States",
"name": "Public Laws",
"regexes": [
"$reporter \\s*(?:No\\.|Number)?\\s*(?P<title>\\d{1,3}-\\d{1,5}),?\\s*(?:§|Sec|sec|Section|section)?[§|s]?\\.?\\s*$law_section?"
"$reporter \\s*$number_label?\\s*(?P<title>\\d{1,3}-\\d{1,5}),?\\s*(?:§|Sec|sec|Section|section)?[§|s]?\\.?\\s*$law_section?"
],
"start": null,
"variations": [
Expand All @@ -4852,7 +4940,7 @@
"jurisdiction": "United States",
"name": "Private Laws",
"regexes": [
"$reporter \\s*(?:No\\.|Number)?\\s*(?P<title>\\d{1,3}-\\d{1,5})"
"$reporter \\s*$number_label?\\s*(?P<title>\\d{1,3}-\\d{1,5})"
],
"start": null,
"variations": [
Expand Down Expand Up @@ -5029,6 +5117,42 @@
"variations": []
}
],
"S. Exec. Doc.": [
{
"cite_type": "treaty",
"end": "1980-12-31T23:59:59",
"examples": [
"S. Exec. Doc. No. 38",
"S. Exec. Doc. Number 38"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "United States",
"name": "Senate Executive Documents",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d*[A-Z]?)"
],
"start": "1778-01-01T00:00:00",
"variations": []
}
],
"S. Treaty Doc.": [
{
"cite_type": "treaty",
"end": null,
"examples": [
"S. Treaty Doc. No. 100-20",
"S. Treaty Doc. Number 100-20"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "United States",
"name": "Senate Treaty Document ",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+-?\\d*)"
],
"start": "1981-01-01T00:00:00",
"variations": []
}
],
"S.C. Acts": [
{
"cite_type": "leg_session",
Expand Down Expand Up @@ -5176,7 +5300,7 @@
"jurisdiction": "United States",
"name": "Small Business Administration",
"regexes": [
"$reporter No. (?P<docket_number>(?:NAICS|BDP|VET|SIZ|SDBA)-\\d+)"
"$reporter $number_label (?P<docket_number>(?:NAICS|BDP|VET|SIZ|SDBA)-\\d+)"
],
"start": null,
"variations": []
Expand All @@ -5191,14 +5315,50 @@
],
"jurisdiction": "United States",
"name": "United States Statutes at Large",
"notes": "Automatically generated. Remove this message if replacing with real examples.",
"notes": "Some of these citations may be to treaties, which were reported here until December 31, 1949. See Ch 1001, Sec. 2, 64 Stat. 980 (1950).",
"regexes": [
"$volume $reporter $page_with_commas"
],
"start": null,
"variations": []
}
],
"T.I.A.S.": [
{
"cite_type": "treaty",
"end": null,
"examples": [
"T.I.A.S. No. 6577",
"T.I.A.S. Number 6577"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "United States",
"name": "Treaties and Other International Acts Series",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+)"
],
"start": "1945-01-01T00:00:00",
"variations": []
}
],
"T.S.": [
{
"cite_type": "treaty",
"end": "1945-12-31T23:59:59",
"examples": [
"T.S. No. 251",
"T.S. Number 251"
],
"href": "https://law.resource.org/pub/us/code/blue/IndigoBook.html#T6",
"jurisdiction": "United States",
"name": "Treaty Series",
"regexes": [
"$reporter\\s*$number_label?\\s*(?P<number>\\d+)"
],
"start": "1778-01-01T00:00:00",
"variations": []
}
],
"Tenn. Admin. Reg.": [
{
"cite_type": "admin_register",
Expand Down Expand Up @@ -5516,7 +5676,7 @@
"jurisdiction": "United States",
"name": "U.S. Patent",
"regexes": [
"$reporter No\\. (?P<number>\\d[\\d,]*)(?: (?P<kind_code>[A-Z]\\d?))?"
"$reporter $number_label (?P<number>\\d[\\d,]*)(?: (?P<kind_code>[A-Z]\\d?))?"
],
"start": null,
"variations": []
Expand Down
1 change: 1 addition & 0 deletions reporters_db/data/regexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"subject_word#": "Single word in statute subject, like Rec., Gov't, or Not-for-Profit",
"year": "(?P<year>1\\d{3}|20\\d{2})"
},
"number_label": "(?:No\\.|Number)",
"page": {
"": "(?P<page>\\d+)",
"#": "Standard page number",
Expand Down
Loading