Home

Awesome

This repository contains code to build cosponsorship networks from bills passed in the lower and upper chambers of the French Parliament.

The code is a simplified version of the neta repository, which handles more data in more ways.

HOWTO

Replicate by running psql.sh to export some tables from PostgreSQL for the French Senate, and then by running make.r in R. You will need a PostgreSQL installation to run the scripts: see below for further instructions.

The sponsors-an.r and dossiers-an.r scripts deal with the lower house; it will scrape all sponsors for legislatures 8-14 and all dossiers for the same legislatures. Legislature 10 is then excluded from the network building routine in build-an.r, as cosponsors are not reported for bills registered with the National Assembly during that period. The open data portal of the National Assembly does not currently provide legislative files for legislatures prior to the current one.

The sponsors-se.r, dossiers-se.r and build-se.r scripts carry the same operations as above for the upper house, for the same time period. Because Senate bills come from a PostgreSQL dump downloaded from its open data portal, the code expects to find three CSV files exported from the Dosleg database in the data folder. After installing PostgreSQL, just run the psql.sh shell script to download the Dosleg database, import it into PostgreSQL and export the relevant data:

sh psql.sh

The script will clean up by removing the Dosleg database from PostgreSQL, but it will keep a zipped copy of the original dump in the data folder.

Additional functions

An extra set of routines applied to both houses is coded into functions-fr.r.

DATA

Bills

Assemblée nationale:

Sénat:

Sponsors

The sponsors data has one row per sponsor-legislature. Both houses hold the same variables (although constituencies are regional for senators, and seniority is computed over more possible election dates).

Parties

Political parties in France fall into a few broad categories, with many different renamings and alliances to form parliamentary groups. The party names were simplified to the following categories:

THANKS