Hostname: page-component-76d6cb85b7-5qg8f Total loading time: 0 Render date: 2026-07-14T03:48:38.319Z Has data issue: false hasContentIssue false

Detecting Group Mentions in Political Rhetoric A Supervised Learning Approach

Published online by Cambridge University Press:  01 September 2025

Hauke Licht*
Affiliation:
Department of Political Science and Digital Science Center, University of Innsbruck, Innsbruck, Austria
Ronja Sczepanski
Affiliation:
Centre for European Studies and Comparative Research, Sciences Po Paris, Paris, France
*
Corresponding author: Hauke Licht; Email: hauke.licht@uibk.ac.at
Rights & Permissions [Opens in a new window]

Abstract

Politicians appeal to social groups to court their electoral support. However, quantifying which groups politicians refer to, claim to represent, or address in their public communication presents researchers with challenges. We propose a supervised learning approach for extracting group mentions from political texts. We first collect human annotations to determine the passages of a text that refer to social groups. We then fine-tune a transformer language model for contextualized supervised classification at the word level. Applied to unlabeled texts, our approach enables researchers to automatically detect and extract word spans that contain group mentions. We illustrate our approach in two applications, generating new empirical insights into how British parties use social groups in their rhetoric. Our method allows for detecting and extracting mentions of social groups from various sources of texts, creating new possibilities for empirical research in political science.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Figure 1. Unique n-grams in human-annotated data collected by Thau (2019) and in the Dolinsky-Huber-Horne (DHH) dictionary compiled by Dolinsky et al. (2023) by social group category.

Figure 1

Table 1. Examples of group mentions in sentences drawn from British mainstream party manifestos: the highlighted text spans the identified groups mentioned in each sentence

Figure 2

Figure 2. From sentence annotation to extracted mention. Highlighted spans are converted into token-level labels. Labels ‘B’ and ‘I’ indicate tokens that are at the ‘beginning’ or ‘inside’, the ‘O’ those outside of a group mention. The token classifier predicts label probabilities, which indicate a token’s most likely label. Predicted mentions can be determined from token-level predicted labels.

Figure 3

Table 2. Summary of test set performances of DeBERTa group mention detection classifiers fine-tuned and evaluated on our corpus of labeled UK manifesto sentences. Values (in brackets) report the average (90 per cent quantile range) of performances of 25 different classifiers fine-tuned in a 5-times repeated 5-fold cross-validation scheme. Columns distinguish between different evaluation schemes (i.e., different ways to compute the eval. metrics)

Figure 4

Figure 3. Cross-validation of RoBERTa group mentions detection classifier’s predictions against data collected by Thau (2019). Figure compares the numbers of social group mentions identified in a manifesto by Thau (2019, see x-axis) and our classifier (y-axis) in Labour and Conservative party manifestos (1964–2015). Colors indicate parties. The correlation coefficient (with 95 per cent confidence interval) is shown in the top left of the plot panel.

Figure 5

Figure 4 Summary of test set performances in cross-party, cross-lingual, and cross-domain transfer, respectively. The y-axis indicates the performance of classifiers trained on annotated manifesto sentences from the source context (for example, British manifestos) when evaluated on sentences from the target context (for example, German manifestos) in terms of the seqeval F1 score. Points (line ranges) report the average ($pm$ 1 std. dev.) of performances of 5 different classifiers trained with different random seeds. Cross-party and cross-domain transfer results are based on fine-tuning DeBERTa models, and cross-lingual transfer results are based on fine-tuning XLM-RoBERta models.

Figure 6

Figure 5. Social group mentions in Labour and Conservative party manifestos (1983-2015) by Comparative Agendas Project (CAP) policy topic. Note: Sentences CAP-coded using multiclass classifier trained on human-labeled manifestos of same cases (Jennings et al., 2011) Infrequent CAP policy topics grouped into the ‘other’ category. Topic ‘Immigration’ recoded to topic ‘Civil Rights, Minority Issues, Immigration and Civil Liberties.’

Figure 7

Figure 6. Different pairs of parties in terms of the words and phrases that distinguish the social groups the mention in their manifestos for the elections 2015, 2017, and 2019. Note:$z$-scores indicate words ‘distinctiveness’ and have been obtained by applying the ‘fightin’ words’ method proposed by Monroe et al. (2008) to the social group mentions retrieved by our classifier.

Figure 8

Figure 7. Estimates from logistic regressions analyzing whether sentences that contain group mentions are more likely to contain emotion words. The x-axis reports our estimates of the odds that a sentence contains emotional language when it contains at least one social group mention compared to when it contains no social group mention. Points (line ranges) report the coefficients point estimates (95 per cent confidence intervals) of logistic regression models. The y-axis values differentiate between different emotion dictionary categories.

Supplementary material: File

Licht and Sczepanski supplementary material

Licht and Sczepanski supplementary material
Download Licht and Sczepanski supplementary material(File)
File 634.2 KB
Supplementary material: Link

Licht and Sczepanski Dataset

Link