A substantial announcement

Since 20th January 2004, the Dáil has been in session for 493 days (including today).

Up until this morning TDs made 249,489 speeches, and asked 160,503 questions which received written responses.

On average, TDs are producing 507 speeches and 326 written answers per sitting day.

Sadly you won't have had access to information like this before, since the Houses of the Oireachtas publishes the Dáil record primarily on an illegible website ridden with elementary display errors.

What we needed, it was decided (by myself and independently also by some other people, though I didn't discover their existence until last month), was a port to Ireland of the spiffing UK site TheyWorkForYou.com.

Then we could (gasp!) search the parliamentary record. Get RSS feeds for TDs. Set up email or RSS alerts for people or search terms. Maybe even be able to read the bloody thing without wanting to kill oneself after about twenty seconds of stupidly-and-permanently-underlined horror.

MySociety helpfully publishes the source code which powers TheyWorkForYou, and I installed it back in October. Some readers may recall me showing that site, containing nothing but a list of TDs in the right place, back at Barcamp Cork 2.

The trick, however, is to get all the actual debates and questions into the site's database. You need to build a parser program to convert all that data from one format into another -- in Ireland's case, from the raw XML published by the Houses of the Oireachtas which is primarily intended as a print publishing format for the official record, but which also powers debates.oireachtas.ie.

The parser project languished for a good while until MySociety got another contact (this time from Gavin Sheridan) and forwarded him to me. Gavin, basically, annoyed me into making more progress.

I started in earnest again about six weeks ago and have worked on almost nothing since then.

The end result

As of this afternoon, then, we're pleased to announce that Ireland's local version of TheyWorkForYou is called KildareStreet.com, and that it's now available in public beta.

It still contains bugs, so be careful about jumping to early conclusions :)

At KildareStreet.com you can:

  • Read a dramatically-more-legible version of the Dáil Record going back to January 2004,
  • Search that record using a fabulous search engine which I didn't write - you can restrict searches to speeches or written questions, or by speaker, or by date or date range,
  • Sign up for email alerts for when a search query you're interested changes, or whenever a TD of your choosing says something or asks a question which generated a written reply, and
  • Subscribe to RSS feeds for individual TDs or for search queries.

The site will be updated the day after each sitting day shortly after the Oireachtas publishes that day's first report version in XML. RSS feeds and emails are generated shortly after that.

Coming soon

In the next few weeks you will also be able to inspect the past five and a half years of TD expenses, and the register of members' interests.

There's a programming API in the code base which we have not yet properly localised, and is therefore not yet available. I shall sort that out as quickly as possible.

Once we've done all of that, I'll get started on the Seanad.

Thanks due

None of this would be possible without the code for TheyWorkForYou having been released under a permissive license. This is the second non-UK installation of this code base (after Australia) and there's also a similar project in New Zealand. So thanks to MySociety, and to Matthew Somerville in particular for answering a large number of stupid questions while I was putting this together.

The Houses Commission employs people who could, when they got wind of it, have made this project more difficult or even impossible. They did not do so, and I and you owe them our thanks for that. Leo Bollins and Tom Malone have helpfully answered questions about their publishing formats and not been freaked out when I sent them bug reports about their source material.

Gavin Sheridan poked and chivvied this project into existing now instead of later, is sourcing ancillary data like member interests and expenses, and will be helping to keep the site ticking over as a moderator. For the first of these above all, this site etc without whom blah blah blah. Cheers, Gav :)

Justin Mason contributed actual code to start parsing written answers and has offered to assist in making the data import process follow at least some sensible test-driven methods which my shonky parser does not even begin to follow yet. He is the only actual code contributor to KildareStreet other than myself and code is, frankly, everything. The parser as it now is isn't using his stuff (yet) but we owe him a debt of gratitude also.

Simon McGarr is quietly providing assistance in the background, the fruits of which will become apparent in due course. Thanks to you.

