Abstract
Language is the medium for many political activities, from campaigns to news reports. Natural language processing (NLP) uses computational tools to parse text into key information that is needed for policymaking. In this chapter, we introduce common methods of NLP, including text classification, topic modeling, event extraction, and text scaling. We then overview how these methods can be used for policymaking through four major applications including data collection for evidence-based policymaking, interpretation of political decisions, policy communication, and investigation of policy effects. Finally, we highlight some potential limitations and ethical concerns when using NLP for policymaking.
Introduction
Politics is fundamentally built on language: speeches, social media posts, legislative bills, and news reports. However, the sheer volume of this textual data has historically made it impossible for human analysts to process manually without significant bias or delay. Natural Language Processing (NLP) offers a bridge between this massive "big data" of political discourse and the actionable insights needed by policymakers.
While NLP has seen massive success in industry, its application in the public sector is still maturing. The challenge is not just "reading" the text, but extracting specific dimensions like political stance, ideological framing, and policy responsiveness to inform better decision-making. By integrating NLP into the policymaking lifecycle, governments can move from "gut-feeling" decisions to data-driven, evidence-based governance.
Core NLP Techniques for Political Analysis
The paper categorizes four core NLP techniques that serve as the "workhorses" for political analysis:
- Text Classification: Beyond simple sentiment analysis, this is used for stance detection (e.g., determining if a social media post is pro- or anti-vaccine) and framing (analyzing how an issue is presented to the public).
- Topic Modeling: Using techniques like Latent Dirichlet Allocation (LDA), researchers can automatically discover recurring themes in massive corpora, such as decades of parliamentary debates or thousands of press releases.
- Event Extraction: This involves identifying "who did what to whom." In a policy context, this is used to monitor international conflicts or track the progress of legislative actions.
- Score Prediction (Text Scaling): This specialized application places a text on a numerical continuum, such as a Left-to-Right Ideology scale, allowing researchers to quantify ideological shifts over time.
Modern approaches have shifted from traditional dictionary-based methods (counting keywords) to transformer-based models (like BERT and GPT) that understand context and nuance.
From Data to Political Usage
The integration of NLP into policymaking follows a pipeline from raw data collection to actionable analysis.
Datasets and Sources
NLP models are trained and applied across diverse political corpora:
- Social Media: Real-time public sentiment from platforms like Twitter and Facebook.
- Legislative Records: Comprehensive databases like the Congressional Bills Project and EU parliament speeches.
- Official Communications: Presidential speeches, party manifestos, and Senate press releases.
Key Applications and Insights
- The Policy Feedback Loop: NLP tasks can be mapped to gathering evidence, interpreting decisions, communicating policies, and investigating long-term effects.
- Policy Responsiveness: By comparing public sentiment on social media to subsequent legislative changes, researchers can quantify how "responsive" a government is to its constituents.
- Strategic Intent: NLP can distinguish between "credit claiming" (a politician taking credit for an action) and "position taking" (merely stating a stance), helping decode the strategic intent behind political language.
- Efficiency and Prediction: NLP provides a low-cost tool to analyze datasets that would take human coders lifetimes to process. Studies show that NLP analysis of social media can supplement traditional polling, sometimes predicting election results or approval ratings with high accuracy.
Limitations and Ethical Considerations
The authors highlight several risks associated with "Government by Algorithm":
- The Black-Box Problem: Deep learning models are often hard to interpret. For high-stakes policy, transparent models or rigorous error analysis are preferred.
- Data Bias: Social media users are not a representative sample of the general population. Relying solely on these sources could marginalize those on the wrong side of the digital divide.
- Ethical Red Lines: There is a danger of politicians using NLP to "over-optimize" communication, potentially leading to automated propaganda or privacy intrusions to manipulate voter preferences.
Conclusion
Natural Language Processing offers a powerful set of tools for modernizing the policymaking process. While it provides unprecedented capabilities for ideological mapping and responsiveness analysis, its deployment must be balanced with ethical safeguards and a commitment to data representativeness.
This text is based on Chapter 7 (pages 141-162) of the Handbook of Computational Social Science for Policy (2023).
Summary updated