Abstract
Detecting and addressing covert hate speech poses significant challenges in online platforms where discriminatory messages are often disguised within seemingly innocuous content. In this study, we investigate the effectiveness of contextual analysis in bypassing the nuances of covert hate speech. Our research explores the impact of prompt engineering and context addition on the classification of overt and covert hate speech across diverse target groups, including Roma, migrants, LGBTQ+, and individuals of African descent. Through experimental trials using generative models like GPT-3.5 and GPT-4, our findings reveal that the addition of context, not only improves the overall performance of the models in general hate speech (from 75.0% to 79.6% F1 score, for the positive class), but also significantly improves the classification of covert hate speech, increasing True Positives by 21.64% (absolute) compared to the 6.5% in overt hate speech. Despite these improvements, the addition of context also increased the number of False Positives, indicating that a further refinement is needed for this contextual analysis. Moreover, target group analysis demonstrates a correlation between the prevalence of covert hate speech and model performance.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
References
Baider, F.: Pragmatics lost?: Overview, synthesis and proposition in defining online hate speech. Pragmat. Soc. 11(2), 196–218 (2020). https://doi.org/10.1075/ps.20004.bai
Baider, F.: Covert hate speech, conspiracy theory and anti-semitism: linguistic analysis versus legal judgement. Int. J. Semiot. Law - Revue internationale de Sémiotique juridique 35, 1–25 (2022). https://doi.org/10.1007/s11196-022-09882-w
Baider, F., Constantinou, M.: Covert hate speech: a contrastive study of Greek and Greek Cypriot online discussions with an emphasis on irony. J. Lang. Aggress. Confl. 8(2), 262–287 (2020). https://doi.org/10.1075/jlac.00040.bai
Carvalho, P., Matos, B., Santos, R., Batista, F., Ribeiro, R.: Hate speech dynamics against African descent, Roma and LGBTQ+ communities in Portugal. In: Proceedings of the 13th Conference on Language Resources and Evaluation (LREC 2022). European Language Resources Association (ELRA) (2022)
Carvalho, P., Caled, D., Silva, C., Batista, F., Ribeiro, R.: The expression of hate speech against Afro-descendant, Roma, and LGBTQ+ communities in Youtube comments. J. Lang. Aggress. Confl. (2023). https://doi.org/10.1075/jlac.00085.car
Carvalho, P., Guerra, R.: D3.2/D3.3 Annotation Guidelines OHS & OCS. Technical report, Iscte-Instituto Universitário de Lisboa, May 2023
Casavantes, M., Aragón, M., González, L., Montes-y Gómez, M.: Leveraging posts and authors metadata to spot several forms of abusive comments in Twitter. J. Intell. Inf. Syst. 61(2), 519–539 (2023). https://doi.org/10.1007/s10844-023-00779-z
Chen, L., Zaharia, M., Zou, J.: How is ChatGPT’s behavior changing over time? (2023)
Chiu, K.L., Collins, A., Alexander, R.: Detecting hate speech with GPT-3 (2022)
Fortuna, P., Rocha da Silva, J., Soler-Company, J., Wanner, L., Nunes, S.: A hierarchically-labeled Portuguese hate speech dataset. In: Proceedings of the Third Workshop on Abusive Language Online. pp. 94–104. Association for Computational Linguistics, Florence, Italy, August 2019.https://doi.org/10.18653/v1/W19-3510. https://aclanthology.org/W19-3510
Giacomo Marzi, M.B., MArchiori, D.: K-alpha calculator Krippendorff’s alpha calculator: a user-friendly tool for computing Krippendorff’s alpha inter-rater reliability coefficient. Methods X 12 (2024)
Krobová, T., Zàpotocký, J.: I am not racist, but ...: rhetorical fallacies in arguments about the refugee crisis on Czech Facebook. J. Intercult. Commun. 21(2), 58–69 (2021). https://doi.org/10.36923/jicc.v21i2.14. https://immi.se/index.php/intercultural/article/view/14
Magu, R., Luo, J.: Determining code words in euphemistic hate speech using word embedding networks. In: Proceedings of the 2nd Workshop on Abusive Language Online (ALW2), Brussels, Belgium, pp. 93–100. Association for Computational Linguistics, October 2018. https://doi.org/10.18653/v1/W18-5112. https://aclanthology.org/W18-5112
Marco, M.A.: Rhetorical questions as reproaching devices. J. Lang. Aggress. Confl. 11(2), 176–199 (2023). https://doi.org/10.1075/jlac.00077.alb
Matos, B.C., Santos, R.B., Carvalho, P., Ribeiro, R., Batista, F.: Comparing different approaches for detecting hate speech in online Portuguese comments. In: 11th Symposium on Languages, Applications and Technologies (SLATE 2022). Open Access Series in Informatics (OASIcs), vol. 104, pp. 10:1–10:12. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2022). https://doi.org/10.4230/OASIcs.SLATE.2022.10
Media Smarts: Impact of Online Hate (2021). https://mediasmarts.ca/online-hate/impact-online-hate
Oliveira, A., Cecote, T., Silva, P., Castro Gertrudes, J., Freitas, V., Luz, E.: How good is chatGPT for detecting hate speech in portuguese? In: Anais do Simpósio Brasileiro de Tecnologia da Informação e da Linguagem Humana (STIL), pp. 94–103, September 2023. https://doi.org/10.5753/stil.2023.233943
Perez, Jet al.: Assessing the impact of contextual information in hate speech detection. IEEE Access 11, 30575–30590 (2023). https://doi.org/10.1109/ACCESS.2023.3258973
Poletto, F., Basile, V., Sanguinetti, M., Bosco, C., Patti, V.: Resources and benchmark corpora for hate speech detection: a systematic review. Lang. Resour. Eval. 55(2), 477–523 (2021). https://doi.org/10.1007/s10579-020-09502-8
Li, Q., et al.: A survey on text classification: from traditional to deep learning. ACM Trans. Intell. Syst. Technol. 13(2), 1–41 (2022). https://doi.org/10.1145/3495162
Santos, R.B., Matos, B.C., Carvalho, P., Batista, F., Ribeiro, R.: Semi-supervised annotation of Portuguese hate speech across social media domains. In: 11th Symposium on Languages, Applications and Technologies (SLATE 2022). Open Access Series in Informatics (OASIcs), vol. 104, pp. 11:1–11:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2022). https://doi.org/10.4230/OASIcs.SLATE.2022.11
Statista: Number of social media users worldwide from 2017 to 2027, August 2023. https://www.statista.com/statistics/278414/number-of-worldwide-social-network-users/
Tynes, B.M., Giang, M.T., Williams, D.R., Thompson, G.N.: Online racial discrimination and psychological adjustment among adolescents. J. Adolesc. Health Off. Publ. Soc. Adolesc. Med. 43(6), 565–569 (2008). https://doi.org/10.1016/j.jadohealth.2008.08.021
Vaswani, A., et al.: Attention is all you need. In: Advances in Neural Information Processing Systems, vol. 30. Curran Associates, Inc., Long Beach (2017). https://doi.org/10.48550/arXiv.1706.03762
Watanabe, H., Bouazizi, M., Ohtsuki, T.: Hate speech on Twitter: a pragmatic approach to collect hateful and offensive expressions and perform hate speech detection. IEEE Access 6, 13825–13835 (2018). https://doi.org/10.1109/ACCESS.2018.2806394
Acknowledgement
This work was funded in part by the European Union under Grant CERV-2021-EQUAL (101049306). However, the views and opinions expressed are those of the author(s) only and do not necessarily reflect those of the European Union or Knowhate Project. Neither the European Union nor the Knowhate Project can be held responsible.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2025 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Ramos, G. et al. (2025). Bypassing the Nuances of Portuguese Covert Hate Speech Through Contextual Analysis. In: Santos, M.F., Machado, J., Novais, P., Cortez, P., Moreira, P.M. (eds) Progress in Artificial Intelligence. EPIA 2024. Lecture Notes in Computer Science(), vol 14969. Springer, Cham. https://doi.org/10.1007/978-3-031-73503-5_20
Download citation
DOI: https://doi.org/10.1007/978-3-031-73503-5_20
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-73502-8
Online ISBN: 978-3-031-73503-5
eBook Packages: Computer ScienceComputer Science (R0)