Live data from Hacker News

The entire US Code is now online in XML

uscodebeta.house.gov

11–20 of 244 posts

Re: The entire US Code is now online in XML

#11
post #6

I'm really tempted to collect the XML files and put them on github, with periodic checkpoints to update it with the latest. Watching the evolution of law over time is a fascinating thing and using SW engineering tools to help would be really fun.

Please do! This is the kind of thing that hatches in my mind as a great idea, but withers due to a total lack of follow-up.

It would also be fascinating to see the visualizations of this evolution. And perhaps by matching it with the voting data from congress, one could track the footprint of each congressman.

Re: The entire US Code is now online in XML

#12

For those of us who don't know anything about it, what are the uses of machine readable law?

The law can be interpreted as a set of rules matched against an action in a particular context to determine whether said action is legal.

Right now lots of people do this manually.

Maybe computers can do it better.

If computers can do it better, maybe people could focus on writing new laws and refactoring old ones instead of repeatedly interpreting old laws for each case.

Re: The entire US Code is now online in XML

#13
post #4

XML? this should be in json!

As the schema guide explains, in 1999 they picked XML based on the study from 1996: "Following a 1999 feasibility study on XML/SGML, the Committee on House Administration adopted XML as a data standard for the exchange of legislative documents" http://uscodebeta.house.gov/download/resources/USLM-User-Gui... It took the US Govt 17 years to release 200,000 pages of the US code in XML.

I wonder if 17 years is fast for the government or slow.

Re: The entire US Code is now online in XML

#14
post #4

XML? this should be in json!

As the schema guide explains, in 1999 they picked XML based on the study from 1996: "Following a 1999 feasibility study on XML/SGML, the Committee on House Administration adopted XML as a data standard for the exchange of legislative documents" http://uscodebeta.house.gov/download/resources/USLM-User-Gui... It took the US Govt 17 years to release 200,000 pages of the US code in XML.

Sounds about right.

Re: The entire US Code is now online in XML

#15
post #6

I'm really tempted to collect the XML files and put them on github, with periodic checkpoints to update it with the latest. Watching the evolution of law over time is a fascinating thing and using SW engineering tools to help would be really fun.

We actually have something similar in germany, called the "Bundesgit" (https://github.com/bundestag/gesetze)

Re: The entire US Code is now online in XML

#16

Earlier quoted context omitted.

Please do! This is the kind of thing that hatches in my mind as a great idea, but withers due to a total lack of follow-up.

It would also be fascinating to see the visualizations of this evolution. And perhaps by matching it with the voting data from congress, one could track the footprint of each congressman.

see my comment above, you might be interested :)

Re: The entire US Code is now online in XML

#18
post #4

XML? this should be in json!

As the schema guide explains, in 1999 they picked XML based on the study from 1996: "Following a 1999 feasibility study on XML/SGML, the Committee on House Administration adopted XML as a data standard for the exchange of legislative documents" http://uscodebeta.house.gov/download/resources/USLM-User-Gui... It took the US Govt 17 years to release 200,000 pages of the US code in XML.

I think the most time consuming part of the conversion is from text to digital. That's what took so long.

Interchanging formats should be relatively easy. Back in 1999, json wasn't even around.

IMO in today's API centric, and javascript ruled world. json would be a lot more useful.

Re: The entire US Code is now online in XML

#19
post #6

I'm really tempted to collect the XML files and put them on github, with periodic checkpoints to update it with the latest. Watching the evolution of law over time is a fascinating thing and using SW engineering tools to help would be really fun.

I was under the impression law is essentially "append only". New laws override existing laws, but the text of the existing law never changes.

According to Wikipedia:

"When sections are repealed, their text is deleted and replaced by a note summarizing what used to be there." https://en.wikipedia.org/wiki/United_States_Code#Treatment_o...

Post reply on HN