Sentiment Analysis of the Performance of the Legal System in Indonesia Based on Twitter Comments Using the Naïve Bayes Algorithm

Authors

  • Rasiban Rasiban Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika Jakarta
  • Dadang Iskandar Mulyana Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika Jakarta
  • Muhammad Joko Umbaran Kharis Bahrudin Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika Jakarta
  • Nicola Marthy Sekolah Tinggi Ilmu Komputer Cipta Karya Informatika Jakarta

DOI:

https://doi.org/10.62951/ijies.v2i2.84

Keywords:

Legal Performance, Naïve Bayes, Python, Sentiment Analysis, Twitter

Abstract

The development of social media, especially TWITTER, has become one of the main means for people to express opinions and criticism on various issues, including the performance of law in Indonesia. This study aims to analyze public sentiment towards the performance of law based on TWITTER user comments using the Naïve Bayes algorithm. The research data consists of 1004 comments collected from several videos related to legal topics. The analysis process includes the stages of data crawling, pre- processing (text cleaning, normalization, and tokenization), labeling sentiment into positive, negative, and neutral, and testing the Naïve Bayes model. The results show that the Naïve Bayes algorithm is able to classify sentiment with an accuracy level of 93.73%. The distribution of sentiment from 1004 comments shows that the majority of public opinion is (negative/positive/neutral), which indicates that public perception of the performance of law is still (critical/positive). These findings are expected to be input for related parties to understand public opinion and improve the quality of legal performance in Indonesia

References

P. Y. Saputra, D. H. Subhi, F. Zain, and A. Winatama, “IMPLEMENTASI SENTIMEN ANALISIS KOMENTAR CHANNEL VIDEO PELAYANAN PEMERINTAH DI YOUTUBE MENGGUNAKAN ALGORITMA NAÏVE BAYES”.

D. Darwis, N. Siskawati, and Z. Abidin, “Penerapan Algoritma Naive Bayes untuk Analisis Sentimen Review Data Twitter BMKG Nasional,” vol. 15, no. 1.

R. Fajar, S. Program, P. Rekayasa, N. Lunak, and R. Bengkalis, “Implementasi Algoritma Naive Bayes Terhadap Analisis Sentimen Opini Film Pada Twitter,” vol. 3, no. 1.

“Volume 3 Nomor 2 Juli 2021”, [Online]. Available: https://t.co/TIk5mK5bwS

A. N. Badri, N. Noviandi, F. Anastya, and M. Roland, “SENTIMENT ANALISIS UNTUK IDENTIFIKASI KEPUASAN MASYARAKAT TERHADAP KENAIKAN BBM MENGGUNAKAN ALGORITMA NAÏVE BAYES,” JIKO (Jurnal Informatika dan Komputer), vol. 7, no. 2, p. 287, Sep. 2023, doi: 10.26798/jiko.v7i2.873.

A. V. Sudiantoro and E. Zuliarso, “Analisis Sentimen Twitter Menggunakan Text Mining Dengan Algoritma Naïve Bayes Classifier ANALISIS SENTIMEN TWITTER MENGGUNAKAN TEXT MINING DENGAN ALGORITMA NAÏVE BAYES CLASSIFIER,” vol. 10, no. 2, pp. 69–73, 2018.

B. Gunawan, H. Sasty, P. #2, E. Esyudha, and P. #3, “JEPIN (Jurnal Edukasi dan Penelitian Informatika) Sistem Analisis Sentimen pada Ulasan Produk Menggunakan Metode Naive Bayes,” vol. 4, no. 2, pp. 17–29, 2018, [Online]. Available: www.femaledaily.com

F. Amaliah, I. Kadek, and D. Nuryana, “Perbandingan Akurasi Metode Lexicon Based Dan Naive Bayes Classifier Pada Analisis Sentimen Pendapat Masyarakat Terhadap Aplikasi Investasi Pada Media Twitter,” Journal of Informatics and Computer Science, vol. 03, 2022.

