Abstract
A newly proposed or implemented government policy often encounters challenges. Ghanaian citizens have always look down negatively upon their government’s policies, hence those are rarely appreciated. This paper ponders over the Ghanaian government’s proposal of electronic levy on mobile money transactions which was announced in the 2022 budget on November 17, 2021. We have scrutinized this governmental policy through the ordinary citizen's perspective using lexicon-based sentiment analysis on Twitter data. Lexicons are collections of words that express specific emotions, and deals with interpreting emotions like happiness, frustration, anger, and sadness. Twitter, serving as a means for people to share their views, provides enormous user generated content, beneficial for research purposes. We collected e-levy specific Twitter data in five phases, namely; policy introduction, popularity, discussion, feeble, and debate phases. The policy introduction phase recorded the least volume of data containing 1400 tweets, among which our sentiment analyzer classifies 8.93% as positive, 89.29% as neutral, and 1.78% as negative. The debate phase recorded the highest amount of data containing 18.423 tweets, among which 24.43% tweets are classified as positive, 59.29% as neutral, and 16.28% as negative. An analysis on the entire data containing 38,771 tweets reports 25.50% positive, 59.02% neutral, and 15.48% negative tweets. Our study determines that people are not largely unhappy established by the stable positive sentiment percentage, however, there is a high neutral score in all the phases.
Introduction
In late 2021, the Ghanaian government introduced the Electronic Transaction Levy (E-Levy), a 1.75% tax on mobile money transactions. Given the central role of mobile money in Ghana's economy, the policy sparked significant public discourse. This study aims to quantify public reaction by analyzing digital sentiment on Twitter, providing a real-time "pulse" of the nation as the policy moved from its initial announcement to intense parliamentary debate.
Methodology
The research follows a structured Natural Language Processing (NLP) pipeline to categorize public sentiment. The study divided the data collection into five chronological phases: Policy Introduction, Popularity, Discussion, Feeble (holiday recess), and Debate.
The workflow involved scraping tweets using the #elevy hashtag, followed by rigorous preprocessing including URL removal, stemming, and lemmatization. Sentiment was initially gauged using lexicon-based tools like TextBlob and VADER, which calculate polarity scores based on predefined word dictionaries. To ensure high accuracy, the researchers then benchmarked various supervised machine learning and deep learning models, including SVM, Random Forest, and transformer-based models like BERT.
Data and Context
The primary dataset consists of 38,771 tweets collected between November 17, 2021, and January 31, 2022, specifically filtered for users in Ghana. While Twitter provides a valuable public data source, it is important to note its position within the broader Ghanaian social media landscape.
As shown in the trends data, while Twitter is a significant platform for political discourse, it captures a specific demographic compared to the near-ubiquitous usage of WhatsApp (89.9%) and Facebook (73.7%).
Key Results and Insights
The quantitative analysis revealed a public that was more "undecided" or "observational" than overtly hostile. Across the entire dataset, the sentiment breakdown was:
- Neutral: 59.02%
- Positive: 25.50%
- Negative: 15.48%
Model Performance
Deep learning and transformer models significantly outperformed traditional machine learning methods in classification accuracy:
- BERT: 97.2% (Top Performer)
- AlBERT: 96.6%
- SVM: 92.1%
- Naive Bayes: 70.7%
Discussion
A dominant finding was the high percentage of neutral sentiment (ranging from 59% to 98% across phases). This suggests a significant portion of the population adopted a "wait-and-see" attitude or lacked sufficient information to form a definitive stance. Interestingly, positive sentiment grew as the policy became more widely discussed, suggesting that government outreach may have mitigated some initial concerns. However, the "Feeble Phase" during the December holidays saw a sharp drop in engagement, indicating that cultural cycles can temporarily obscure even highly controversial political topics.
Conclusion and Future Work
This study demonstrates that while the E-Levy was divisive, the digital discourse was characterized more by neutrality than by the intense negativity often suggested by headlines. Future research will focus on incorporating local dialects (such as Twi) and Pidgin English into the models to better capture the nuances of Ghanaian sentiment, as well as exploring ways to mine data from more private platforms like WhatsApp.
Summary updated