This page gives an overview of my data science projects (current and past). For an overview of my academic research projects, please see this page.
ParlRulesData is an online database of parliamentary rules, containing the formal rules of procedure for various parliaments over time. The data currently covers the UK House of Commons (1811-2019) and the Irish Dáil (1926-2016).
As part of my PhD project on rules of debate and polarisation in the UK House of Commons, I gathered historical data covering the period 1811-2015. Some of of these data are available on this page (and more will be released soon).
Download in JSON format
Download in XML format
Building on a classification accuracy approach introduced by Peterson and Spirling (2018), and my PhD work, the graph below shows levels of polarisation in the UK Parliament for the period 1811-2015. “Polarisation” is defined as how predictive language use is of party membership in a given session (measured on a 0-1 scale), and is estimated on the basis of records of parliamentary speeches from Hansard. In simple terms, the measure is generated by fitting a training algorithm to a set of parliamentary speeches in a session with party labels, and taking the accuracy from predicting a held-out subset of speeches (which are also labelled). The data for the graph is available in .csv format via this link, or in .json via this link. Please cite this paper if you intend to use these data for your research.