Slashdot Mirror


Congress Mulls API For Congressional Data

Amerika sends in a Wired blog post on the desire in Congress to make data on lawmaking more easily available to the public. The senator who introduced the language into an omnibus appropriations bill wants feedback on the best way to make (e.g.) the Library of Congress's Thomas data more available — an API or bulk downloads, or both. Some comments on the blog posting call for an authenticated versioning system so we can know unequivocally how any particular language made its way into a bill. "Congress has apparently listened to the public's complaints about lack of convenient access to government data. The new Omnibus Appropriations Bill includes a section, introduced by Rep. Mike Honda (D-Calif.), that would mark the first tangible move toward making federal legislative data available to the public in bulk, so third parties can mash it up and redistribute it in innovative and accessible ways. This would include all the data currently distributed through the Library of Congress's Thomas web site — bill status and summary information, lists of sponsors, tracking timelines, voting records, etc."

14 of 121 comments (clear)

  1. Law for geeks by Baldrson · · Score: 3, Insightful
    Law is code*.

    Legislation is a change to the code.

    The legislative process is change control.

    *It is perhaps not entirely coincidental that the "code base" of law in the US is designated by the prefix "United States Code".

    1. Re:Law for geeks by gEvil+(beta) · · Score: 4, Informative

      I think you have that backwards. It is not entirely coincidental that the rules that a computer program follows are called "code".

      --
      This guy's the limit!
    2. Re:Law for geeks by orclevegam · · Score: 4, Interesting

      They should use something like GIT and assign each congress critter a login (and make the revision history available to the public). Not only could we follow the larger modifications of a bill at the central level as it moves through congress, but we could look at the branches each congress critter checks in and see what kinds of modifications occur in their own office. What would be really neat is if someone then took that data and did a bit of correlation between changes made at particular times and recent visits of lobbyists. Imagine the questions that might be raised if a congress critter has a recent visit by say a Microsoft lobbyist, and then a few days later amends a seemingly unrelated bill in a way that turns out to be beneficial to MS.

      --
      Curiosity was framed, Ignorance killed the cat.
    3. Re:Law for geeks by Lord+Bitman · · Score: 5, Interesting

      I don't know about how git works for you, but for me, it requires a non-blank commit message. And if someone browses the log and sees a non-meaningful message, a message that doesn't explain the whole commit, or a singe commit which does "too much at once", questions get asked.

      That's why we need "Git for government". Lots of small commits, references to why they happened (ie: links to C-Span video, audio or transcripts from meetings, etc)

      This is something which needs to be taken on by someone on some level. It's not something which will happen immediately when someone passes a law requiring it. It'll need to be someone going up to a local lawmaker and dedicating all their time (100% of it) to tracking changes for them. Find out what's needed in terms of an interface to get real people to want to use it, make it so that non-programmers can benefit from it. Do this for one person, let anyone clone the results, and always be public about willingness to do it for anyone.
      Re-election time comes around, and the person you're "sponsoring" gets to say: "I'm all for government transparency. Every last paragraph I've put into a bill over the past two years has an explanation attached to it. The service I use to make this available to the public is free for any lawmaker, and similar methods are available for free to all members of the public. Why has my opponent not bothered to do the same? What is he trying to hide?"

      I would love to see an organization form around this very concept. "Free version control for government", a service provided by volunteers for absolutely anyone involved in writing laws or policy.

      I don't see it as something which would ever really happen, of course.

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
  2. Hmmph. by SatanicPuppy · · Score: 4, Insightful

    It'd be more useful to see laws written in something resembling plain language. There is no excuse for 1,000 page omnibus bills. If it was line-item budgets, that would be one thing.

    When you can't understand the law, you can't obey the law. And since ignorance of the law is no excuse, you can basically be arrested for anything. What a world.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    1. Re:Hmmph. by DrLang21 · · Score: 4, Insightful

      I used to think this until I started to realize the difficulty of writing plain language that was not ridiculously easy to technically interpret in a way that I completely did not intend. Thus I now try to avoid plain language when writing a contract. What's even scarier is that our laws are still often easy to bend in ways that were not intended. Plain language would probably make it a lot worse.

      Laws are fairly easy to understand when you read them through. The problem is that they are the driest most boring pieces of literature ever written.

      --
      I see the glass as full with a FoS of 2.
    2. Re:Hmmph. by OctaviusIII · · Score: 4, Informative

      That 1,000 pages thing is misleading: bills are printed on half-sized pages, double-spaced, in rather large font (Times New Roman 16 or 18) with wide margins (at least 0.75"). Were it a normal ol' book, it would probably be in the 200-300 range.

      --
      What's this? Another weblog? On transit?
  3. authenticated versioning by BigHungryJoe · · Score: 4, Insightful

    Not a chance. They'd never be able to use the excuse "some anonymous person slipped in this provision at the last hour and I didn't want to not vote for the bill just because of this" again...

    1. Re:authenticated versioning by PolygamousRanchKid+ · · Score: 3, Insightful

      Yep . . . this would provide transparency in government . . . and all politicians will scatter away like cockroaches, when you turn on the light in the room.

      No more secret reciprocal vote tradings, secret deals (my spotted owls, for your unneeded dam), etc.

      This thing will get quietly scuttled for . . . "technical" reasons.

      --
      Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
  4. One feature I hope to see by MikeRT · · Score: 3, Insightful

    Bills should be accessible in a form similar to patches created by diff. There should be a web service that allows you to retrieve the affected USC titles, merge them, and then apply the new bill as a patch to the federal law so that you can quickly assemble a coherent view of how the law will change.

  5. Re:If this brings about more accountability by Em+Emalb · · Score: 4, Funny

    You're right, we shouldn't have increased accountability.

    --
    Sent from your iPad.
  6. Use wiki API as the guide by yurik · · Score: 3, Interesting

    The process of the bill writing seems to me to be very similar with how the Wikipedia articles get started / mature. Wikipedia API was designed specifically to work with the bulk data (see http://en.wikipedia.org/w/api.php ) - we can just adapt a similar approach.

    (Shameless plug: I was the dev who implemented the original wiki api)

  7. A logic based language by mbone · · Score: 4, Interesting

    I have long thought that there should be a logic-based language for laws, at least for laws like the Tax code. My original idea in this direction was prolog, but something built on top of XML is probably more appropriate today.

    It should, for example, be possible to automatically check that some 400 page law doesn't contain 1 paragraph that totally changes some other law, or that, say, 20 pages of consumer protections are not negated by two lines 100 pages later. The legal language used is already close to meta-code, but right now this all has to be checked by hand, allowing untold mischief. It should also be possible to check for logical inconsistencies and missing if-then-else options.

    Some I am sure will see the current ... flexibility as a feature, not a bug, but I think it is high time to be able to do some automatic checking of what the Congress is doing and what proposed laws actually mean.

  8. distribute airbags too by peter303 · · Score: 3, Informative

    I routinely look at large bills on thomas.loc.gov to see whats in them. 485 last minute earmarks in the stimulus bill and 9000 in the 2009 budget bills. Enough to make you gag.

    These are sort of like an ebay auction: 24 hours before the vote these start to stream in. Often they are placeholders "text to be supplied" or very obscure references to the organization designated for the earmark. Not even the toiling interns who are supposed to vet these for their bosses can keep up last minute submissions.

    Ironically the TARP bill last year was very streamlined and only had one earmark. But that was a controversial federal judge raise.

    Another nausea in the bills are that 90% are resolutions commending people or organizations in their districts. this reads like the gossip pages in the newspapers. You see this if look at the full list of recent bills.