Sentiment Analysis of X Users' Responses to "Marriage Is Scary" Using the Naive Bayes Algorithm
Abstract
The trend of the "Marriage is Scary" phenomenon has recently dominated the timeline of the social media platform X (Twitter) in Indonesia. This jargon reflects growing skepticism, emotional anxiety, and a shift in the perspective of contemporary youth toward the sacredness of the institution of marriage. This study aims to classify and analyze the sentiment of X social media users toward this phenomenon using a computational approach. The research dataset consists of 1,500 public opinion tweets collected from the X platform using scraping techniques. The data then underwent structured text preprocessing stages including case folding, cleaning, tokenizing, stopword removal, and stemming. The Naïve Bayes Classifier algorithm was applied to categorize the data into three sentiment categories: positive, negative, and neutral. The results of the sentiment analysis show a strong polarization of opinion dominated by negative sentiment, which is socially triggered by concerns over toxic partner behavior, exposure to domestic violence (KDRT), and future uncertainty from an economic standpoint. Based on algorithm performance testing using a confusion matrix, the Naïve Bayes Classifier method is proven to provide a high accuracy rate of 87.50% in recognizing non-standard Indonesian opinion texts. This research is expected to provide a scientific contribution to the field of data mining as well as serve as a psychosocial portrait of the digital society toward marriage dynamics in the modern era.
Full text article
Authors
Copyright (c) 2026 Gani Roberto Simanjuntak

This work is licensed under a Creative Commons Attribution 4.0 International License.
Copyright is retained by the authors.
Published articles may be used under the Creative Commons Attribution 4.0 International License.
You are free to:
- Share — copy and redistribute the material in any medium or format;
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.