Automatic Vulgar Word Extraction Method with Application to Vulgar Remark Detection in Chittagonian Dialect of Bangla
Source abstract
Abstract
The proliferation of the internet, especially on social media platforms, has amplified the prevalence of cyberbullying and harassment. Addressing this issue involves harnessing natural language processing (NLP) and machine learning (ML) techniques for the automatic detection of harmful content. However, these methods encounter challenges when applied to low-resource languages like the Chittagonian dialect of Bangla. This study compares two approaches for identifying offensive language containing vulgar remarks in Chittagonian. The first relies on basic keyword matching, while the second employs machine learning and deep learning techniques. The keyword-matching approach involves scanning the text for vulgar words using a predefined lexicon. Despite its simplicity, this method establishes a strong foundation for more sophisticated ML and deep learning approaches. An issue with this approach is the need for constant updates to the lexicon. To address this, we propose an automatic method for extracting vulgar words from linguistic data, achieving near-human performance and ensuring adaptability to evolving vulgar language. Insights from the keyword-matching method inform the optimization of machine learning and deep learning-based techniques. These methods initially train models to identify vulgar context using patterns and linguistic features from labeled datasets. Our dataset, comprising social media posts, comments, and forum discussions from Facebook, is thoroughly detailed for future reference in similar studies. The results indicate that while keyword matching provides reasonable results, it struggles to capture nuanced variations and phrases in specific vulgar contexts, rendering it less robust for practical use. This contradicts the assumption that vulgarity solely relies on specific vulgar words. In contrast, methods based on deep learning and machine learning excel in identifying deeper linguistic patterns. Comparing SimpleRNN models using Word2Vec and fastText embeddings, which achieved accuracies ranging from 0.84 to 0.90, logistic regression (LR) demonstrated remarkable accuracy at 0.91. This highlights a common issue with neural network-based algorithms, namely, that they typically require larger datasets for adequate generalization and competitive performance compared to conventional approaches like LR.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Hate Speech and Cyberbullying Detection · Sentiment Analysis and Opinion Mining · Swearing, Euphemism, Multilingualism
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Text Information Processing Laboratory, Kitami Institute of Technology, Kitami 090-8507, Japan
Department of Computer Science and Engineering, Rangamati Science and Technology University, Rangamati 4500, Bangladesh
References (91)
Show source-provided references
1. (2023, January 15). Bangladesh Telecommunication Regulatory Commission, Available online: http://www.btrc.gov.bd/site/page/347df7fe-409f-451e-a415-65b109a207f5/-.
2. (2023, January 20). United Nations Development Programme. Available online: https://www.undp.org/bangladesh/blog/digital-bangladesh-innovative-bangladesh-road-2041.
3. (2023, April 01). Chittagong City in Bangladesh. Available online: https://en.wikipedia.org/wiki/Chittagong.
4. (2023, April 24). StatCounter Global Stats. Available online: https://gs.statcounter.com/social-media-stats/all/bangladesh/#monthly-202203-202303.
5. (2023, January 28). Facebook. Available online: https://www.facebook.com/.
6. (2023, January 28). imo. Available online: https://imo.im.
7. (2023, January 28). WhatsApp. Available online: https://www.whatsapp.com.
8. (2023, January 28). Addiction Center. Available online: https://www.addictioncenter.com/drugs/social-media-addiction/.
9. (2023, January 28). Prothom Alo. Available online: https://en.prothomalo.com/bangladesh/Youth-spend-80-mins-a-day-in-Internet-adda.
10. (2023, January 28). United Nations. Available online: https://www.un.org/en/chronicle/article/cyberbullying-and-its-implications-human-rights.
11. (2023, January 28). ACCORD—African Centre for the Constructive Resolution of Disputes. Available online: https://www.accord.org.za/conflict-trends/social-media/.
12. Cachola, I., Holgate, E., Preoţiuc-Pietro, D., and Li, J.J. (2018, January 20–26). Expressively vulgar: The socio-dynamics of vulgarity and its effects on sentiment analysis in social media. Proceedings of the 27th International Conference on Computational Linguistics, Santa Fe, NM, USA.
13. An analysis of the pragmatic functions of “swearing” in interpersonal talk
14. Are women really more talkative than men?10.1126/science.1139940 ↗
15. Wang, W., Chen, L., Thirunarayan, K., and Sheth, A.P. (2014, January 15–19). Cursing in English on twitter. Proceedings of the 17th ACM Conference on Computer Supported Cooperative Work & Social Computing, Baltimore, MD, USA.10.1145/2531602.2531734 ↗
16. Holgate, E., Cachola, I., Preoţiuc-Pietro, D., and Li, J.J. (November, January 31). Why swear? Analyzing and inferring the intentions of vulgar expressions. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium.10.18653/v1/D18-1471 ↗
17. (2023, February 11). Chittagonian Language. Available online: https://en.wikipedia.org/wiki/Chittagonian_language.
18. Lewis, M.P. (2009). Ethnologue: Languages of the World, SIL International. [16th ed.].
19. Masica, C.P. (1993). The Indo-Aryan Languages, Cambridge University Press.
20. A coefficient of agreement for nominal scales10.1177/001316446002000104 ↗
21. Measuring the reliability of qualitative text analysis data10.1007/s11135-004-8107-7 ↗
22. Sazzed, S. (2021, January 1–3). A lexicon for profane and obscene text identification in Bengali. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2021), Online.10.26615/978-954-452-072-4_145 ↗
23. Deep Transfer Learning-Based Foot No-Ball Detection in Live Cricket Match10.1155/2023/2398121 ↗
24. Mahmud, T., Barua, K., Barua, A., Das, S., Basnin, N., Hossain, M.S., Andersson, K., Kaiser, M.S., and Sharmen, N. (2023, January 1–3). Exploring Deep Transfer Learning Ensemble for Improved Diagnosis and Classification of Alzheimer’s Disease. Proceedings of the 2023 International Conference on Brain Informatics, Hoboken, NJ, USA.10.1007/978-3-031-43075-6_10 ↗
25. A comprehensive review on deep learning approaches in wind forecasting applications10.1049/cit2.12076 ↗
26. Deep learning for time series forecasting: The electric load case10.1049/cit2.12060 ↗
27. Pinker, S. (2007). The Stuff of Thought: Language as a Window into Human Nature, Penguin.
28. Andersson, L.G., and Trudgill, P. (1990). Bad Language, Blackwell/Penguin Books.
29. Eshan, S.C., and Hasan, M.S. (2017, January 22–24). An application of machine learning to detect abusive bengali text. Proceedings of the 2017 20th International Conference of Computer and Information Technology (ICCIT), Dhaka, Bangladesh.10.1109/ICCITECHN.2017.8281787 ↗
30. Akhter, S. (2018, January 20–22). Social media bullying detection using machine learning on Bangla text. Proceedings of the 2018 10th International Conference on Electrical and Computer Engineering (ICECE), Dhaka, Bangladesh.
31. Emon, E.A., Rahman, S., Banarjee, J., Das, A.K., and Mittra, T. (2019, January 28–30). A deep learning approach to detect abusive bengali text. Proceedings of the 2019 7th International Conference on Smart Computing & Communications (ICSCC), Sarawak, Malaysia.10.1109/ICSCC.2019.8843606 ↗
32. Awal, M.A., Rahman, M.S., and Rabbi, J. (2018, January 27–28). Detecting abusive comments in discussion threads using naïve bayes. Proceedings of the 2018 International Conference on Innovations in Science, Engineering and Technology (ICISET), Chittagong, Bangladesh.10.1109/ICISET.2018.8745565 ↗
33. A technique for perceiving abusive bangla comments
34. Das, M., Banerjee, S., Saha, P., and Mukherjee, A. (2022). Hate Speech and Offensive Language Detection in Bengali. arXiv.
35. Identifying vulgarity in Bengali social media textual content10.7717/peerj-cs.665 ↗
36. Jahan, M., Ahamed, I., Bishwas, M.R., and Shatabda, S. (2019, January 23–24). Abusive comments detection in Bangla-English code-mixed and transliterated text. Proceedings of the 2019 2nd International Conference on Innovation in Engineering and Technology (ICIET), Dhaka, Bangladesh.10.1109/ICIET48527.2019.9290630 ↗
37. Ishmam, A.M., and Sharmin, S. (2019, January 16–19). Hateful speech detection in public facebook pages for the bengali language. Proceedings of the 2019 18th IEEE International Conference on Machine Learning and Applications (ICMLA), Boca Raton, FL, USA.10.1109/ICMLA.2019.00104 ↗
38. Karim, M.R., Dey, S.K., Islam, T., Sarker, S., Menon, M.H., Hossain, K., Hossain, M.A., and Decker, S. (2021, January 6–9). Deephateexplainer: Explainable hate speech detection in under-resourced bengali language. Proceedings of the 2021 IEEE 8th International Conference on Data Science and Advanced Analytics (DSAA), Porto, Portugal.10.1109/DSAA53316.2021.9564230 ↗
39. Sazzed, S. (2021, January 11). Abusive content detection in transliterated Bengali-English social media corpus. Proceedings of the Fifth Workshop on Computational Approaches to Linguistic Code-Switching, Online.10.18653/v1/2021.calcs-1.16 ↗
40. Faisal Ahmed, M., Mahmud, Z., Biash, Z.T., Ryen, A.A.N., Hossain, A., and Ashraf, F.B. (2021). Bangla Text Dataset and Exploratory Analysis for Online Harassment Detection. arXiv.
41. Romim, N., Ahmed, M., Talukder, H., and Islam, S. (2020, January 20–21). Hate speech detection in the bengali language: A dataset and its baseline evaluation. Proceedings of the International Joint Conference on Advances in Computational Intelligence, Dhaka, Bangladesh.10.1007/978-981-16-0586-4_37 ↗
42. An evolutionary approach to comparative analysis of detecting Bangla abusive text10.11591/eei.v10i4.3107 ↗
43. Abusive Bangla comments detection on Facebook using transformer-based deep learning models10.1007/s13278-021-00852-x ↗
44. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019, January 2–7). Bert: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, MI, USA.
45. Clark, K., Luong, M.T., Le, Q.V., and Manning, C.D. (May, January 26). Electra: Pre-training text encoders as discriminators rather than generators. Proceedings of the International Conference on Learning Representations, ICLR 2020, Virtual.
46. (2023, February 15). List of Non-Governmental Organisations in Bangladesh. Available online: https://en.wikipedia.org/wiki/List_of_non-governmental_organisations_in_Bangladesh.
47. Pradhan, R., Chaturvedi, A., Tripathi, A., and Sharma, D.K. (2020). Advances in Data and Information Sciences, Proceedings of ICDIS 2019, Agra, India, 29–30 March 2019, Springer.
48. Hate speech detection in roman urdu10.1145/3414524 ↗
49. Novitasari, S., Lestari, D.P., Sakti, S., and Purwarianti, A. (2018, January 15–17). Rude-Words Detection for Indonesian Speech Using Support Vector Machine. Proceedings of the 2018 International Conference on Asian Language Processing (IALP), Bandung, Indonesia.10.1109/IALP.2018.8629145 ↗
50. Automatic keyphrase extraction from scientific articles10.1007/s10579-012-9210-3 ↗
51. The Automatic Extraction of Web Information Based on Regular Expression10.17706/jsw.12.3.180-188 ↗
52. A survey of text matching techniques10.48084/etasr.3968 ↗
53. Bottom-up relational learning of pattern matching rules for information extraction
54. Brute-force sentence pattern extortion from harmful messages for cyberbullying detection
55. Beliga, S. (2014). Keyword Extraction: A Review of Methods and Approaches, University of Rijeka, Department of Informatics.
56. Improving the precision of the keyword-matching pornographic text filtering method using a hybrid model10.1631/jzus.2004.1106 ↗
57. Liu, F., Pennell, D., Liu, F., and Liu, Y. (June, January 31). Unsupervised approaches for automatic keyword extraction using meeting transcripts. Proceedings of the Human Language Technologies: The 2009 Annual Conference of the North American Chapter of The association for Computational Linguistics, Boulder, CO, USA.10.3115/1620754.1620845 ↗
58. Ptaszynski, M., and Yagahara, A. (2023, January 29). Senmon Yogo Chushutsu Sochi, Senmon yogo Chushutsu hoho Oyobi Puroguramu (Technical Term Extraction Device, Technical Term Extraction Method and Program). (In Japanese).
59. Cyberbullying detection for low-resource languages and dialects: Review of the state of the art10.1016/j.ipm.2023.103454 ↗
60. HEMOS: A novel deep learning-based fine-grained humor detecting method for sentiment analysis of social media10.1016/j.ipm.2020.102290 ↗
61. B-NER: A Novel Bangla Named Entity Recognition Dataset with Largest Entities and Its Baseline Evaluation10.1109/ACCESS.2023.3267746 ↗
62. Improving classifier training efficiency for automatic cyberbullying detection with feature density10.1016/j.ipm.2021.102616 ↗
63. Mahmud, T., Das, S., Ptaszynski, M., Hossain, M.S., Andersson, K., and Barua, K. (2022). Intelligent Computing & Optimization, Proceedings of the 5th International Conference on Intelligent Computing and Optimization 2022 (ICO2022), Virtual, 27–28 October 2022, Springer.
64. Ahmed, T., Mukta, S.F., Al Mahmud, T., Al Hasan, S., and Hussain, M.G. (2022, January 21–23). Bangla Text Emotion Classification using LR, MNB and MLP with TF-IDF & CountVectorizer. Proceedings of the 2022 26th International Computer Science and Engineering Conference (ICSEC), Sakon Nakhon, Thailand.10.1109/ICSEC56337.2022.10049341 ↗
65. (2023, February 23). sklearn.feature_extraction.text.CountVectorizer. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html.
66. Chakraborty, M., and Huda, M.N. (2019, January 3–5). Bangla document categorisation using multilayer dense neural network with tf-idf. Proceedings of the 2019 1st International Conference on Advances in Science, Engineering and Robotics Technology (ICASERT), Dhaka, Bangladesh.10.1109/ICASERT.2019.8934530 ↗
67. (2023, February 23). sklearn.feature_extraction.text.TfidfVectorizer. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html.
68. Rahman, R. (2020, January 19–21). Robust and consistent estimation of word embedding for bangla language by fine-tuning word2vec model. Proceedings of the 2020 23rd International Conference on Computer and Information Technology (ICCIT), Dhaka, Bangladesh.10.1109/ICCIT51783.2020.9392738 ↗
69. Ma, L., and Zhang, Y. (November, January 29). Using Word2Vec to process big text data. Proceedings of the 2015 IEEE International Conference on Big Data (Big Data), Santa Clara, CA, USA.10.1109/BigData.2015.7364114 ↗
70. (2023, February 25). facebookresearch/fastText: Library for Fast Text. Available online: https://github.com/facebookresearch/fastText.
71. (2023, February 25). Research—Meta AI. Available online: https://ai.meta.com/research/.
72. Mojumder, P., Hasan, M., Hossain, M.F., and Hasan, K.A. (2020, January 15–16). A study of fasttext word embedding effects in document classification in bangla language. Proceedings of the Cyber Security and Computer Science: Second EAI International Conference, ICONCS 2020, Dhaka, Bangladesh. Proceedings 2.10.1007/978-3-030-52856-0_35 ↗
73. A comparative analysis of logistic regression, random forest and KNN models for the text classification10.1007/s41133-020-00032-0 ↗
74. Mahmud, T., Ptaszynski, M., and Masui, F. (2023). Vulgar Remarks Detection in Chittagonian Dialect of Bangla. arXiv.
75. Hasanli, H., and Rustamov, S. (2019, January 23–25). Sentiment analysis of Azerbaijani twits using logistic regression, Naive Bayes and SVM. Proceedings of the 2019 IEEE 13th International Conference on Application of Information and Communication Technologies (AICT), Baku, Azerbaijan.10.1109/AICT47866.2019.8981793 ↗
76. Hussain, M.G., Hasan, M.R., Rahman, M., Protim, J., and Al Hasan, S. (2020, January 17–18). Detection of bangla fake news using mnb and svm classifier. Proceedings of the 2020 International Conference on Computing, Electronics & Communications Engineering (iCCECE), Southend, UK.10.1109/iCCECE49321.2020.9231167 ↗
77. Alam, M.R., Akter, A., Shafin, M.A., Hasan, M.M., and Mahmud, A. (2020, January 17–19). Social Media Content Categorization Using Supervised Based Machine Learning Methods and Natural Language Processing in Bangla Language. Proceedings of the 2020 11th International Conference on Electrical and Computer Engineering (ICECE), Dhaka, Bangladesh.10.1109/ICECE51571.2020.9393095 ↗
78. Joyce, J. (2003). Stanford Encyclopedia of Philosophy, Stanford University.
79. Berrar, D. (2018). Bayes’ theorem and naive Bayes classifier. Encycl. Bioinform. Comput. Biol. ABC Bioinform., 403.10.1016/B978-0-12-809633-8.20473-1 ↗
80. An in-depth exploration of Bangla blog post classification10.11591/eei.v10i2.2873 ↗
81. Haydar, M.S., Al Helal, M., and Hossain, S.A. (2018, January 8–9). Sentiment extraction from bangla text: A character level supervised recurrent neural network approach. Proceedings of the 2018 International Conference on Computer, Communication, Chemical, Material and Electronic Engineering (IC4ME2), Rajshahi, Bangladesh.10.1109/IC4ME2.2018.8465606 ↗
82. Handling vanishing gradient problem using artificial derivative10.1109/ACCESS.2021.3054915 ↗
83. Depressed people detection from bangla social media status using lstm and cnn approach10.38032/jea.2021.01.006 ↗
84. Dam, S.K., and Turzo, T.A. (2021, January 17–19). Social Movement Prediction from Bangla Social Media Data Using Gated Recurrent Unit Neural Network. Proceedings of the 2021 5th International Conference on Electrical Information and Communication Technology (EICT), Khulna, Bangladesh.10.1109/EICT54103.2021.9733681 ↗
85. Uddin, A.H., Bapery, D., and Arif, A.S.M. (2019, January 11–12). Depression analysis from social media data in Bangla language using long short term memory (LSTM) recurrent neural network technique. Proceedings of the 2019 International Conference on Computer, Communication, Chemical, Materials and Electronic Engineering (IC4ME2), Rajshahi, Bangladesh.10.1109/IC4ME247184.2019.9036528 ↗
86. A system for affect analysis of utterances in Japanese supported with web mining
87. Ptaszynski, M., Masui, F., Dybala, P., Rzepka, R., and Araki, K. (2013, January 7–9). Open source affect analysis system with extensions. Proceedings of the 1st International Conference on Human–Agent Interaction, iHAI, Sapporo, Japan.
88. ML-Ask: Open source affect analysis software for textual input in Japanese10.5334/jors.149 ↗
89. Ptaszynski, M., Masui, F., Fukushima, Y., Oikawa, Y., Hayakawa, H., Miyamori, Y., Takahashi, K., and Kawajiri, S. (2021). Deep Learning for Information Triage on Twitter. Appl. Sci., 11.10.3390/app11146340 ↗
90. Gray, D.E. (2021). Doing Research in the Real World, Sage.
91. Ethical considerations in social media analytics in the context of migration: Lessons learned from a Horizon 2020 project10.1177/17470161221087542 ↗