Finally, and more than all the above, I live with a very tolerant and patient wife. Sabrina Dent, not entirely unknown in these parts, has been working for money and covering everything in our house in that manner while I've been doing all this for no cash. She thinks it's a worthwhile project and if she didn't, KildareStreet absolutely would not exist. Hire her!

Anyway. KildareStreet. It's now in testing. Have at it. Send me bug reports. Enjoy.

And above all? I think it's time we raised our game generally. Blogs are fine, sure, but actual apps that help people are required. This is my first contribution. How about you?

Trackback URL for this post:

http://handelaar.org/trackback/701

delicious | digg | reddit


Jason Roe (not verified) | April 22, 2009 - 20:09

Congrats to John and everyone involved!

Nick McGivney (not verified) | April 22, 2009 - 20:29

I don't know much about actual apps (try 'Nothing') but the content here will hopefully be something that we can gleefully use in our unending work for The Emergency. At the very least I'll be retweeting and getting this out there. God bless the endeavour of the whole team.

Allan Cavanagh (not verified) | April 22, 2009 - 20:33

Well done. Absolutely sterling work all round. Take the rest of the day off.

Joy Redmond (not verified) | April 22, 2009 - 20:38

There'll be nowhere to hide now, wouldn't it be great if we had this type of data on all our public services? Well done.

martinb (not verified) | April 22, 2009 - 20:42

Bloody fantastic.

Although sample output reads like a scripted sitcom.

Morgan C.Jones (not verified) | April 22, 2009 - 21:38

A vital tool in the ongoing fight against lazy, inept and self serving gombeens. Ireland should salute you.

emordino (not verified) | April 23, 2009 - 09:42

This is great. Much kudos to all involved.

Roger (not verified) | April 23, 2009 - 19:40

Well done John (and Sabrina). It looks great and is sure to be a fantastic resource. Particularly like the fact that you can get an RSS on what your politician says.

Chris Mehigan (not verified) | April 24, 2009 - 10:54

Great site that is bound to be a really useful resource.

Well done to all involved.

Matt Wardman (not verified) | April 24, 2009 - 22:51

*Raises glass*

Keith (not verified) | April 25, 2009 - 14:40

I managed to get you a mention in Miriam Lord today, so I'd say you're getting some interesting search queries!

Best of luck with it - it's a great resource.

Andy Harkness (not verified) | April 25, 2009 - 21:39

Absolutely fantastic stuff. This will be massively useful in my work. I've found navigating around the Oireachtas website a massive pain in the arse. Now I can just drop in a few keywords and hey presto, well done! Every charity that campaigns or lobbies the Government should use this site!

Antoin (not verified) | April 26, 2009 - 15:48

Blimey, a usable version of Oireachtas reports. I am gobsmacked! It is really good.

Do they actually publish the XML somewhere, or did you have to ask?

Mairéad (not verified) | April 26, 2009 - 19:32

Really excellent work! THANK YOU to all involved.

I will pass on the word.

Will there be reports on Udaras na Gaeltachta, I wonder?
I know many people who would be interested in that one!

johnh | April 27, 2009 - 03:00

The XML's on a public website, but I wouldn't go as far as to call it 'published' since it's not directly linked anywhere. I deduced/guessed locations until turning up a result.

----
John H

Stan (not verified) | May 8, 2009 - 09:56

Belated congrats to all involved in this project. It's a terrific resource that looks like it's off to a great start.

Mick (not verified) | May 11, 2009 - 09:31

Hello John,

Just came across this via Conors blog - what a breath of fresh air! No doubt you'll be severely unpopular in the eyes of some politicians but what a great initiative.

Its hard not to be cynical about politics here in Ireland and anything that promotes transparency is to be greatly welcomed. Hopefully it'll help certain TDS realise that that they're elected to serve the people first (and themselves 2nd!).

Site bookmarked!

Well done,

Mick.