unitedstates / citation

Legal citation extractor, via command line, JavaScript, or HTTP. See a live example at:
https://uslaw.link
Creative Commons Zero v1.0 Universal
219 stars 41 forks source link

Richer public law citations are possible #41

Open whitesided opened 10 years ago

whitesided commented 10 years ago

There's a bit more specific Public Law citations possible from the context in Congressional bills. Looking through every bit of markup Deepbills has ever done I find the following hits with richer tags that might be searched for:

"division A of Public Law 111–5" (tagged as: public-law/111/5/d:A in 113hr481ih.xml) "division A of Public Law 112–55" (tagged as: public-law/112/55/d:A in 113hr933ih.xml) "division B of Public Law 106–386" (tagged as: public-law/106/386/d:B in 113hr11ih.xml) "division B of Public Law 106–386" (tagged as: public-law/106/386/d:B in 113hr717ih.xml) "division B of Public Law 106–386" (tagged as: public-law/106/386/d:B in 113s47es.xml) "division B of Public Law 106–554" (tagged as: public-law/106/554/d:B in 113s296is.xml) "division B of Public Law 109–13" (tagged as: public-law/109/13/d:B in 113hr629ih.xml) "division B of Public Law 112–55" (tagged as: public-law/112/55/d:B in 113hr933ih.xml) "division B of Public Law 112–74" (tagged as: public-law/112/74/d:B in 113hr933ih.xml) "division C of Public Law 104–208" (tagged as: public-law/104/208/d:C in 113hr478ih.xml) "division C of Public Law 104–208" (tagged as: public-law/104/208/d:C in 113hr629ih.xml) "division C of Public Law 104–208" (tagged as: public-law/104/208/d:C in 113hr629ih.xml) "division C of Public Law 104–208" (tagged as: public-law/104/208/d:C in 113s202is.xml) "Division C of Public Law 110–161" (tagged as: public-law/110/161/d:C in 113hr135ih.xml) "division C of Public Law 112–55" (tagged as: public-law/112/55/d:C in 113hr933ih.xml) "division C of Public Law 112–55" (tagged as: public-law/112/55/d:C in 113hr933ih.xml) "division C of Public Law 112–74" (tagged as: public-law/112/74/d:C in 113hr933ih.xml) "division C of Public Law 112–74" (tagged as: public-law/112/74/d:C in 113hr933ih.xml) "division D of Public Law 112–74" (tagged as: public-law/112/74/d:D in 113hr933ih.xml) "division E of Public Law 112–74" (tagged as: public-law/112/74/d:E in 113hr933ih.xml) "division E of Public Law 112–74" (tagged as: public-law/112/74/d:E in 113hr933ih.xml) "division F of Public Law 112–74" (tagged as: public-law/112/74/d:F in 113hr933ih.xml) "division G of Public Law 105–277" (tagged as: public-law/105/277/d:G in 113hr933ih.xml) "division G of Public Law 105–277" (tagged as: public-law/105/277/d:G in 113s444is.xml) "division G of Public Law 111–8" (tagged as: public-law/111/8/d:G in 113s1283pcs.xml) "division G of Public Law 112–74" (tagged as: public-law/112/74/d:G in 113hr933ih.xml) "division I of Public Law 112–74" (tagged as: public-law/112/74/d:I in 113hr933ih.xml) "first section of Public Law 92–395" (tagged as: public-law/92/395/s:1 in 113s364is.xml) "part A of title XXIX of Public Law 101–510" (tagged as: public-law/101/510/t:XXIX/pt:A in 113hr390ih.xml) "part A of title XXIX of Public Law 101–510" (tagged as: public-law/101/510/t:XXIX/pt:A in 113hr933ih.xml) "section 1(a)(4) of Public Law 106–554" (tagged as: public-law/106/554/s:1/ss:a/p:4 in 113hr519ih.xml) "section 1(a)(4) of Public Law 106–554" (tagged as: public-law/106/554/s:1/ss:a/p:4 in 113hr717ih.xml) "section 10 of Public Law 91–672" (tagged as: public-law/91/672/s:10 in 113hr933ih.xml) "section 1000(a)(3) of Public Law 106–113" (tagged as: public-law/106/113/s:1000/ss:a/p:3 in 113hr933ih.xml) "section 101(b) of division A of Public Law 105–277" (tagged as: public-law/105/277/d:A/s:101/ss:b in 113hr778ih.xml) "section 101(b) of division A of Public Law 105–277" (tagged as: public-law/105/277/d:A/s:101/ss:b in 113hr873ih.xml) "section 101(b) of division A of Public Law 105–277" (tagged as: public-law/105/277/d:A/s:101/ss:b in 113s647is.xml) "section 103(d)(2) of Public Law 104–121" (tagged as: public-law/104/121/s:103/ss:d/p:2 in 113s1284pcs.xml) "Section 111 of Public Law 93–495" (tagged as: public-law/93/495/s:111 in 113s451is.xml) "section 12(b) of Public Law 91–383" (tagged as: public-law/91/383/s:12/ss:b in 113hr513ih.xml) "section 12(b) of Public Law 91–383" (tagged as: public-law/91/383/s:12/ss:b in 113hr63ih.xml) "section 12(b) of Public Law 91–383" (tagged as: public-law/91/383/s:12/ss:b in 113hr703ih.xml) "section 12(b) of Public Law 91–383" (tagged as: public-law/91/383/s:12/ss:b in 113s347is.xml) "section 12(b) of Public Law 91–383" (tagged as: public-law/91/383/s:12/ss:b in 113s347rs.xml) "section 140(b) of Public Law 112–175" (tagged as: public-law/112/175/s:140/ss:b in 113hr933ih.xml) "section 14007 of division A of Public Law 111–5" (tagged as: public-law/111/5/d:A/s:14007 in 113s1284pcs.xml) "section 14222(b)(2)(A)(v) of Public Law 110–246" (tagged as: public-law/110/246/s:14222/ss:b/p:2/sp:A/cl:v in 113hr933ih.xml) "section 156 of Public Law 97–377" (tagged as: public-law/97/377/s:156 in 113hr933ih.xml) "section 156 of Public Law 97–377" (tagged as: public-law/97/377/s:156 in 113hr933ih.xml) "section 156 of Public Law 97–377" (tagged as: public-law/97/377/s:156 in 113hr933ih.xml) "section 156 of Public Law 97–377" (tagged as: public-law/97/377/s:156 in 113hr933ih.xml) "section 156 of Public Law 97–377" (tagged as: public-law/97/377/s:156 in 113s444is.xml) "section 1602 of such Public Law" (tagged as: public-law/112/141/s:1602 in 113s1371pcs.xml) "section 2 of Public Law 93–435" (tagged as: public-law/93/435/s:2 in 113hr573ih.xml) "section 2 of Public Law 93–435" (tagged as: public-law/93/435/s:2 in 113s256is.xml) "section 2 of Public Law 94–204" (tagged as: public-law/94/204/s:2 in 113s340is.xml) "section 212 of Public Law 93–66" (tagged as: public-law/93/66/s:212 in 113s1284pcs.xml) "section 212(b)(3) of Public Law 93–66" (tagged as: public-law/93/66/s:212/ss:b/p:3 in 113s1284pcs.xml) "section 278(d)(3) of Public Law 97–248" (tagged as: public-law/97/248/s:278/ss:d/p:3 in 113s1284pcs.xml) "section 305(a) of division C of Public Law 104–208" (tagged as: public-law/104/208/s:305/ss:a in 113hr651ih.xml) "Section 322 of Public Law 102–381" (tagged as: public-law/102/381/s:322 in 113hr818ih.xml) "section 401 of Public Law 92–603" (tagged as: public-law/92/603/s:401 in 113s1284pcs.xml) "section 408 of division E of Public Law 112–74" (tagged as: public-law/112/74/d:E/s:408 in 113hr933ih.xml) "section 417 of Public Law 98–76" (tagged as: public-law/98/76/s:417 in 113s1284pcs.xml) "section 5 of Public Law 91–479" (tagged as: public-law/91/479/s:5 in 113hr163ih.xml) "section 5 of Public Law 91–479" (tagged as: public-law/91/479/s:5 in 113s23is.xml) "Section 5 of Public Law 92–400" (tagged as: public-law/92/400/s:5 in 113hr145ih.xml) "section 503 of division D of Public Law 112–74" (tagged as: public-law/112/74/d:D/s:503 in 113hr152ih.xml) "section 513 of Public Law 106–569" (tagged as: public-law/106/569/s:513 in 113hr231ih.xml) "section 513 of Public Law 106–569" (tagged as: public-law/106/569/s:513 in 113s640is.xml) "section 8 of Public Law 91–383" (tagged as: public-law/91/383/s:8 in 113hr930ih.xml) "section 8 of Public Law 91–383" (tagged as: public-law/91/383/s:8 in 113s1328is.xml) "section 8 of Public Law 91–383" (tagged as: public-law/91/383/s:8 in 113s331is.xml) "section 8(c) of Public Law 91–383" (tagged as: public-law/91/383/s:8/ss:c in 113hr674ih.xml) "subsection 101(b) of Public Law 104–208" (tagged as: public-law/104/208/s:101/ss:b in 113hr933ih.xml) "subtitle D of Public Law 109–162" (tagged as: public-law/109/162/st:D in 113hr11ih.xml) "subtitle D of Public Law 109–162" (tagged as: public-law/109/162/st:D in 113hr11ih.xml) "subtitle D of Public Law 109–162" (tagged as: public-law/109/162/st:D in 113hr629ih.xml) "subtitle D of Public Law 109–162" (tagged as: public-law/109/162/st:D in 113hr629ih.xml) "subtitle F of title I of division A of Public Law 112–141" (tagged as: public-law/112/141/d:A/t:I/st:F in 113hr933ih.xml) "title I of Public Law 102–140" (tagged as: public-law/102/140/t:I in 113hr933ih.xml) "title I of Public Law 102–140" (tagged as: public-law/102/140/t:I in 113hr933ih.xml) "Title II of Public Law 90–284" (tagged as: public-law/90/284/t:II in 113hr11ih.xml) "Title II of Public Law 90–284" (tagged as: public-law/90/284/t:II in 113hr757ih.xml) "title II of Public Law 91–378" (tagged as: public-law/91/378/t:II in 113s360is.xml) "Title II of Public Law 98–373" (tagged as: public-law/98/373/t:II in 113hr1022ih.xml) "title IV of Public Law 103–322" (tagged as: public-law/103/322/t:IV in 113hr11ih.xml) "title IV of Public Law 103–322" (tagged as: public-law/103/322/t:IV in 113s47es.xml) "title IV of Public Law 105–285" (tagged as: public-law/105/285/t:IV in 113hr208ih.xml) "title IX of Public Law 101–628" (tagged as: public-law/101/628/t:IX in 113hr462ih.xml) "title IX of Public Law 109–162" (tagged as: public-law/109/162/t:IX in 113hr11ih.xml) "title IX of Public Law 109–162" (tagged as: public-law/109/162/t:IX in 113hr629ih.xml) "title IX of Public Law 109–162" (tagged as: public-law/109/162/t:IX in 113s47es.xml) "title V of Public Law 109–479" (tagged as: public-law/109/479/t:V in 113hr69ih.xml) "title XIII of division A of Public Law 111–5" (tagged as: public-law/111/5/d:A/t:XIII in 113hr809ih.xml)

konklone commented 10 years ago

I'm not sure if all of these are worth getting -- for example, with the USC I've been reluctant to tackle levels of the hierarchy, like subtitle, that are infrequently cited and seem to exist primarily for human reference help. But clearly some would be helpful.

Here are what I think are the unique test cases:

whitesided commented 10 years ago

Probably true, though from a regex standpoint I'm not sure how much different capturing (a)(4) will be from capturing (a)(4)(A)(v) when both will be bounded by "Section" on the left and "of" on the right - depends on the methodology, I guess. Putting it into a labeled structure will probably be more persnickity.