Skip to main content
Log in

Contribution to the Moroccan Darija sentiment analysis in social networks

  • Original Article
  • Published:
Social Network Analysis and Mining Aims and scope Submit manuscript

Abstract

With the rise of social media, there has been a growing interest in developing automatic sentiment analysis and opinion mining tools for natural language processing (NLP). However, most of the current research focuses on Indo-European languages, particularly English. However, a large community of people who use dialectics is not being adequately served by these existing tools. To our knowledge, there is currently no publicly available dataset for sentiment analysis specifically for the Moroccan dialect (MAD) that covers all social networks. In this work, we aim to address this issue by focusing on sentiment analysis for the Moroccan Arabic dialect (Darija), by creating a large and high-quality dataset of Moroccan dialectal text extracted from different social media (Facebook, Twitter, YouTube, Instagram and Web site) that covers a wide range of domains including sports, arts, politics, education and society. It is characterized by its size, quality, and variety, and involves experimenting with different machine learning algorithms, feature extraction models, and testing the transformer-based model (BERT).

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18

Similar content being viewed by others

Data availability

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

References

  • Abdelminaam DS, Neggaz N, Gomaa IAE et al (2021) Arabicdialects: an efficient framework for arabic dialects opinion mining on twitter using optimized deep neural networks. IEEE Access 9:97079–97099

    Article  Google Scholar 

  • Abdul-Mageed M (2015) Subjectivity and sentiment analysis of arabic as a morophologically-rich language. PhD thesis, Indiana University

  • Abdulla NA, Ahmed NA, Shehab MA, et al (2013) Arabic sentiment analysis: Lexicon-based and corpus-based. In: 2013 IEEE Jordan conference on applied electrical engineering and computing technologies (AEECT) , IEEE, pp 1–6

  • Abu Kwaik K, Saad M, Chatzikyriakidis S, et al (2019) Lstm-cnn deep learning model for sentiment analysis of dialectal arabic. In: Arabic language processing: from theory to practice: 7th international conference, ICALP 2019, Nancy, France, October 16–17, 2019, Proceedings 7, Springer, pp 108–121

  • Akerkar R, Sajja P (2009) Knowledge-based systems. Jones & Bartlett Publishers, Sudbury

    Google Scholar 

  • Al-Ayyoub M, Essa SB, Alsmadi I (2015) Lexicon-based sentiment analysis of Arabic tweets. Int J Soc Netw Min 2(2):101–114. https://doi.org/10.1504/IJSNM.2015.072280

    Article  Google Scholar 

  • Al-Horaibi L, Khan M (2016) Sentiment analysis of arabic tweets using text mining techniques. p 100111F, https://doi.org/10.1117/12.2242187

  • Al-Twairesh N, Al-Khalifa H, Al-Salman A et al (2017) Arasenti-tweet: a corpus for Arabic sentiment analysis of Saudi tweets. Proc Comput Sci 117:63–72. https://doi.org/10.1016/j.procs.2017.10.094

    Article  Google Scholar 

  • Almars AM, Atlam ES, Noor TH et al (2022) Users opinion and emotion understanding in social media regarding Covid-19 vaccine. Computing 104(6):1481–1496. https://doi.org/10.1007/s00607-022-01062-9

    Article  Google Scholar 

  • Alnawas A, Arici N (2018) The corpus based approach to sentiment analysis in modern standard Arabic and Arabic dialects: a literature review. Politeknik Dergisi 21(2):461–470

    Google Scholar 

  • Baly R, El-Khoury G, Moukalled R et al (2017) Comparative evaluation of sentiment analysis methods across Arabic dialects. Proc Comput Sci 117:266–273. https://doi.org/10.1016/j.procs.2017.10.118

    Article  Google Scholar 

  • Ben Salamah J, Elkhlifi A (2014) Microblogging opinion mining approach for kuwaiti dialect. In: International conference of computer technology and information management, pp 388–396

  • Bettiche M, Mouffok MZ, Zakaria C (2018) Opinion mining in social networks for algerian dialect. In: Information processing and management of uncertainty in knowledge-based systems. Applications: 17th international conference, IPMU 2018, Cádiz, Spain, June 11-15, 2018, Proceedings, Part III 17, Springer, pp 629–641

  • Brachemi-Meftah S, Barigou F, Djendara A et al (2022) Impact of dimensionality reduction on sentiment analysis of algerian dialect. In: 2022 IEEE 9th international conference on sciences of electronics. Technologies of information and telecommunications (SETIT), IEEE, pp 433–440

  • Duwairi R (2015). Sentiment analysis for dialectical arabic. https://doi.org/10.1109/IACS.2015.7103221

  • Duwairi R, Al-Refai M, Khasawneh N (2007) Stemming versus light stemming as feature selection techniques for arabic text categorization. In: 2007 Innovations in information technologies (IIT) , pp 446–450, https://doi.org/10.1109/IIT.2007.4430403

  • El Abdouli A, Hassouni L, Anoun H (2017) Mining tweets of moroccan users using the framework Hadoop, NLP, K-means and basemap. In: 2017 Intelligent systems and computer vision (ISCV) , IEEE, pp 1–7

  • El-Beltagy SR, El Kalamawy M, Soliman AB (2017) NileTMRG at SemEval-2017 task 4: Arabic sentiment analysis. In: Proceedings of the 11th international workshop on semantic evaluation (SemEval-2017) . Association for computational Linguistics, Vancouver, Canada, pp 790–795, https://doi.org/10.18653/v1/S17-2133,. https://aclanthology.org/S17-2133/

  • El-Masri M, Altrabsheh N, Mansour H et al (2017) A web-based tool for Arabic sentiment analysis. Proc Comput Sci 117:38–45. https://doi.org/10.1016/j.procs.2017.10.092

    Article  Google Scholar 

  • Garouani M, Kharroubi J (2022a) Mac: an open and free Moroccan arabic corpus for sentiment analysis. In: Innovations in smart cities applications volume 5: the proceedings of the 6th international conference on smart city applications, Springer, pp 849–858

  • Garouani M, Kharroubi J (2022b) Towards a new lexicon-based features vector for sentiment analysis: application to moroccan Arabic tweets. In: Advances in information, communication and cybersecurity: proceedings of ICI2C’21, Springer, pp 67–76

  • Garouani M, Chrita H, Kharroubi J (2021) Sentiment analysis of Moroccan tweets using text mining. In: Digital technologies and applications: proceedings of ICDTA 21, Fez, Morocco. Springer, p 597–608

  • Heikal M, Torki M, El-Makky N (2018) Sentiment analysis of Arabic tweets using deep learning. Proc Comput Sci 142:114–122. https://doi.org/10.1016/j.procs.2018.10.466

    Article  Google Scholar 

  • Mataoui M, Zelmati O, Boumechache M (2016) A proposed lexicon-based sentiment analysis approach for the vernacular Algerian Arabic. Res Comput Sci 110(1):55–70

    Article  Google Scholar 

  • Mazari AC, Djeffal A (2022) Sentiment analysis of Algerian dialect using machine learning and deep learning with word2vec. Informatica. https://doi.org/10.31449/inf.v46i6.3340

    Article  Google Scholar 

  • Mdhaffar S, Bougares F, Esteve Y, et al (2017) Sentiment analysis of tunisian dialects: Linguistic ressources and experiments. In: Third Arabic natural language processing workshop (WANLP) , pp 55–61

  • Mihi S, Ait B, El I et al (2020) MSTD: Moroccan sentiment twitter dataset. Int J Adv Comput Sci Appl 11(10):363–372

    Google Scholar 

  • Nabil M, Aly M, Atiya A (2015) ASTD: Arabic sentiment tweets dataset. In: Proceedings of the 2015 conference on empirical methods in natural language processing, pp 2515–2519

  • Pradeep (2023) Top machine learning algorithms: supervised and unsupervised method. https://medium.com/@er.iit.pradeep09/exploring-the-world- of-machine-learning-algorithms-supervised-and-unsupervised-method-5ac116c4f1e4

  • Rodríguez-Ibánez M, Casánez-Ventura A, Castejón-Mateos F et al (2023) A review on sentiment analysis from social media platforms. Expert Syst App 223(119):862. https://doi.org/10.1016/j.eswa.2023.119862

    Article  Google Scholar 

  • Shoukry A, Rafea A (2012) Preprocessing Egyptian dialect tweets for sentiment mining. In: Fourth workshop on computational approaches to arabic-script-based languages. Association for machine translation in the Americas, San Diego, California, USA, pp 47–56, https://aclanthology.org/2012.amta-caas14.7

Download references

Funding

We, the authors, declare we have not received any funding or grant for this work.

Author information

Authors and Affiliations

Authors

Contributions

SEO conceived this research, designed experiments and interpreted the data. SEO and EWD participated in the revisions and the supervision of the study and the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Sara El Ouahabi.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Ethical approval

This article does not contain any studies with human participants or animals performed by any.

Consent to participate

Not applicable.

Consent for publication

Not applicable.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

El Ouahabi, S., El Ouahabi, S. & Dadi, E.W. Contribution to the Moroccan Darija sentiment analysis in social networks. Soc. Netw. Anal. Min. 13, 138 (2023). https://doi.org/10.1007/s13278-023-01129-1

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s13278-023-01129-1

Keywords

Navigation