SarcasTraps: Effect of Sarcasm on Turkish Hate Speech Detection
Organizations: Sabanci University Istanbul, Türkiye
Abstract
Standard hate speech detection datasets often emphasize explicit harmful language, but directed harm can also be expressed indirectly, without clearly hateful wording. Sarcasm is one such form of indirect expression, as it can convey harmful intent through mock praise, exaggeration, humor, or apparent politeness. In this paper, we introduce SarcasTraps, a targeted external test set for analyzing the effect of sarcasm on Turkish hate speech detection. SarcasTraps contains 479 entries annotated along two dimensions: hate speech and sarcasm. We train classifiers using BERTurk and XLM-RoBERTa on two existing Turkish hate speech datasets and evaluate them on SarcasTraps, using it strictly as an external test set. We also evaluate GPT-4.1 and Llama-3.3-70B in a zero-shot setting on SarcasTraps. Results show that sarcasm substantially affects hate speech detection. Fine-tuned encoder models lose recall on sarcastic hate, while zero-shot LLMs maintain higher recall but suffer substantial precision drops on sarcastic examples. These findings show that both fine-tuned hate speech detectors and zero-shot LLMs struggle when sarcasm is involved, and SarcasTraps provides quantitative evidence of this challenge through a targeted Turkish test set. Due to the presence of sensitive and hateful language, SarcasTraps will be shared upon request for academic research purposes. Warning: This paper has examples from the dataset which contains offensive and hateful content towards groups of people.
Figures & tables
| Title | Entry | H | S |
|---|---|---|---|
| Turkish and Greek soldiers swearing at each other | Made me laugh. Trash talk like this is better than actually fighting. | 0 | 0 |
| Do the Freemasons or the Jews rule the world? | Minibus drivers and taxi drivers rule the world. | 0 | 1 |
| A message for Afghans and Pakistanis | First of all, you are not our brothers. We don’t have predatory, dishonorable brothers like you. Leave. Get the f*** out of our country. | 1 | 0 |
| The invasion of Caddebostan Beach by Syrians | Oh, but they are Ansar; they are our brothers. What’s the big deal if they went into the sea in a chador, or if their men disturbed the peace of society? There is a war! They got tired while fleeing the war; shouldn’t they enjoy the beach a little bit? | 1 | 1 |
| Model | In-domain Test | SarcasTraps (0), | ||||||
|---|---|---|---|---|---|---|---|---|
| Acc. | Prec. | Rec. | F1 | Acc. | Prec. | Rec. | F1 | |
| BERTurk | 0.831 0.010 | 0.704 0.017 | 0.684 0.058 | 0.693 0.030 | 0.817 0.009 | 0.871 0.016 | 0.787 0.011 | 0.827 0.007 |
| BERTurk | 0.940 0.004 | 0.886 0.010 | 0.852 0.017 | 0.869 0.009 | 0.812 0.020 | 0.838 0.018 | 0.818 0.042 | 0.828 0.022 |
| XLM-RoBERTa | 0.823 0.005 | 0.689 0.016 | 0.673 0.013 | 0.680 0.007 | 0.778 0.028 | 0.898 0.020 | 0.675 0.046 | 0.770 0.034 |
| XLM-RoBERTa | 0.916 0.006 | 0.854 0.009 | 0.771 0.040 | 0.810 0.019 | 0.746 0.027 | 0.854 0.034 | 0.655 0.041 | 0.740 0.031 |
| Model | SarcasTraps (0), | SarcasTraps (1), | ||||||
|---|---|---|---|---|---|---|---|---|
| Acc. | Prec. | Rec. | F1 | Acc. | Prec. | Rec. | F1 | |
| BERTurk | 0.817 0.009 | 0.871 0.016 | 0.787 0.011 | 0.827 0.007 | 0.630 0.026 | 0.692 0.034 | 0.372 0.063 | 0.483 0.060 |
| BERTurk | 0.812 0.020 | 0.838 0.018 | 0.818 0.042 | 0.828 0.022 | 0.597 0.007 | 0.604 0.014 | 0.404 0.045 | 0.483 0.031 |
| XLM-RoBERTa | 0.778 0.028 | 0.898 0.020 | 0.675 0.046 | 0.770 0.034 | 0.623 0.013 | 0.746 0.024 | 0.294 0.030 | 0.421 0.032 |
| XLM-RoBERTa | 0.746 0.027 | 0.854 0.034 | 0.655 0.041 | 0.740 0.031 | 0.536 0.020 | 0.509 0.035 | 0.317 0.009 | 0.390 0.014 |
| GPT-4.1 Zero Shot | 0.878 | 0.826 | 0.987 | 0.899 | 0.622 | 0.566 | 0.819 | 0.670 |
Hate Speech Detection
Hate Speech Detection identifies hateful or abusive language, its targets and intent, to support safer and more accountable content moderation.
See all 98 papers