Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Public Response to the Legalization of The Criminal Code Bill with Twitter Data Sentiment Analysis

Author 1: Deny Irawan Author 2: Dana Indra Sensuse Author 3: Prasetyo Adi Wibowo Putro Author 4: Aji Prasetyo
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 14, No. 2 · Published 2023

DOI: https://doi.org/10.14569/IJACSA.2023.0140236

Abstract

The Criminal Code Bill, also known as Rancangan Kitab Undang-undang Hukum Pidana (RKUHP), passed in the House of Representatives (DPR) on December 6, 2022, is being debated because several issues need to be fixed. Therefore, research was conducted to determine the public's reaction to the ratification of the Criminal Code Bill by analyzing Twitter data. This study aims to obtain a general response to the legalized RKUHP. We use sentiment analysis, a text-processing method, to get data from the public. To do this, we used N-grams (unigrams, bigrams, and trigrams) along with three algorithms: Naïve Bayes, Classification and Regression Tree (CART), and Support Vector Machine (SVM). The result of sentiment analysis found that 51% of tweets were positive about the ratification of the RKUHP, and 49% were negative. In addition, it was also found that SVM has the best accuracy compared to other algorithms, with an accuracy value of 0.81 on the unigram combination.

Keywords

How to Cite this Article

Irawan, D., Sensuse, D. I., Putro, P. A. W., & Prasetyo, A. (2023). Public Response to the Legalization of The Criminal Code Bill with Twitter Data Sentiment Analysis. International Journal of Advanced Computer Science and Applications, 14(2). https://doi.org/10.14569/IJACSA.2023.0140236

Irawan, Deny, et al.. "Public Response to the Legalization of The Criminal Code Bill with Twitter Data Sentiment Analysis." International Journal of Advanced Computer Science and Applications, vol. 14, no. 2, 2023, https://doi.org/10.14569/IJACSA.2023.0140236.

@article{Irawan2023,
  title     = {Public Response to the Legalization of The Criminal Code Bill with Twitter Data Sentiment Analysis},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {14},
  number    = {2},
  year      = {2023},
  publisher = {The Science and Information Organization},
  author    = {Deny Irawan and Dana Indra Sensuse and Prasetyo Adi Wibowo Putro and Aji Prasetyo},
  doi       = {10.14569/IJACSA.2023.0140236},
  url       = {https://doi.org/10.14569/IJACSA.2023.0140236}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.