Diverging Memories: Emotive Representation of East Germany and its Communist Past in the German Bundestag
This repository includes the underlying code and final write-up of my M.A. thesis titled "Diverging Memories: Emotive Representation of East Germany and its Communist Past in the German Bundestag." I use sentiment analysis to assess whether or not there are meaningful differences in the sentiments with which members of the German Bundestag refer to East Germany and its communist past.
This repository contains three main folders. The data_cleaning
folder contains code that cleans and preprocesses several datasets used in the main analysis, while main_analysis
contains the code that performs the sentiment analysis as well as relevant statistical modeling. In order to obtain reproducible results, please make sure to first clean and preprocess the data before running the main analysis. Finally, the thesis
folder contains the final draft of my thesis, as submitted to the University of Chicago's Division of the Social Sciences in July of 2022. If you have trouble running any of the files in this repository, or if you have any questions about this project, please feel free to contact me at [email protected].
The majority of the data used in this repository comes from the Open Discourse dataset, which was assembled and published by Richter et al. in 2020. It is available through the Harvard Dataverse; you can access it using this link. I also utilize up-to-date geographic data provided by the Federal Statistical Office of Germany (Statistisches Bundesamt) through its Gemeindeverzeichnis-Informationssystem (GV-ISys). Use this link to access the GV-ISys. Finally, I chose to use the SentiMerge German-language sentiment dictionary, which can be downloaded using this link.
The packages required to load and run the contents of this repository are detailed below.
library(tidyverse)
library(readxl)
library(tidytext)
library(corpus)
library(quanteda)
library(quanteda.sentiment)
library(quanteda.textplots)
library(readtext)
library(spacyr)
library(pradadata)
library(DT)
library(sandwich)
library(lmtest)
library(robustbase)
library(psych)