text-as-data

Installation
SKILL.md

Quantitative Text Analysis for Political Science

This skill covers the principal methods for treating political texts as data: preprocessing with spaCy, LDA topic modeling on legislative speeches and party manifestos, Wordfish left-right scaling, VADER sentiment with custom political dictionaries, TF-IDF ideology classification, NER for political actors, and access to the MANIFESTO project corpus.


1. Setup

pip install spacy gensim vaderSentiment scikit-learn pandas numpy scipy requests matplotlib
python -m spacy download en_core_web_sm
# For German/EU manifesto corpora:
# python -m spacy download de_core_news_sm
Installs
10
GitHub Stars
38
First Seen
Mar 30, 2026