D.C. code meets open government on GitHub

 

Connecting state and local government leaders

When Joshua Tauberer found a typo in the District of Columbia’s legal code, he corrected it with a GitHub pull request – an action that’s possible only because D.C. publishes its code on the online hosting service.

Joshua Tauberer isn’t an editor, but when he found a typo in the District of Columbia’s legal code recently, he corrected it with a GitHub pull request. That was possible because the nation’s capital is the only jurisdiction to publish its code on the online hosting service, he said.

The founder of GovTrack.us and a public member of the District’s Open Government Advisory Group, Tauberer noticed that a link to a subchapter of the code linked to the wrong part of the law. Because the nation’s capital publishes the law on GitHub, Tauberer was able to edit the file and submit a pull request that resulted in a correction.

We spoke with Tauberer to find out more about the process.

This interview was lightly edited for clarity.

GCN: Why is it notable that you were able to edit the D.C. Code on GitHub?

Tauberer: Legal publishing has been controlled by a very small number of companies that are doing the vast majority of work to publish the legal codes of the states. This is a big deal because the District’s government, the [D.C.] Council, has moved to a new contractor for legal publishing. It’s a nonprofit [called the Open Law Library]. It’s interested in making things better -- not just for people who are going to pay high-priced subscriptions to read the law, but for everyone, and it’s using open, modern technologies and practices to do it.

GCN: Other jurisdictions and the federal government digitally publish laws, but this is -- to your knowledge -- the only government that opens the law to editing by the public. Is that right?

Tauberer: In every jurisdiction, the public is allowed to suggest an edit, and that usually happens in the form of proposing a bill or being an advocate and going to the council. The difference here was that the process occurred entirely in the open and online using a platform that’s built for that purpose.

GCN: So, what happened?

Tauberer: There’s a repository on GitHub where the council is publishing XML data for the laws that are enacted in the D.C. Code. With a little help from the Open Law Library, I was able to find the file in that repository that corresponded to the law that the council had recently enacted to update the responsibilities of the Office of Open Government, which is what I was interested in. The typo was actually in the XML metadata that was added by the codification lawyer in the council after the enactment of the act. The council passes an act and they turn it into XML data, and it was that process of turning it into XML data that had the typo.

I spotted that in the file and made the change in GitHub. I pushed that change to my own repository copy of D.C. Code -- it was sort of a scratch space for putting my correction somewhere -- and then I opened a pull request. A pull request is basically a request to the maintainer of the original repository to merge a change that I put in my repository. The original maintainer can see exactly the change that I’ve made and adopt it or not. Ben Bryant, who’s the codification lawyer at the council, got an email through GitHub's normal process of sending emails when pull requests are opened. He saw my pull request, reviewed it and merged it, which moved my correction of the typo to the authoritative repository that the council runs.

GCN: Would this look different if you’d needed to fix something more substantive?

Tauberer: If we’re talking about substantive changes, this may be a completely different ballgame. The tools that we’re creating certainly can help that, but the exact story probably shouldn’t look the same. We don’t want thousands of people submitting pull requests for the District’s codification lawyer to review when substantive changes really should be going to your representative on the council. Things have to go through a democratic process.

GCN: This isn’t unfamiliar territory for you. You were part of the initial work in 2013 to turn the D.C. Code into XML.

Tauberer: At that time, the council would tell [legal research firm] Westlaw what changes to make, which meant that the council didn’t have a complete digital copy of the code. Westlaw had it and maintained it. [The District] changed to Lexis[Nexis] after I did this work. First, we needed a complete digital copy of the code, so the council asked Westlaw for a copy, and Westlaw emailed over a very large number of Word documents containing the complete content of the D.C. Code.

The second step that we did was to convert all the Word documents into an XML format. The challenge, once you have the data, is keeping it up to date, which is really the biggest challenge in most data issues. You’ve got to keep it going. That’s the main work that the Open Law Library has done since then. It’s been in giving the council the tools to keep those files up-to-date as fast as possible.

GCN: How does it do that?

Tauberer: The way it used to work is the council would pass a law, and then the lawyers inside the council would decide where in the D.C. Code to put it, and they would work with their past contractor, Lexis, to tell them where to put it. In the new version, the laws are first turned into XML data by the council’s own lawyers so they don’t have to go to an outside publisher to tell them how to update the code. The Open Law Library’s tools are automatically compiling the law into the code. It replaces an old manual process of copying and pasting text.

GCN: How difficult was this for the District to get this up and running?

Tauberer: A lot of effort. The range of work is from technology to keep the code up to date but also embedding that work within the workflow that the council goes through. Councilmembers will draft bills in Word. We’re back to Word again, and you can’t escape it and you can’t tell councilmembers to draft in XML --the councilmembers aren’t going to draft legislation in XML. So a lot of the work has been in creating that bridge between how the laws are actually drafted inside the council and what needs to be done to get that into data and then published as the code.

On top of it, the council is now doing this without the help of Lexis or Westlaw, so the work that Lexis and Westlaw were doing has now been internalized by the council, and that’s a big shift also. It’s both technology as well as process.

GCN: If other municipalities are interested in pursuing this track, they should realize it’s a commitment, right?

Tauberer: For sure -- and not even just across municipalities, but even within the same ones. The D.C. Code is now being done in a modern way, but the code is only one aspect of law in the District. Regulation is another very large aspect of D.C. law, and that’s run by the executive branch of the D.C. government and hasn’t been modernized yet in this way. That would be the next logical step, but it’s a whole different agency that does it, so it would be starting over even within D.C. to do that.

GCN: What pointers can you offer governments that might consider this approach?

Tauberer: The first issue is realizing how modernization and open data can help. It’s always easier to get done when the council or whoever sees this as a win internally. No. 2 is you have an interest in improving access to the law for everyone beyond the lawyers who subscribe to subscription services [such as LexisNexis], and then the third thing would be to start talking to folks who are working on this.

The Open Law Library, I’m sure, is happy to talk to any jurisdiction that would want to do that. There are other organizations also working on a similar path. Another is Xcential, and I’ve done contracting work for them. They’re also working on similar tooling for jurisdictions, and they can help figure out whether a jurisdiction is going to be able to do it.

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.