U.S. Code Available in XML Format

I saw today that the U.S. Code is available online now for download in a structured format. Ideas for apps, anyone?

It’s worth noting that this was available in some form already, e.g. through Cornell.

To give you a taste of what is there, I extracted a few interesting sections. The first part is some metadata about dc:creator is set to USCConverter 1.0, which would suggest that they built a custom tool to do this.


  Title 50
  USCTitle
  50
  Online@113-21
  OLRC
  2013-07-26T05:19:57
  USCConverter 1.0

Some of the headings are split up in this somewhat odd fashion.

Title 50—WAR AND NATIONAL DEFENSE

What I found most interesting is the ease with which you can extract citations. They seem to have used a GUID (or similar) structure for IDs. These have the nice property of making it easy to generate unique identifiers, without cross-referencing other locations. The downside is that they are not “natural” keys, meaning it looks like you can’t infer anything about where you are.

An open question to investigate – how much text would have to change over time in a section to trigger a new ID? These also points out the lack of historical information – you have to manually get old values for this text. Even armed with this citation information, you need access to court records, as these clarify, amend, or remove sections of law. It’d also be interested to know how / when the text in these documents are updated if a court strikes down a law. Right now, the only way I know of to get access to court records easily is through PACER (or RECAP, which has an archive of a small fraction).


(e)
 Crediting of amounts collected

Amounts collected under this section shall be credited to the account or accounts from which costs associated with such amounts have been or will be incurred, to reimburse or offset the direct costs of the program referred to in subsection (a).

Another selection – the interesting bit to me here is they’ve included all sorts of random formatting information. You could probably use this to train an NLP algorithm to extract some form of context, but it would be a lot of work.



401 note (Act July 26, 1947, ch. 343, title III, § 310, 61 Stat. 509)

3077

2 Replies to “U.S. Code Available in XML Format”

  1. >> It’s worth noting that this was available in some form already, e.g. through Cornell.

    There is also an interactive web application at http://law.abi.org/ that features U.S.C. Title 11 and Federal Rules of Bankruptcy Procedure.

Leave a Reply

Your email address will not be published. Required fields are marked *