Abstract
The construct of morality permeates our entire lives and influences our behavior and how we perceive others. It therefore comes at no surprise that morality also plays an important role in politics, as morally framed arguments are perceived as more appealing and persuasive. Thus, being able to identify moral framing in political communication and to detect subtle differences in politicians' moral framing can provide the basis for many interesting analyses in the political sciences. In the paper, we release MoralFramingInPolitics (MFiP), a new corpus of German parliamentary debates where the speakers' moral framing has been coded, using the framework of Moral Foundations Theory (MFT). Our fine-grained annotations distinguish different types of moral frames and also include narrative roles, together with the moral foundations for each frame. We then present models for frame type and moral foundation classification and explore the benefits of data augmentation (DA) and contrastive learning (CL) for the two tasks. All data and code will be made available to the research community.
Introduction
In political discourse, the persuasive power of an argument often lies in its moral framing—the strategic appeal to a sense of right and wrong. While identifying these frames is crucial for political science, natural language processing (NLP) has historically faced significant hurdles in automating this analysis. Existing research is often limited by coarseness, focusing on document-level classification that ignores the specific words carrying moral weight, and a language gap, with most high-quality resources centered on English social media rather than formal political discourse in other languages like German.
To address these challenges, we introduce MoralFramingInPolitics (MFiP), a fine-grained German corpus designed to ground moral foundations in specific text spans and provide a robust pipeline for automated analysis.
The MFiP Pipeline and Methodology
Our approach utilizes a multi-step pipeline to move from raw text to a detailed moral analysis. This pipeline is built upon Moral Foundations Theory (MFT), which suggests humans have innate "gut feelings" about morality, such as Care, Fairness, and Authority.
As illustrated in the pipeline above, the process involves four distinct steps:
- Frame Identification (FI): A token classification task using the BIO scheme to locate moral spans within the text.
- Frame Classification (FC): Categorizing the identified spans into types, such as abstract values or concrete goals.
- Moral Foundation Classification (MFC): Assigning specific MFT categories (e.g., Care, Loyalty, Proportionality) to each frame.
- Frame Role Labelling (FRL): Identifying narrative roles—such as Hero, Victim, or Villain—within the moral frame.
Fine-Grained Annotation Scheme
The MFiP corpus consists of 244 German parliamentary speeches and political manifestos from the 2021 election, containing over 5,000 manually coded frames. Unlike previous datasets, MFiP identifies narrative roles to capture the strategic structure of political rhetoric.
By focusing on spans rather than whole documents, we demonstrate that a single sentence can contain multiple, sometimes conflicting, moral frames. This granularity allows researchers to see how different parties might use the same foundation (e.g., "Care") but identify different "Victims" or "Heroes." For example, as shown in the annotation examples, a speaker might frame a commitment to rewarding performance as a matter of "Proportionality" while identifying themselves ("We") as the "Hero."
Modeling and Key Results
We employed GBERT-large (a German-specific BERT model) as our baseline and enhanced it using two primary techniques:
- Data Augmentation (DA): Using a baseline classifier to label a massive pool of unlabelled parliamentary data (1949–2024), then filtering for high-confidence examples to expand the training set.
- Contrastive Learning (CL): Fine-tuning embeddings using a "triplet objective" to group text spans with the same moral foundation closer together in vector space.
The results demonstrate the effectiveness of this approach. The model achieved an average F1 score of 82.0 for Frame Classification. For Moral Foundation Classification, the combination of DA and CL pushed the baseline F1 from 71.9 to 77.3. Notably, DA was transformative for "rare classes"; for the Proportionality foundation, performance jumped from an F1 of 0 to 27.1, and Purity saw a 46-point increase.
Discussion and Limitations
While MFiP represents a significant step forward, several challenges remain. The model shows domain sensitivity, performing better on spoken speeches than on written manifestos. Additionally, because the training data is contemporary (2017–2021), the model's performance on historical political texts (diachronic shift) remains an open question. Future work will focus on integrating narrative role labeling into the automated pipeline and exploring better domain adaptation techniques.
By releasing the MFiP corpus and models, we provide a new foundation for analyzing the subtle but powerful role of morality in political communication.
Summary updated