Akoma Ntoso

Applying Akoma Ntoso to the United States Code

A few weeks ago the U.S. House of Representative’s Committee on House Administration held a one day Legislative Data and Transparency Conference. While I was not able to attend in person, I did listen in to the presentation via the live stream that was provided.

Of all the things I learned that day, one specific detail intrigued me the most – that there is an XML representation of the United States Code that has been made available. This XML is available at http://uscode.house.gov/xml. While the data is a little stale and some titles are mysteriously absent (Title 14, the repealed Title 34, and Title 51), it is a great source to begin experimenting with the United States Code.

One question asked by Sarah Schacht of Knowledge As Power was why there wasn’t very much interest in Akoma Ntoso at the federal level. For me, the answer wasn’t altogether satisfying but it did gave me an idea! How about I try to transform the XML files that are available into Akoma Ntoso as best I know how. That way, I could learn for myself how well Akoma Ntoso adapts to the needs of the US federal government. Admittedly the US Code is only one aspect of the overall issue, but it is a reasonable place to start.

The effort took me just a few days and now I have (almost) the full United States Code available in Akoma Ntoso. You can find it on my Legix.info site under United States Laws. Click on the “AKN” link in the upper right of each file to see tha Akoma Ntoso rendition. As a bonus, I also updated the United States Constitution that we had already prototyped to use the latest transforms for federal data. With thanks to Monica Palmirani at the University of Bologna and Flavio Zeni at UNDESA for their help, I was able to get what I think is a fairly reasonable rendition of the United States Code in Akoma Ntoso. Additionally, I have transforms into the SLIM formats and into an HTML presentation format.

So what have I learned? First of all, Akoma Ntoso adapted quite easily to the hierarchical model of the United States Code. That isn’t too surprising as the U.S. Codes hierarchy isn’t unusual and Akoma Ntoso is quite flexible in this regard. However, I do have an issue with managing a document as large as the United States Code. From what I can tell, the component mechanism within Akoma Ntoso simply doesn’t adapt to modeling a very large code. I need some sort of composition or inclusion mechanism that would allow the single US Code to be modeled as a composite document made up of many files, preferably in some sort of hierarchical arrangement. Currently I have modeled the US Code as 48 different “Acts” corresponding to the available titles within US Code, but this is far from ideal. Modeling the individual titles as acts is not accurate and still does not resolve the scalability issues but is the best I cold figure out at this time. In the past I found Monica and her team to be quite responsive to issues such as this so hopefully we will have a quick resolution to this. Maybe I simply don’t know enough about Akoma Ntoso to model a large document adequately.

My effort is just a start. I still have lots to learn about how best to apply Akoma Ntoso in various contexts. I will be refining my transforms as time allows in the weeks to come. Take a look at what I have done and let me know what you think. I welcome all feedback, both constructive and otherwise. My intent in publishing all the experiments and research that we do at Xcential is to share what we know with the legal informatics community in the hopes of fostering a more collaborative spirit amongst us all. So please send me your comments!

Standard

8 thoughts on “Applying Akoma Ntoso to the United States Code

  1. Totally awesome. I’d actually just registered for a conference on Akoma Ntoso just this morning, and then saw this.

    I was the questioner at the conference who asked the OLRC if they’d release the US Code in some better structured format. They obviously had it ready to go before my question, but it was awesome to see them release it just an hour or so later.

    I and a couple of colleagues are doing some work with the US Code, and were going to be trying something like this ourselves (though releasing it in a much less standard, if lightweight, format). Did you publish your code for this anywhere under an open source license? I’d love to see if we can collaborate and build on your work.

    Like

    • grantcv1 says:

      Thanks for your comment Eric! At this point I have a few relatively simple transforms which convert the US Code format to my SLIM format and then on to Akoma Ntoso. I would love to find some way to collaborate on this – especially as it relates to Akoma Ntoso. I will be in DC in a couple weeks so maybe we could find some time to chat.

      Like

  2. Pingback: Akoma Ntoso « Another Word For It

    • grantcv1 says:

      Hey Dale, I saw the LexisNexis traffic and was wondering if that was you. Nice to hear from you. I’m on the OASIS TC. We should catch up sometime.

      Like

  3. Gentlemen, as you can imagine, a number of Federal agencies cite USC when elaborating their own rules and regulations. Rather than inventing markup for their internal use, it would be very helpful to have some standard markup to use instead. Where does your work stand today? Any pointers you could provide would be very helpful. Thanks.

    Like

Leave a reply to Eric Mill Cancel reply