<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mark's Blog &#187; Public Whip</title>
	<atom:link href="http://longair.net/blog/category/public-whip/feed/" rel="self" type="application/rss+xml" />
	<link>http://longair.net/blog</link>
	<description>(occasional miscellanea)</description>
	<lastBuildDate>Tue, 08 May 2012 15:59:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Public Whip for the Scottish Parliament</title>
		<link>http://longair.net/blog/2009/06/02/public-whip-for-the-scottish-parliament/</link>
		<comments>http://longair.net/blog/2009/06/02/public-whip-for-the-scottish-parliament/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 12:51:35 +0000</pubDate>
		<dc:creator>mark</dc:creator>
				<category><![CDATA[mySociety]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Public Whip]]></category>

		<guid isPermaLink="false">http://longair.net/blog/?p=122</guid>
		<description><![CDATA[Summary <p>You can now use The Public Whip to track the voting record of MSPs (Members of the Scottish Parliament) on the issues that you care about.  If you&#8217;re interested in this, please help out by creating &#8220;policies&#8221; on the site that represent how an imaginary &#8220;single issue MSP&#8221; would vote.  This will enable us [...]]]></description>
			<content:encoded><![CDATA[<h3>Summary</h3>
<p>You can now use <a href="http://www.publicwhip.org.uk">The Public Whip</a> to track the voting record of MSPs (Members of the Scottish Parliament) on the issues that you care about.  If you&#8217;re interested in this, please help out by creating &#8220;policies&#8221; on the site that represent how an imaginary &#8220;single issue MSP&#8221; would vote.  This will enable us to add a summary of each MSP&#8217;s voting record to their page on <a href="http://www.theyworkforyou.com/">TheyWorkForYou</a>.</p>
<p>The broader point I&#8217;m making is that it&#8217;s easy for anyone to contribute to projects like TheyWorkForYou and PublicWhip &#8211; you can help to make the proceedings of parliament more transparent and accessible.</p>
<p>Here are some possibly interesting facts that came out of this work, subject to the usual proviso that since we&#8217;re working from web-scraped data, there may well be errors in these (and bear in mind<a href="http://www.publicwhip.org.uk/faq.php#clarify"> the caveat about how a &#8220;rebellion&#8221; is defined on Public Whip</a>):</p>
<ul>
<li>The <a href="http://www.publicwhip.org.uk/mps.php?house=scotland&amp;sort=rebellions">ranking of current MSPs from most to least rebellious</a> has the Liberal Democrat <a href="http://www.publicwhip.org.uk/mp.php?mpn=Jamie_Stone&amp;mpc=Caithness%2C_Sutherland_and_Easter_Ross&amp;house=scotland">Jamie Stone MSP</a> at the top, going against the majority vote of the Liberal Democrats in 2.5% of divisions. <em>Update: of course, this is dynamic data and so this result is now out of date &#8211; please follow the link to find the current list of &#8220;Most Rebellious MSPs&#8221;</em></li>
<li>In the last couple of years, the <a href="http://www.publicwhip.org.uk/mps.php?house=scotland&amp;sort=rebellions">most rebellious MSPs</a> seem to vote with their party much more than the <a href="http://www.publicwhip.org.uk/mps.php?house=commons&amp;sort=rebellions">most rebellious MPs</a> do.</li>
<li>The voting record of the only independent MSP at the moment, <a href="http://www.publicwhip.org.uk/mp.php?mpn=Margo_MacDonald&amp;mpc=Lothians&amp;house=scotland">Margo MacDonald MSP</a>, has a very low similarity to any other MSP (about 50% at most), where as members affiliated with a party typically have at least a 90% agreement with some other MSP of the same party.</li>
<li>There is <a href="http://www.theyworkforyou.com/sp/?id=2001-12-20.5096.0">only one spoiled vote recorded in the Official Report</a> as far as I can tell, which was Nora Radcliffe MSP in <a href="http://www.theyworkforyou.com/sp/?id=2001-12-20.5096.0">this division</a>.  It seems as if a spoiled vote is recorded if an MSP <a href="http://www.theyworkforyou.com/sp/?id=2007-05-16.20.0&amp;s=&quot;more+than+one+vote&quot;#g27.0">votes more than once</a> when voting for particular candidates for a post.</li>
</ul>
<p>Please <a href="http://www.publicwhip.org.uk/email.php">let the Public Whip team know</a> if you spot any errors, or are interested in doing some more complex analysis of voting records than the &#8220;policies&#8221; system seems to allow.</p>
<h3>Background</h3>
<p>A couple of years ago, as a Christmas holiday project that got rather out-of-hand, I did some volunteer work on adding data from <a href="http://www.scottish.parliament.uk/">the Scottish Parliament</a> to the <a href="http://www.mysociety.org/">mySociety</a> website <a href="http://www.theyworkforyou.com/">They Work For You</a>.  In case you&#8217;re not familiar with TheyWorkForYou, it takes the official records of parliament and presents them in a more accessible and compelling way &#8211; just compare side-by-side the presentation of the same debate in TheyWorkForYou and the Official Reports, for example:</p>
<p><a href="http://www.scottish.parliament.uk/business/officialReports/meetingsParliament/or-09/sor0521-02.htm#Col17667"><img class="size-full wp-image-124 alignleft" title="Official Report Presentation" src="http://longair.net/blog/wp-content/uploads/2009/05/sp-official-report.png" alt="sp-official-report" width="200" height="168" /></a><a href="http://www.theyworkforyou.com/sp/?id=2009-05-21.17667.2"><img class="size-full wp-image-125 alignleft" title="TheyWorkForYou presentation" src="http://longair.net/blog/wp-content/uploads/2009/05/sp-theyworkforyou.png" alt="sp-theyworkforyou" width="200" height="168" /></a></p>
<p style="clear: both;">Hopefully you&#8217;ll agree that the latter presentation is much more involving to read.</p>
<p style="clear: both;">TheyWorkForYou also offers to email you an alert when your MP or MSP speaks in parliament or tables a question. These are just a couple of the services that are only possible as a result of <a href="http://www.theyworkforyou.com/about/">programmers</a> having <a href="http://ukparse.kforge.net/parlparse/">scraped the reports published by the parliaments into a logically structured data format</a>.</p>
<p style="clear: both;">Doing this scraping and parsing is deeply irritating, and it&#8217;s one of those strange tasks where your ultimate aim is to provoke someone else into making all that tedious work redundant &#8211; all the UK parliaments should publish proceedings in a structured data format rather than horribly mangled HTML, and if they ever do, I&#8217;ll certainly be cheering.  However, until that day, we still want to be able to build tools that make the workings of parliament more accessible, and to do that at the moment means webscraping&#8230;</p>
<p style="clear: both;">Anyway, one of the most popular features of They​​Work​​For​​You is that there is a summary of the voting record of each MP on their page &#8211; for example, have a look at the bottom of <a href="http://www.theyworkforyou.com/mp/gordon_brown/kirkcaldy_and_cowdenbeath#votingrecord">Gordon Brown&#8217;s page to see how he votes</a>.  These data are actually calculated by a distinct project called <a href="http://www.publicwhip.org.uk/">The Public Whip</a> (a creation of <a href="http://www.goatchurch.org.uk/">Julian Todd </a>and <a href="http://flourish.org/">Francis Irving</a>) which uses the same structured version of data from parliament to track how MPs and Lords vote on particular issues.  This site provides an incredibly valuable service in that it gives you, for example, a simple way to check whether what your MP says in the next election campaign actually corresponds with their voting record. In order to produce those summaries of voting records on a particular issue, Francis and Julian developed the idea of letting users create &#8220;policies&#8221; each of which is like a &#8220;dream MP&#8221; for a particular point of view &#8211; they only vote in divisions relevant to one position they care about (e.g. &#8220;for replacing Trident&#8221;, &#8220;against up-front tuition fees&#8221;) and then vote in the way that&#8217;s best aligned with that principle. It&#8217;s not necessarily easy to create these policies, since you need to do some research into what were the important and relevant votes, but for anyone interested in how politics works, it&#8217;s a great exercise.</p>
<h3>Adding Scottish Parliament Divisions</h3>
<p style="clear: both;">Unfortunately, when doing my original work on TheyWorkForYou Scotland, I didn&#8217;t have time to finish adding support for the Scottish Parliament to Public Whip as well, although I had parsed all the divisions of the parliament that appear in the Official Reports.</p>
<p>Recently I was provoked into picking this up again, and with the help of Francis Irving we&#8217;ve now got basic support for the Scottish Parliament up on Public Whip.  While the implementation of this was not, on the whole, very interesting, there are few points that are perhaps worth mentioning:</p>
<ul>
<li>Making changes of this kind is essentially an exercise in checking which assumptions made in the original version of the site need to be revised.  For example, as soon as you introduce the data from the Scottish Parliament the following assumptions are broken:
<ul>
<li>The name of a constituency and a date no longer determine a particular representative, since there are multiple regional MSPs for the same named constituency.</li>
<li>Constituency names are not unique to particular parliaments &#8211; some of the constituencies in the Scottish Parliament have the same names as those in the House of Commons.</li>
<li>What constitutes a rebellion isn&#8217;t necessarily the same.  In the House of Commons the closest thing to an explicit abstention is to vote both Aye and No in a division (marked as &#8220;Both&#8221; in Public Whip), whereas when voting in the Scottish Parliament there is an explicit option to abstain.  Since it seems that parties in the Scottish Parliament do whip their members to abstain in particular votes, I have counted as a rebellion any difference between the vote of the majority of the party and an individual, including abstentions.</li>
</ul>
</li>
</ul>
<p>You have to be careful about other assumptions that might seem obvious &#8211; for example, as of the time of writing, Alex Salmond is still both an MP and an MSP at the same time.  There are not only examples of people who have been both MPs and MSPs, but cases like Lord Steel of Aikwood who has been a MP, MSP and Lord.  (Historically, it gets even more awkward &#8211; Francis came across the case of <a href="http://twitter.com/frabcus/status/1882888054">the two Rowland Blennerhassetts</a> who were the two MPs for Kerry in 1880 &#8211; constituencies in those days could have two members.)</p>
<h3>Creating Policies</h3>
<p>To make the information in Public Whip easily understandable by people, we really need volunteers to help create <a href="http://www.publicwhip.org.uk/faq.php#policies">policies</a>.  Depending on the complexity of the issue, and your level of interest in the Scottish Parliament this might be easy or difficult.  However, for anyone interested in Scottish politics, I think this should something worthwhile doing.  For example, there have been a lot of votes on the issue of tuition fees and the graduate endowment fee, but you need to read quite a lot of the proceedings of the parliament in order to find out which were the really substantive votes and which were the peripheral ones.  In addition, phrasing the policy is a little tricky &#8211; just reusing one of those designed for the Westminster doesn&#8217;t really work, since the clearest point of view that seems to be at issue is whether higher education should be free for students from <em>Scotland</em>, not students in general.</p>
<p>[Update: I've removed a pointless section about version control software from the end of this post.]</p>
]]></content:encoded>
			<wfw:commentRss>http://longair.net/blog/2009/06/02/public-whip-for-the-scottish-parliament/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