F. Khoirunnisa and S. Topiq, “ANALISIS SENTIMEN TERHDAP KEPERCAYAAN MASYARAKAT PADA PROSES PENEGAK HUKUM DI INDONESIA DENGAN MENGGUNAKAN ALGORITMA NAÏVE BAYES,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 12, no. 3, Aug. 2024, doi: 10.23960/jitet.v12i3.4683.

A. Safira, A. S. Masyarakat… , and F. N. Hasan, “ANALISIS SENTIMEN MASYARAKAT TERHADAP PAYLATER MENGGUNAKAN METODE NAIVE BAYES CLASSIFIER,” Jurnal Sistem Informasi, vol. 5, no. 1, 2023.

G. A. Buntoro, “ANALISIS SENTIMEN HATESPEECH PADA TWITTER DENGAN METODE NAÏVE BAYES CLASSIFIER DAN SUPPORT VECTOR MACHINE,” 2016. [Online]. Available: https://www.researchgate.net/publication/309322787

P. Catur et al., “Moderasi Beragama Dalam Wacana Digital: Analisis Sentimen Twitter Terhadap Kasus Penolakan Rumah Ibadah Di Cilegon.”

A. Fauzi, R. Y. Fa’rifah, and E. N. Alam, “Analisis Sentimen Trend Makanan Dan Minuman dengan Support Vector Machine Sebagai Rekomendasi Peluang Bisnis Bagi UMKM.”

F. R. B. Kahi, A. Talakua, and R. Reynaldi, “Analisis Sentimen Masyarakat Di Twitter Terhadap Pemerintahan Anies Baswedan Menggunakan Metode Naive Bayes Classifier,” Jurnal Minfo Polgan, vol. 13, no. 1, pp. 324–336, Apr. 2024, doi: 10.33395/jmp.v13i1.13636.

P. A. Permatasari, L. Linawati, and L. Jasa, “Survei Tentang Analisis Sentimen Pada Media Sosial,” Majalah Ilmiah Teknologi Elektro, vol. 20, no. 2, p. 177, Dec. 2021, doi: 10.24843/mite.2021.v20i02.p01.

S. Suryono, D. Emha, and T. Luthfi, “Analisis sentimen pada twitter dengan menggunakan metode Naïve Bayes Classifier.”

A. Deviyanto, M. R. Didik Wahyudi, and T. Informatika UIN Sunan Kalijaga Yogyakarta Jl Marsda Adi Sucipto No, “PENERAPAN ANALISIS SENTIMEN PADA PENGGUNA TWITTER MENGGUNAKAN METODE K-NEAREST NEIGHBOR,” Jurnal Informatika Sunan Kalijaga), vol. 3, no. 1, pp. 1–13, 2018, [Online]. Available: https://twitter.com/search?l=id&q=AHY%20since%3A2017-01- 01%20until%3A2017-01-

D. Duei Putri, G. F. Nama, and W. E. Sulistiono, “Analisis Sentimen Kinerja Dewan Perwakilan Rakyat (DPR) Pada Twitter Menggunakan Metode Naive Bayes Classifier,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 10, no. 1, Jan. 2022, doi: 10.23960/jitet.v10i1.2262.

A. A. Soebroto, “Buku Ajar AI, Machine Learning & Deep Learning,” 2019. [Online]. Available: https://www.researchgate.net/publication/348003841

MACHINE LEARNING ALGORITHMS and their Use Cases. [Online]. Available: www.freepik.com

F. Adiwidya Pradana, “Penggunaan Artificial Intelligence dan Machine Learning dalam Pembelajaran Ilmu Eksakta”, doi: 10.13140/RG.2.2.21555.95527.

Downloads

Published

2025-05-31

How to Cite

Rasiban Rasiban, Dadang Iskandar Mulyana, Muhammad Joko Umbaran Kharis Bahrudin, & Nicola Marthy. (2025). Sentiment Analysis of the Performance of the Legal System in Indonesia Based on Twitter Comments Using the Naïve Bayes Algorithm. International Journal of Information Engineering and Science, 2(2), 51–61. https://doi.org/10.62951/ijies.v2i2.84

Similar Articles

1 2 3 > >> 

You may also start an advanced similarity search for this article.