Analyzing Offensive Language and Hate Speech in Political Discourse: A Case Study of German Politicians

Maximilian Weissenbacher, Udo Kruschwitz


Abstract
Social media platforms have become key players in political discourse. Twitter (now ‘X’), for example, is used by many German politicians to communicate their views and interact with others. Due to its nature, however, social networks suffer from a number of issues such as offensive content, toxic language and hate speech. This has attracted a lot of research interest but in the context of political discourse there is a noticeable gap with no such study specifically looking at German politicians in a systematic way. We aim to help addressing this gap. We first create an annotated dataset of 1,197 Twitter posts mentioning German politicians. This is the basis to explore a number of approaches to detect hate speech and offensive language (HOF) and identify an ensemble of transformer models that achieves an F1-Macros score of 0.94. This model is then used to automatically classify two much larger, longitudinal datasets: one with 520,000 tweets posted by MPs, and the other with 2,200,000 tweets which comprise posts from the public mentioning politicians. We obtain interesting insights in regards to the distribution of hate and offensive content when looking at different independent variables.
Anthology ID:
2024.trac-1.8
Volume:
Proceedings of the Fourth Workshop on Threat, Aggression & Cyberbullying @ LREC-COLING-2024
Month:
May
Year:
2024
Address:
Torino, Italia
Editors:
Ritesh Kumar, Atul Kr. Ojha, Shervin Malmasi, Bharathi Raja Chakravarthi, Bornini Lahiri, Siddharth Singh, Shyam Ratan
Venues:
TRAC | WS
SIG:
Publisher:
ELRA and ICCL
Note:
Pages:
60–72
Language:
URL:
https://aclanthology.org/2024.trac-1.8
DOI:
Bibkey:
Cite (ACL):
Maximilian Weissenbacher and Udo Kruschwitz. 2024. Analyzing Offensive Language and Hate Speech in Political Discourse: A Case Study of German Politicians. In Proceedings of the Fourth Workshop on Threat, Aggression & Cyberbullying @ LREC-COLING-2024, pages 60–72, Torino, Italia. ELRA and ICCL.
Cite (Informal):
Analyzing Offensive Language and Hate Speech in Political Discourse: A Case Study of German Politicians (Weissenbacher & Kruschwitz, TRAC-WS 2024)
Copy Citation:
PDF:
https://preview.aclanthology.org/naacl24-info/2024.trac-1.8.pdf