JOURNAL OF SCIENCE AND SOCIAL RESEARCH
Vol. 9 No. 2 (2026): April 2026

ANALISIS SENTIMEN MASYARAKAT TERHADAP KEBIJAKAN PEMBERANTASAN JUDI ONLINE DI INDONESIA MENGGUNAKAN NATURAL LANGUAGE PROCESSING PADA MEDIA SOSIAL

Irwansyah Putera Sitorus (Unknown)
Muhammad Irfan Sarif (Unknown)
Nurlina Sari Harahap (Unknown)



Article Info

Publish Date
08 May 2026

Abstract

The rapid growth of online gambling in Indonesia has become a serious social problem, prompting the government to implement various eradication policies. This study aims to analyze public sentiment toward Indonesia's online gambling eradication policy using Natural Language Processing (NLP) techniques on social media data collected from YouTube. A total of 237 comments were gathered and processed through preprocessing stages including cleaning, normalization, stopword removal, and stemming using the Sastrawi library. Sentiment labeling was performed using a weighted lexicon-based approach with 600+ sentiment words. Classification was conducted using three models—Random Forest, Linear SVM, and Logistic Regression—with SMOTE applied for class balancing and 5-fold cross-validation for robustness evaluation. The best model, Linear SVM, achieved an accuracy of 97.92% and a CV score of 97.56%. Results showed that 57.4% of public sentiment was neutral, 28.3% positive, and 14.3% negative, indicating that the majority of the public responds to this issue informationally. This study demonstrates that NLP-based sentiment analysis is an effective tool for evaluating public perception of digital policy in Indonesia.

Copyrights © 2026






Journal Info

Abbrev

JSSR

Publisher

Subject

Computer Science & IT Economics, Econometrics & Finance Education Social Sciences

Description

Journal of Science and Social Research is accepts research works from academicians in their respective expertise of studies. Journal of Science and Social Research is platform to disclose the research abilities and promote quality and excellence of young researchers and experienced thoughts towards ...