Skip to main content
QUICK REVIEW

[Paper Review] Women, politics and Twitter: Using machine learning to change the discourse

Lana Cuthbertson, Alex Kearney|arXiv (Cornell University)|Nov 25, 2019
Hate Speech and Cyberbullying DetectionComputer Science16 references13 citations
TL;DR

This paper presents ParityBOT, an AI-driven Twitter bot that uses machine learning to detect hateful tweets targeting women in politics and automatically responds with supportive 'positivitweets' about female leaders. The system, validated on public harassment datasets and deployed during the 2019 Alberta provincial and Canadian federal elections, reduced online abuse impact by increasing visibility of women in politics, with 973 positivitweets sent after classifying 1,468 hateful tweets at a TOXICITY threshold of 0.8.

ABSTRACT

Including diverse voices in political decision-making strengthens our democratic institutions. Within the Canadian political system, there is gender inequality across all levels of elected government. Online abuse, such as hateful tweets, leveled at women engaged in politics contributes to this inequity, particularly tweets focusing on their gender. In this paper, we present ParityBOT: a Twitter bot which counters abusive tweets aimed at women in politics by sending supportive tweets about influential female leaders and facts about women in public life. ParityBOT is the first artificial intelligence-based intervention aimed at affecting online discourse for women in politics for the better. The goal of this project is to: $1$) raise awareness of issues relating to gender inequity in politics, and $2$) positively influence public discourse in politics. The main contribution of this paper is a scalable model to classify and respond to hateful tweets with quantitative and qualitative assessments. The ParityBOT abusive classification system was validated on public online harassment datasets. We conclude with analysis of the impact of ParityBOT, drawing from data gathered during interventions in both the $2019$ Alberta provincial and $2019$ Canadian federal elections.

Motivation & Objective

  • To address systemic gender inequality in Canadian politics exacerbated by online harassment on Twitter.
  • To design and deploy an AI-based intervention that actively reshapes online discourse toward women in politics.
  • To develop a scalable, transparent, and ethically guided system for classifying and responding to hateful tweets.
  • To assess the impact of automated positive engagement on women’s political participation and online safety.
  • To explore the potential of AI bots to foster inclusion and reduce barriers to political engagement for women.

Proposed method

  • The system uses Twitter’s real-time streaming API via Tweepy to collect English-language tweets mentioning female political candidates.
  • Text is preprocessed using rule-based cleaning to align with model expectations and then scored using three NLP models: Perspective API (TOXICITY), HateSonar, and VADER sentiment.
  • Feature vectors are created from model outputs, with TOXICITY score selected as the primary classifier due to its transparency and predictive power.
  • A dynamic thresholding strategy is applied—initially 0.5, then increased to 0.8 and 0.9—to balance response frequency with Twitter API rate limits and reduce false positives.
  • The bot responds to tweets above the threshold with pre-curated 'positivitweets' about influential women in politics, selected from a diverse library.
  • The system avoids direct mentions and maintains transparency by clearly identifying itself as a bot, minimizing ethical risks of deception.

Experimental results

Research questions

  • RQ1Can an AI-driven bot effectively detect and respond to gendered online abuse targeting women in politics?
  • RQ2How does automated positive engagement influence the perception and experience of women candidates in political discourse?
  • RQ3What is the impact of a scalable, transparent bot system on the tone and inclusivity of political discourse on Twitter?
  • RQ4How do decision thresholds in hate detection affect the balance between responsiveness and resource constraints?
  • RQ5To what extent can such a system contribute to reducing barriers to women’s political participation?

Key findings

  • ParityBOT classified 1,468 hateful tweets out of 12,726 total tweets during the 2019 Alberta provincial election, with a TOXICITY threshold of 0.8.
  • The bot sent 973 positivitweets during the Alberta election, demonstrating a controlled response rate due to API and content library constraints.
  • The Perspective API’s TOXICITY score was the most predictive feature for classifying hate speech, justifying its use as the primary classifier.
  • Participants reported that ParityBOT’s presence signaled that abuse was being monitored and that supportive voices were present, contributing to a sense of visibility and encouragement.
  • Women candidates acknowledged that online abuse is a persistent barrier, with many choosing to disengage from social media due to negativity, highlighting the need for such interventions.
  • The project demonstrated that AI-based, ethically designed bots can contribute to shifting discourse and supporting gender equity in political participation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.