[Paper Review] A Comprehensive View of the Biases of Toxicity and Sentiment Analysis Methods Towards Utterances with African American English Expressions
This study investigates systemic biases in six major toxicity and sentiment analysis models—Vader, TextBlob, Flair, Google’s Perspective, and Detoxify—when processing utterances with African American English (AAE) expressions. Using linguistic controls (LIWC, PoS), semantic similarity (sentence embeddings), and four diverse datasets (YouTube, Twitter, CORAAL, Buckeye), the authors demonstrate that AAE expressions are consistently misclassified as more toxic or negative, even when semantics and grammar are controlled, revealing pervasive bias across all models.
Language is a dynamic aspect of our culture that changes when expressed in different technologies/communities. Online social networks have enabled the diffusion and evolution of different dialects, including African American English (AAE). However, this increased usage is not without barriers. One particular barrier is how sentiment (Vader, TextBlob, and Flair) and toxicity (Google's Perspective and the open-source Detoxify) methods present biases towards utterances with AAE expressions. Consider Google's Perspective to understand bias. Here, an utterance such as ``All n*ggers deserve to die respectfully. The police murder us.'' it reaches a higher toxicity than ``African-Americans deserve to die respectfully. The police murder us.''. This score difference likely arises because the tool cannot understand the re-appropriation of the term ``n*gger''. One explanation for this bias is that AI models are trained on limited datasets, and using such a term in training data is more likely to appear in a toxic utterance. While this may be plausible, the tool will make mistakes regardless. Here, we study bias on two Web-based (YouTube and Twitter) datasets and two spoken English datasets. Our analysis shows how most models present biases towards AAE in most settings. We isolate the impact of AAE expression usage via linguistic control features from the Linguistic Inquiry and Word Count (LIWC) software, grammatical control features extracted via Part-of-Speech (PoS) tagging from Natural Language Processing (NLP) models, and the semantic of utterances by comparing sentence embeddings from recent language models. We present consistent results on how a heavy usage of AAE expressions may cause the speaker to be considered substantially more toxic, even when speaking about nearly the same subject. Our study complements similar analyses focusing on small datasets and/or one method only.
Motivation & Objective
- To investigate whether toxicity and sentiment analysis models exhibit bias toward utterances containing African American English (AAE) expressions.
- To isolate the impact of AAE usage from confounding factors such as grammar, linguistic features, and semantic content.
- To compare the performance of six widely used models—Vader, TextBlob, Flair, Perspective, Detoxify, and Detoxify Unbiased—across diverse datasets.
- To provide empirical evidence of bias in real-world settings, including online social media and spoken language transcripts.
- To guide developers in selecting appropriate tools and inform future model training with more representative AAE data.
Proposed method
- The study uses four datasets: YouTube comments, Twitter posts, and two spoken English interview collections (CORAAL and Buckeye) to ensure diversity in language use.
- Utterances are paired based on semantic similarity, with one version using AAE expressions and the other using standard English equivalents.
- Linguistic control features are extracted using LIWC to isolate lexical and emotional content differences.
- Grammatical control is achieved via Part-of-Speech (PoS) tagging to ensure syntactic similarity between paired utterances.
- Semantic similarity is measured using sentence embeddings from state-of-the-art language models to control for meaning.
- Statistical analysis compares model scores across paired utterances, focusing on whether AAE usage leads to higher toxicity/negative sentiment scores.
Experimental results
Research questions
- RQ1Do toxicity and sentiment analysis models systematically assign higher toxicity or negative sentiment scores to utterances containing African American English (AAE) expressions, even when semantics and grammar are controlled?
- RQ2How do different model types—lexical (rule-based) versus machine learning (ML)—perform in terms of bias toward AAE expressions?
- RQ3Is the bias consistent across diverse data sources, including online social media and spoken language transcripts?
- RQ4To what extent do linguistic, grammatical, and semantic controls reduce or eliminate the observed bias in model outputs?
- RQ5Are there measurable differences in bias levels across the six evaluated models (Vader, TextBlob, Flair, Perspective, Detoxify, Detoxify Unbiased)?
Key findings
- On YouTube, 48% of pairs with divergent scores showed higher toxicity for the AAE version, compared to 37% for the non-AAE version, with a statistically significant bias (p < 0.01).
- On CORAAL/Buckeye, 77% of divergent pairs showed higher toxicity for the AAE version, indicating a stronger bias in spoken language contexts.
- Lexical-based models (Vader, TextBlob) showed less bias than machine learning models (e.g., Flair, Perspective, Detoxify), suggesting rule-based systems are more robust to AAE expression bias.
- Even after controlling for grammar (PoS), linguistic features (LIWC), and semantics (sentence embeddings), AAE expressions still led to significantly higher toxicity scores in most models.
- The study identified 585,679 unique high-similarity pairs on YouTube and 592,606 on CORAAL/Buckeye, with consistent bias patterns across all datasets and models.
- The results indicate that bias is systemic and not due to random chance, as confirmed by binomial tests (p < 0.01), and is likely rooted in training data limitations and lack of contextual understanding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.