Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Offensive Language Detection from Arabic Texts

  • Conference paper
  • First Online:
Intelligent Computing (SAI 2024)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 1018))

Included in the following conference series:

  • 189 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 159.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. 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

  2. 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)

    Google Scholar 

  3. 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)

    Google Scholar 

  4. 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

    Article  Google Scholar 

  5. https://www.lawinsider.com/dictionary/offensive-language. Accessed Aug 2023

  6. https://www.primelawyers.com.au/criminal-law/public-order-offences/offensive-language . Accessed Aug 2023

  7. 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

    Google Scholar 

  8. https://github.com/shammur/Arabic-Offensive-Multi-Platform-SocialMedia-Comment-Dataset

  9. 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

  10. Habash, N.Y.: Synthesis Lectures on Human Language Technologies, vol. 3. Morgan & Claypool Publishers, San Rafael (2010). https://doi.org/10.2200/S00277ED1V01Y201008HLT010

  11. 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)

    Google Scholar 

  12. 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

  13. 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

    Article  Google Scholar 

  14. 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

    Chapter  Google Scholar 

  15. 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

    Chapter  Google Scholar 

  16. 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)

    Google Scholar 

  17. 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)

    Google Scholar 

  18. Haralambous, Y., Lenca, P.: Text classification using association rules, dependency pruning and hyperonymization. arXiv Preprint arXiv:1407.7357 (2014)

  19. Xu, W., Rudnicky, A.: Can artificial neural networks learn language models? In: International Conference on Statistical Language Processing, pp. 202–205 (2000)

    Google Scholar 

  20. 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)

    Google Scholar 

  21. 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)

    Google Scholar 

  22. 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)

    Google Scholar 

  23. Caselli, T., Basile, V., Mitrovi_c, J., Granitzer, M.: Hatebert: retraining BERT for abusive language detection in English. arXiv preprint, arXiv:2010.12472 (2020)

  24. 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

  25. 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)

    Google Scholar 

  26. 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)

    Google Scholar 

  27. 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)

    Google Scholar 

  28.  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

  29. Tomas Mikolov, T., Sutskever, I., Chen, K., Corrado, G., Dean, J.: Distributed representations of words and phrase compositionality. arXiv:1310.4546v1 (2013)

  30. 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

  31. 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

  32. 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)

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Arafat A. Awajan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics