Data Analytics / Natural Language Processing / Social Research
Gamadata 1 — TNI Law Sentiment Analysis.
A social media sentiment analysis project examining public discourse surrounding Indonesia's 2025 TNI Law revision through NLP and data visualization.
01. Overview
Reading patterns in public discourse
A social media sentiment analysis project examining public discourse surrounding Indonesia's 2025 TNI Law revision through NLP and data visualization.
BEM KM UGM · Data Research Division
02. The problem
The problem
How do collected Twitter posts express sentiment toward the 2025 TNI Law revision, and which words recur within the resulting sentiment categories?
03. The approach
The approach
- 01
Collect Twitter posts using topic-specific keyword queries, then remove duplicates and clean mentions, punctuation, and noisy text.
- 02
Tokenize Indonesian text, remove Sastrawi stopwords, normalize slang, and apply Gemini-assisted text normalization.
- 03
Prompt Gemini 2.0 Flash to label sentiment specifically toward the proposed law, using positive, neutral, and negative categories.
- 04
Explore category counts, keyword frequencies, and word clouds with Pandas, Matplotlib, and Seaborn.
04. Technical architecture
Technical architecture
- Keyword-based Twitter collection
- Cleaning + deduplication
- Indonesian text processing
- Gemini-assisted labeling
- Keyword analysis
- Sentiment visualizations
05. Outcomes & reflection
Results and limitations
The README reports analysis of 4,472 collected tweets. The research delivers sentiment summaries and recurring-keyword visualizations as part of the Data Research Division of BEM KM UGM's Gamadata initiative.
Scope & limitations
These are patterns in a keyword-selected Twitter dataset, not representative estimates of Indonesian public opinion. LLM-generated labels have no documented independent validation metrics and may misread context or sarcasm. The batching code can pad missing responses with neutral labels, potentially affecting category counts.