Abstract
Detecting offensive language (OL) in social media platforms has become an important task for researchers in natural language processing and understanding. Despite emerging research and efforts to address this problem in many languages, more efforts are still needed to improve the performance of OL detection in Arabic-language contexts. This work investigates the state of the art for both the English and Arabic languages, studies the research communities’ different proposed approaches, and compares their performances. We present new approaches to the use of word-embedding models, where each word has two representations: the first representation describes the target word’s context in offensive texts, while the second represents the context of the word in non-offensive texts. The primary results are promising, with a precision reaching an average of 65% of the detection of OL and around 71% for the identification of non-offensive language.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
dos Santos, C.N., Melnyk, I., Padhi, I.: Fighting Offensive Language on Social Media with Unsupervised Text Style Transfer (2018). arXiv:1805.07685v1 [cs.CL]. Accessed 20 May 2018
Altin, L.S.M.: Identification of offensive language in social media. In: Proceedings of the Doctoral Symposium of the XXXV International Conference of the Spanish Society for Natural Language Processing (SEPLN 2019), pp. 50–55. Bilbao, Spain, 25 September 25 2019 (2019)
Alakrota, A., Murrayb, L., Nikolova, N.S.: Towards accurate detection of offensive language in online communication in Arabic. In: The 4th International Conference on Arabic Computational Linguistics (ACLing 2018) (2018). Procedia Comput. Sci. 142, 315–320 (2018)
Mironczuk, M.M., Protasiewicz, J.: A recent overview of the state-of- the-art elements of text classification. Exp. Syst. Appl. 106(2018), 36–54 (2018). https://doi.org/10.1016/j.eswa.2018.03.058
https://www.lawinsider.com/dictionary/offensive-language. Accessed Aug 2023
https://www.primelawyers.com.au/criminal-law/public-order-offences/offensive-language . Accessed Aug 2023
Chowdhury S. A., Mubarak A., Abdelali A., Jung S., Jansen B., Salminen J., 2020. A Multi-Platform Arabic News Comment Dataset for Offensive Language Detection, Proceedings of the 12th Conference on Language Resources and Evaluation (LREC 2020), pages 6203–6212, Marseille, 11–16 May 2020
https://github.com/shammur/Arabic-Offensive-Multi-Platform-SocialMedia-Comment-Dataset
Husain, F., Uzuner, O.: A survey of offensive language detection for the Arabic language. ACM Trans. Asian Low-Resour. Lang. Inf. Process. 20(1), Article 12, 44 p. (2021). https://doi.org/10.1145/3421504
Habash, N.Y.: Synthesis Lectures on Human Language Technologies, vol. 3. Morgan & Claypool Publishers, San Rafael (2010). https://doi.org/10.2200/S00277ED1V01Y201008HLT010
Balayn, A., Yang, J., Szlavik, Z., Bozzon, A.: Automatic identification of harmful, aggressive, abusive, and offensive language on the web: a survey of technical biases informed by psychology literature. ACM Trans. Soc. Comput. 4(3), Article 11, 56 p. (2021)
Fortuna, P., Nunes, S.: A survey on automatic detection of hate speech in text. ACM Comput. Surv. 51, 4 (2018). https://doi.org/10.1145/3232676
Mohdeb, D., Laifa, M., Zerargui, F., Benzaoui, O.: Evaluating transfer learning approach for detecting Arabic anti-refugee/migrant speech on social media. Aslib J. Inf. Manag. 74(6), 1070–1088 (2022). https://doi.org/10.1108/AJIM-10-2021-0293
Seo, S., Cho, S.-B.: Offensive sentence classification using character-level CNN and transfer learning with fake sentences. In: Liu, D., Xie, S., Li, Y., Zhao, D., El-Alfy, E.S. (eds.) ICONIP 2017. LNCS, vol. 10635, pp. 532–539. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-70096-0_55
Omar, A., Mahmoud, T.M., Abd-El-Hafeez, T.: Comparative performance of machine learning and deep learning algorithms for Arabic hate speech detection in OSNS. In: Hassanien, A.E., Azar, A., Gaber, T., Oliva, D., Tolba, F. (eds.) AICV 2020. AISC, vol. 1153, pp. 247–257. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-44289-7_24
Liu, S., Forss, T.: New classification models for detecting hate and violence web content. In: Proceedings of the 7th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K’15), vol. 1, pp. 487–495. IEEE (2015)
Liu, S., Forss, T.: Combining N-gram based similarity analysis with sentiment analysis in web content classification. In: Proceedings of the International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management, pp. 530–537 (2014)
Haralambous, Y., Lenca, P.: Text classification using association rules, dependency pruning and hyperonymization. arXiv Preprint arXiv:1407.7357 (2014)
Xu, W., Rudnicky, A.: Can artificial neural networks learn language models? In: International Conference on Statistical Language Processing, pp. 202–205 (2000)
Soliman, A.B., Eissa, K., El-Beltagy, S.R.: AraVec: a set of Arabic word embedding models for use in Arabic NLP. In: 3rd International Conference on Arabic Computational Linguistics, ACLing 2017, 5–6 November 2017, Dubai, UAE (2017)
Djuric, N., Zhou, J., Morris, R., Grbovic, M., Radosavljevic, V., Bhamidipati N.: Hate speech detection with comment embeddings. In: Proceedings of the 24th International Conference on World Wide Web. ACM, pp. 29–30 (2015)
Schmidt, A., Wiegand, M.: A survey on hate speech detection using natural language processing. In: Proceedings of the Workshop on Natural Language Processing for Social Media (SocialNLP’17), p. 1 (2017)
Caselli, T., Basile, V., Mitrovi_c, J., Granitzer, M.: Hatebert: retraining BERT for abusive language detection in English. arXiv preprint, arXiv:2010.12472 (2020)
Mubarak, H., Darwish, K., Magdy, W.: Abusive language detection on Arabic social media. In: Proceedings of the 1st Workshop on Abusive Language Online. Association for Computational Linguistics, pp. 52–56 (2017). https://doi.org/10.18653/v1/W17-3008
Mubarak, H., Darwish, K., Magdy, W., Elsayed, T., Al-Khalifa, H.: Overview of OSACT4 Arabic offensive language detection shared task. In: Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection (2020)
Mulki, H., Haddad, H., Ali, C.B., Alshabani, H.: L-hsab: a Levantine Twitter dataset for hate speech and abusive language. In: Proceedings of the Third Workshop on Abusive Language Online, pp. 111–118 (2019)
Maas, A.L., Daly, R.E., Pham, P.T., Huang, D., Ng, A.Y., Potts, C.: Learning word vectors for sentiment analysis. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies. vol. 1, pp. 142–150. Association for Computational Linguistics (2011)
Li, Y., Yang, T.: Word embedding for understanding natural language: a survey. In: Srinivasan, S. (ed.) Guide to Big Data Applications, 1st edn. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-53817-4
Tomas Mikolov, T., Sutskever, I., Chen, K., Corrado, G., Dean, J.: Distributed representations of words and phrase compositionality. arXiv:1310.4546v1 (2013)
Suleiman, D., Awajan, A.: Multilayer encoder and single-layer decoder for abstractive Arabic text summarization. Knowl.-Based Syst. 237(2022), 107791 (2022). https://doi.org/10.1016/j.knosys.2021.107791
Al-Saqqa, S., Awajan, A.: The use of Word2vec model in sentiment analysis: a survey. In: AIRC ‘19: Proceedings of the 2019 International Conference on Artificial Intelligence, Robotics and Control, December 2019. Cairo, Egypt, pp. 39–43 (2019). https://doi.org/10.1145/3388218.3388229
Pennington, J., Socher, R., Manning, C.D.: GloVe: global vectors for word representation. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1532–1543, 25–29 October 2014, Doha, Qatar (2014)
Acknowledgments
This research work was developed during the sabbatical leave I had from Princess Sumaya University for Technology for the year 2021–2022.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Awajan, A.A. (2024). Offensive Language Detection from Arabic Texts. In: Arai, K. (eds) Intelligent Computing. SAI 2024. Lecture Notes in Networks and Systems, vol 1018. Springer, Cham. https://doi.org/10.1007/978-3-031-62269-4_6
Download citation
DOI: https://doi.org/10.1007/978-3-031-62269-4_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-62268-7
Online ISBN: 978-3-031-62269-4
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)