Live data from Hacker News

The entire US Code is now online in XML

uscodebeta.house.gov

31–40 of 244 posts

Re: The entire US Code is now online in XML

#31
post #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.

RobotWars for Lawyers invariably leading to digitizing the whole judicial process.

Re: The entire US Code is now online in XML

#35
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.

The funny thing is that a lot of law is structured like definitions, the actual law, then consequences. Any of those three can change independently, and change the meaning of the law. So diffs are often not as useful as you wish.

Re: The entire US Code is now online in XML

#37
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'd really like to see a graph of the number of bytes over time, and what sort of curve it fits.

Re: The entire US Code is now online in XML

#38

Earlier quoted context omitted.

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...

Imagine trying to keep track of this in paper form instead of digitally.

Re: The entire US Code is now online in XML

#40
This actually makes law accessible to the technologically-savvy out there, and is going to launch a thousand apps giving specialized legal advice.

This could in turn mean a reduction in the cost of litigation, which would hopefully be passed on to the rest of us.

Hopefully I won't get sued for that statement.

Post reply on HN