Skip to main content
Springer logoLink to Springer
. 2025 Nov 27;14(1):83. doi: 10.1140/epjds/s13688-025-00594-2

The news in black and white: word embeddings quantify racism in South African news

Nnaemeka Ohamadike 1,✉, Kevin Durrheim 2,✉, Mpho Primus 3
PMCID: PMC12660342  PMID: 41323296

Abstract

Does race bias manifest in South African news, and how can computational methods like word embeddings reveal it? After apartheid’s end in 1994, South Africa implemented policies to address racial and economic divides and transform institutions and structures, including the news media. This study introduces a computational approach to quantify race bias in South African news using neural embeddings. We trained word2vec word embeddings on COVID-19 vaccination news articles from 76 South African news sources. These large-scale embeddings are unbiased by design but can detect and reveal hidden biases in language. We found consistent race bias in the coverage of socioeconomic phenomena, while health results were weaker, mixed and likely corpus-dependent. COVID-19 may have also amplified associations between “Black” and unhealthy terms in news coverage. Our methodology complements traditional qualitative techniques and allows for a more objective and representative way of investigating racism in South African news. Findings are validated through multiple methods, including human ratings, and have implications for South African news and this research field.

Supplementary Information

The online version contains supplementary material available at 10.1140/epjds/s13688-025-00594-2.

Keywords: Word embedding, Race bias, News media, South Africa, COVID-19 vaccination, Speaker names, Computational social science, Natural language processing

Introduction

The global COVID-19 pandemic tested the resilience of healthcare systems and created an environment that is rife for bias and prejudice [39]. In many multiracial countries, the pandemic had the potential to expose and exacerbate social inequalities and divisions, inordinately impacting low-income and marginalised communities [22, 39].

South Africa exemplifies this pattern. It remains one of the most unequal countries globally, and these inequalities largely mirror the racial divisions established during apartheid [33, 44]. While racism long predates COVID-19 in South Africa, we focus on the pandemic because it exposed and intensified these structural inequalities.

As both a health and socioeconomic crisis, COVID-19 negatively affected Black South Africans in rural, peri-urban, and informal settlements. Oxfam [34] notes that these communities, shaped by apartheid-era spatial planning like the 1950 Group Areas Act (which forcibly relocated non-white South Africans to areas outside major cities and economic hubs), remain underdeveloped, overcrowded and lacking in basic infrastructure like sanitation, clean water, and adequate healthcare. These systemic inequalities intensified the pandemic’s impact and economic fallout, with many residents losing jobs or working in low-wage essential roles that exposed them to higher health risks [34]. We investigate racism around this phenomenon as media narratives can either reinforce or challenge existing inequalities.

Our overarching goal is to introduce a computational approach to investigating racism in the news. Previous research is limited by its reliance on qualitative techniques, which depend heavily on the analyst’s intuition and are less reliable for detecting complex and subtle themes [24]. These methods also lack replicability and are constrained by the slow pace of human reading, making them unsuitable for analysing very large corpora [24]. These limitations of human analysis have prevented prior studies investigating racism in South African news from using big data representative of diverse news sources. We complement these qualitative techniques through neural embeddings and validate our computational results with human-derived ratings, among others. These embeddings can process millions of news articles, are replicable and not inherently biased against any people or features, but can learn and reveal hidden human-like biases.

Section 2 reviews the literature on race bias in South African news media and how word embeddings can be used to detect racism. After discussing the related methods, we present and discuss the findings based on analysing a sample of 27,140 news articles. The last section presents a concluding discussion.

Literature review

Racism in South African news

Racism in the South African news has roots in the country’s apartheid past. During apartheid, the media perpetuated the ideology of white supremacy and served as a tool for the apartheid government to control information, spread propaganda, and reinforce racial hierarchies [4, 7, 14]. Mainstream newspapers, radio stations, and television channels were largely controlled by white-owned corporations and perpetuated state-sanctioned discrimination [23]. The South African Truth and Reconciliation Commission (TRC) hearings revealed alarming evidence of the media’s collaboration with the apartheid regime in committing gross human rights violations [43].

One of the main ways in which racism manifested in the South African news media during apartheid was through the portrayal of black South Africans. Black individuals and communities were often depicted in dehumanising terms and forms. News coverage of protests, political dissent, and resistance movements led by black activists was frequently biased, with black individuals portrayed as agitators or threats to the status quo [37].

This was, for instance, reflected in how the South African Broadcasting Corporation (SABC) portrayed township violence in the 1980s. The 8 o’clock news often depicted scenes of flames, stone-throwing, and crowds, accompanied by descriptions like ‘security forces were forced to make use of rifles and shotguns to disperse rioting crowds’ [37, p. 162]. This portrayal aimed at justifying state violence by depicting black protesters as primitive and mindless mobs engaging in ‘savage and so-called “tribal” behaviour’, contrasting it with the ‘more “civilised” methods’ employed by the police [37, p. 161]. The underlying implication was that black people were driven by emotions rather than reason, reinforcing stereotypes of their ‘primitive’ nature [37, p. 165]. Such racist imagery in apartheid media served to uphold white privilege by legitimising oppression and state violence [14].

Moreover, the apartheid regime actively suppressed alternative voices and perspectives, censored news outlets that challenged its authority, and marginalised journalists who dared to report on issues affecting black communities [1, 31]. Independent and non-white media organisations faced harassment, intimidation, and closure [23].

While apartheid officially ended in 1994 with the advent of democracy in South Africa, the legacy of racial inequality and discrimination persists in the country’s news media.

Five years into democracy in South Africa, two associations, the Black Lawyers Association (BLA) and the Association of Black Accountants of South Africa (ABASA), accused two South African news outlets, the Sunday Times and the Mail and Guardian, of racially biased reporting [17, 21, 36]. The South African Human Rights Commission (HRC) launched an investigation, prompting a defensive response from the newspapers. Despite their denials, the HRC pursued the inquiry into racism in the South African media in general, using eleven submissions from the public, a qualitative investigation conducted by an independent researcher [7], and a quantitative study of the occurrence of racial themes such as ‘Blacks are criminals’ by the [14, 29, 36]. The investigation, although said to be methodologically weak, revealed numerous instances of racism in the South African news media ([3, 7, 14, 17, 29]).

Six years later, another report by MMP, which raised much less furore than the one they were commissioned to do by the Human Rights Commission in 1999/2000, similarly found race bias in the South African news media [30, 44]. Specifically, they found that the news media “tend to lead with dramatic headlines that may sell more publications but often trivialise the issues at stake and promote stereotypes and discrimination, which reinforces the alienation of specific groups of people” ([30, p. 4], [44, p. 134]). The report found that coverage of racism and xenophobia often lacks analysis and context, and that “the other”1 is often still stereotyped ([30, p. 2], [44, p. 134]). More recently, Govenden [18] observed that the shift from white to significant black ownership in South African news media since 1994 has not eliminated historical racist portrayals of blackness in the news. Instead, “inferential racism” continued to dominate media content between 1994 and 2014.

While progress has been made in diversifying the news media and promoting greater representation of marginalised voices in post-apartheid South Africa, structural barriers still limit opportunities for black journalists [27]. This lack of diversity behind the scenes can translate into biased representations and skewed narratives in news coverage.

Previous studies have highlighted instances of post-apartheid racism in the South African news media. However, recent research on racism in South African news has been sparse. Further, existing research is limited by its sole use of subjective methods and non-representative data. These qualitative techniques rely on the analyst’s intuition and are less reliable for detecting complex and subtle themes [24]. They are also hardly replicable and limited by the pace of human reading, which is ill-suited for analysing very large corpora [24].

Recent advancements in machine learning, particularly word embeddings, overcome these limitations, given their inherently unbiased nature, large-scale processing capabilities, replicability, and ability to detect implicit associations. Despite their potential, these techniques have been underutilised in studying stereotypes in the Global South. More importantly, they have not been employed to study racism and stereotypes in South Africa, particularly in the news media. In this paper, we pioneered research in this field and complemented traditional methods by using word embeddings to investigate racism in a large, representative South African news corpus.

Detecting racism using word embeddings

Word embedding is a powerful technique in natural language processing for capturing semantic relationships between words and unearthing patterns in text data [15]. This involves representing words as vectors in a high-dimensional space, where the proximity of vectors shows associations between word meanings. Word embeddings are useful for identifying and quantifying implicit, language-encoded biases [15, 25]. Research in this area has gained traction in recent years, with researchers exploring techniques to unearth and mitigate biases and stereotypes in text data, such as news data.

However, while word embeddings have been widely used to study gender bias, research in using embeddings to detect race bias remains limited [9]. Common techniques in existing research on race bias involve training word embeddings on large text data or using pre-trained models (like Google News embeddings) to analyse the relationships between word vectors and identify patterns or terms associated with race categories [8, 16, 24].

Caliskan et al. [8], replicating Greenwald et al. [20] using GloVe embeddings, confirmed that European American names are more closely associated with pleasant terms than African American names.

Similarly, Garg et al. [16] used GloVe embeddings to analyse historical texts from the Corpus of Historical American English (1900–1990) and the New York Times Annotated Corpus (1988–2005). They examined traits and occupations linked to ethnic and racial groups like Chinese, Hispanic, Russian, and White, showing how immigration and other 20th-century trends shaped perceptions of Asians in the United States. For instance, in 1910, Chinese surnames were associated with negative traits like irresponsible, envious, barbaric, and aggressive, but by 1990, more positive attributes emerged.

Researchers also developed bias dimensions to analyse race stereotypes in word embeddings. Kozlowski et al. [24] applied this technique to study class and race stereotypes in music genres using race terms/dimensions like ‘black-white’ and ‘African-European’ on Google News embeddings. They found, inter alia, that jazz and rap were more closely associated with the ‘black’, while opera and bluegrass were linked with the ‘white’.

Word embeddings can reveal biases embedded in the language used by journalists and media outlets by analysing the co-occurrence patterns of words related to race in news articles. For example, word embeddings may unearth associations between certain racial groups and negative attributes or stereotypes, such as linking terms like “crime” or “violence” more closely with words referring to black individuals or communities. Such a technique could be used to detect and quantify race bias in the earlier-discussed SABC portrayal of township violence in apartheid South Africa [37].

These findings demonstrate the effectiveness of word embedding analysis in uncovering racial and social biases. They have a remarkable ability to reveal familiar stereotypes, like the racial connotations of music genres [15]. They can also unearth deeply embedded racial biases in society and monitor their evolution across different periods and contexts [15, 16].

Research examining social biases in the Global South using word embeddings is sparse, and crucially, these methods have not been applied to studying racism and stereotypes in South African news media. Word embeddings enable a more objective and comprehensive analysis of biases across a broader range of news outlets and articles, due to their inherent neutrality and the large-scale processing capabilities of machines. This technique involves training machines, which are not inherently biased by design, on a large corpus of news data and then testing whether they have learned any racial biases from the data. This complements traditional qualitative methods.

Given apartheid’s legacy in the structures, institutions, and practices of post-apartheid news media [7, 14, 18, 21, 29, 30, 36, 44], we argue that the South African news media is biased in COVID-19 vaccination reporting for different races. Specifically, black names/terms are more associated with negative than positive adjectives compared with white ones. To test this hypothesis, we trained word2vec word embedding on a media corpus on COVID-19 vaccination, spanning 76 South African news sources from 2020 to 2023.

Methodology

Data

The analysis utilised data from Media Monitoring Africa (MMA) obtained using the keyword “vacc*”. The asterisk was used as a wildcard to capture any variation of the word “vaccination.” The original data set had 85,951 news articles on vaccination for various diseases from different international news outlets from June 2013 to May 2023 (10 years). Access to the non-public dataset was obtained through an individual request. The extraction process involved primarily automated algorithms, complemented by human curation and focused on English-language news articles. We used Python’s langdetect package [41] to verify that no non-English articles were included.

Data preparation and pre-processing

The data cleaning involved sub-selecting for all South African news outlets, with subsequent sub-selection to isolate articles related to COVID-19 vaccination. The following variations of COVID-19 terms in titles or text of articles were considered regardless of text case: ‘Covid19,’ ‘covid,’ ‘COVID-19,’ ‘Coronavirus,’ ‘covid 19,’ ‘corona,’ ‘SARS-CoV-2’, ‘2019ncov’. We excluded duplicate articles but retained Public Service Announcements (PSAs), as they form part of the media ecosystem. However, in a separate analysis, we filtered out PSAs using government-affiliated sources and common PSA phrases. A word2vec model trained on this filtered corpus produced results consistent with the full dataset.

The resulting data set post-cleaning is a sample of 27,140 news articles from 76 South African news sources and 3647 authors/journalists on coronavirus vaccination in the South African news media. The resulting articles spanned from 22/01/2020 (the publication date of the earliest article in our subselection) to 30/05/2023 (the data extraction date by MMA). Notably, 2021 emerged as the year with the highest article count, and most articles were from South Africa’s public broadcaster, SABC, as Fig. 1 shows.

Figure 1.

Figure 1

Number of articles published by each news source

Data pre-processing involved lowercasing all letters and removing any punctuation, including special characters like hashtags, and removing HTML tags like img and svg using Python’s BeautifulSoup. We did not remove stopwords, following a growing trend in the machine-learning literature, recognising that such removal can change the polarity of words in documents [26, 38].

We conclude this sub-section with an example of a “messy” text followed by its “clean” version after data preprocessing.

• Before preprocessing: President Cyril Ramaphosa, on Thursday, 27 February, gave the go-ahead for South Africans living in the Chinese city of Wuhan to be repatriated.

• After preprocessing: president cyrilramaphosa on thursday 27 february gave the goahead for south africans living in the chinese city of wuhan to be repatriated.

Method of data analysis

We trained an ensemble of 20 word2vec models using Python’s Gensim library [32] to assess the stability of cosine similarity measures used in our analysis. Word2vec is a common word embedding algorithm. It is considered a local context window method, capturing co-occurrence information one window at a time [35].

To test the robustness of our findings and assess how results might shift when altering model initialisation or dimensionality, we trained additional word2vec models using three different random seeds and smaller vector dimensions (100, 150, and 200). These models produced results consistent with those from the 20 word embeddings (with 250 dimensions) used in our main analysis. Our 20 embeddings (and the 10 trained on the capped news corpus in the supplemental material) were generated using the same hyperparameter settings outlined in Table 2.

Table 2.

Hyperparameter settings used to train embeddings

Parameter Name Value
Minimum word count (m) 5
Window size 10
Architecture Skip-Gram (s1)
Training method Negative sampling
Negative 5
Vector dimension size 250
Epochs 15

Following Kozlowski et al. [24] and Caliskan et al. [8], who have studied race bias using word embeddings, we focus on black and white races. For the analysis, we created a term-based race dimension adapted from Kozlowski et al. [24] using the word pairs in Table 1. We also created a speaker-based race dimension, enabled by our new technique that embeds speakers extracted from news articles.2

Table 1.

Word Pairs used to Construct Term-based Race Dimension

Word Pairs
black-white
blacks-whites
afro-anglo
african-european
african-american
indigenous-settler
zulu-afrikaner

For the socioeconomic test, we compiled stereotype keywords from MMP [29], Talbot and Durrheim [42], and ChatGPT [10].3 These sources show socially constructed and historically grounded associations tied to race in South Africa. We then used frequency analysis to identify which Black and White stereotypes appeared in our embeddings and how frequently they appeared. To ensure balance in category sizes, we selected all keywords from the smaller group (e.g., 44 White stereotypes) and matched the number by selecting the most frequent keywords from the larger group (e.g., the top 44 out of 60 Black stereotypes).

For the health-related test, we retrieved the top 100 words most semantically similar to “healthy” and “unhealthy” using cosine similarity. Health-related descriptors are less often explicitly grouped in literature and better captured through semantic proximity. We removed irrelevant terms, including antonyms that often appear close in vector space due to frequent co-occurrence – for example, “healthy” and “sick” may appear near each other even though they represent opposing meanings. The remaining words were ranked by frequency, and we applied the same balancing approach, selecting all known terms from the smaller category and frequency-matching them with the larger one. This resulted in 40 healthy and 40 unhealthy adjectives.4 We conducted a sensitivity analysis by varying adjective numbers (socioeconomic and health) and obtained consistent results.

Hyperparameter settings

Table 2 displays the hyperparameter names and values employed in training the embedding. We utilised the Skip-Gram model architecture of the word2vec algorithm and negative sampling [32] with a hyperparameter “negative” value of 5. This hyperparameter determines the number of “noise words” the model can reference during training [26]. The word vectors were normalised after training.

Calculating race bias

To calculate race bias, we created a dimension (black and white) using race terms in Table 1. Each pole in the bipolar race dimension is defined by a centroid, representing the average of all similar word vectors associated with that group across the 20 word2vec models (see Table 1). This centroid is itself a vector. The bias direction is computed as the difference between the centroids. We validated our term-based race dimension using Black and White speaker names, Euro-American and African countries, and Black and White South African names to ensure that the dimension (and its component keywords) accurately and reliably captures racial distinctions in the data for our analysis.

Next, we calculate the average cosine similarity between each adjective’s vector and the bias direction across the 20 models. This score indicates how closely each adjective associates with each region (white or black) across all models. If negative adjectives or black stereotypes cluster more closely with the black region, while positive adjectives or white stereotypes cluster with the white region, it suggests the embeddings have absorbed racial biases. Cosine similarity is a common approach for measuring this association [8, 24]. Its scores range from −1 (= opposite meaning) through 0 (= no relation) to 1 (= identical meaning) [15].

We organise the adjectives based on their alignment with the bias direction on a scatter plot, where the x-axis represents the average similarity score and the y-axis represents the adjectives. Error bars account for the variability or uncertainty in the similarity scores and are calculated as the standard error of an adjective’s cosine similarity across the 20 models from the mean cosine similarity – lower error bars mean lesser uncertainty, while higher ones mean higher uncertainty.

We represent our bias measurement with the notation below:

Cosinesimilarity(x,y)=x⋅y|x|∣y∣ 1

x is the adjective vector

y bias direction vector

x⋅y is the dot product of vectors x and y

|x| |y| are the magnitudes (lengths) of vectors x and y respectively

Finally, we use the Word Embedding Association Test (WEAT) [8] to measure how strongly keywords (e.g., socioeconomic stereotypes and health adjectives) are associated with our race dimension. After projecting each keyword (averaged across the 20 embeddings) onto our race axis using cosine similarity, we obtain a score that shows its association with either end of the race spectrum (Black or White). The WEAT effect size is then calculated as the standardised (divided by the pooled standard deviation) mean difference (Cohen’s d) between the two adjective groups (e.g., White-associated vs. Black-associated stereotypes, healthy vs unhealthy). Finally, we perform a permutation test (to calculate the p-value) by randomly reassigning group labels and recalculating the effect size over 10,000 iterations to estimate the probability of observing an effect as extreme as the actual one under the null hypothesis.

Results

Our overall results indicate how strongly a word is associated with each endpoint of the race dimension. Positive scores indicate a stronger association with the first endpoint (black), while negative scores indicate a stronger association with the second endpoint (white). We began by examining how stereotypes connote race, then discussed the validation of our findings, and concluded by analysing how health-related adjectives connote race and the human validation of such results.

Socioeconomic stereotypes and race connotation

Here, we examine how the top 44 black and 44 white stereotypes in our embeddings from MMP [29], Talbot and Durrheim [42], and ChatGPT [10] connote race (Fig. 2). Consistent with the literature reviewed earlier, we found race bias in the coverage of socioeconomic phenomena.

Figure 2.

Figure 2

Race meaning of Stereotypes using Term-based Race Dimension

Nearly all identified black and white stereotypes were significantly associated with their relevant endpoint (WEAT bias score = −1.31, p < 0.001). We tested sensitivity by varying the number of adjectives (k = 10 to 44); the WEAT score remained consistently negative and significant.

Indeed, our model, on average, learned to connote stereotypes like “township”, “HIV”, “polluted”, “antiapartheid”, “traditional”, and “empowered” with black almost as strongly as it learned to connote “ambitious,” “taxpayers,” “investor”, “wealthy”, “conservative”, and “developers” with white. Most socioeconomic white stereotypes (“rich,” “landowners,” and “taxpayers”) connoted white, while black stereotyped social welfare schemes like “SASSA” (the South African Social Security Agency), its former Social Relief of Distress Grant amount of “R350,” and “NSFAS” (South African government’s National Student Financial Aid Scheme targeted at low-income households) all connoted black.

Similar to the apartheid-styled reporting highlighted earlier, our model learned to associate “crime” with black and “safety” with white. Overall, our results suggest that discussions of poor socioeconomic conditions generally occur in the context of black and good socioeconomic conditions in white. The few exceptions include “educated,” “privileged,” and “hospitable,” which are typically white stereotypes based on the literature and “corrupt,” “unrest,” and “lazy,” which are typically black stereotypes.

Our findings were consistent across different corpora and race dimensions. When we conducted the same test using an embedding trained on a broader, non-vaccination-focused corpus, we found a consistently significant negative association (WEAT = −0.89, p < 0.01). This result was echoed when we capped news articles at 1,000 per outlet to reduce the influence of dominant sources (WEAT = −1.30, p < 0.001), and again when we used a race dimension constructed from the top 25 Black and 25 White speaker names in our embeddings (WEAT = −1.23, p < 0.001) (see supplemental material). Notably, the results with the speaker names had lesser variability or uncertainty (lower standard errors judging by the error bars), indicating we can expect better results with targeted names.

Human validation: socioeconomic stereotypes and race

We begin our validation by using human ratings to evaluate whether the semantic information and biases captured by word embeddings reflect human cognitive associations and biases. The socioeconomic rating involved 26 South African participants (21 Blacks, 4 Whites, 1 Indian), who provided informed consent before participation.

The evaluation was conducted using online questionnaires developed with Microsoft Forms.5 Participants rated their associations between the socioeconomic keywords from Fig. 2 and racial groups (Black or White). Ratings were on a 5-point Likert scale: 1 (Strongly Associated with White), 2 (Associated with White), 3 (Neutral/No Association), 4 (Associated with Black), and 5 (Strongly Associated with Black). To evaluate rating consistency, we used Krippendorff’s alpha (α) with bootstrapped 95% confidence intervals and intraclass correlation coefficients (ICC), both on a scale of 0 to 1, where higher values are better.6 Results showed moderate individual agreement for socioeconomic stereotypes (Krippendorff α = 0.54, 95% CI [0.46, 0.60]; ICC(A,1) = 0.55, p < 0.001).

Figure 3 shows a significant positive correlation (r = 0.61, p < 0.001) between the semantic associations or biases captured by the embeddings and the human-derived ratings, validating our findings.

Figure 3.

Figure 3

Correlation between word embedding results and human ratings (socioeconomic)

Validating term-based race dimension

Validating dimension using black and white speakers

We validate our term-based race dimension by projecting the top 25 black and 25 white speakers in our embedding by frequency. We embedded these speakers extracted from our news data for a more targeted approach to investigating biases in news data.7

Figure 4 shows that the South African news media racialised individuals (assigned racial identities) in the coverage of COVID-19 vaccination, and the results validate our race dimension created with the race terms. Our models learned to identify most speakers by race based on the data (WEAT = −1.24, p < 0.001). It associated most black speakers like Cyril Ramaphosa, Zweli Mkhize, and Naledi Pandor with black, with Nelson Mandela and Sihle Zikalala having the strongest association. Similarly, most white speakers, like John Steenhuisen, Vladimir Putin, and Melinda Gates, were associated with white, with Joe Biden and Goldman Sachs having the strongest relationship with that endpoint.

Figure 4.

Figure 4

Cosine Similarity between Top 25 White and Black Speakers and Race Dimension

There are a few exceptions in the black region. Some white South African speakers like Alan Winde (the current Premier of the Western Cape), Glenda Gray and Helen Rees, both professors at the University of the Witwatersrand, Johannesburg, South Africa, were associated with the black region. Glenda Gray is an expert in HIV treatment and a co-founder of the Perinatal HIV Research Unit in Soweto, a predominantly black township in Johannesburg. This affiliation might explain her association with the black endpoint as a white South African.

Overall, most of the speakers were racialised, validating our race dimension created with the terms. In the supplemental material, we created a race dimension using these racialised 25 black and 25 white speakers from the news to compare with the dimension created using race terms.

Validating term-based race dimension using Euro-America and African countries

Next, we projected 50 African and 50 Euro-American countries onto our term-based race dimension (Fig. 5). Countries like Sierra Leone and South Sudan, not in the embeddings, were represented by their capitals (e.g., Freetown and Juba). Results indicate that most sub-Saharan African countries (characterised by predominantly black populations) were associated with black, as did most Euro-American countries with white (WEAT = −1.61, p < 0.001). Interestingly, Jamaica (a North American country) is ranked fourth in the black region. Jamaica has a predominantly black population with sub-Saharan African ancestry, and this may contribute to its racialisation in our news data.

Figure 5.

Figure 5

Cosine Similarity between African and Euro-American Countries and Race Dimension

Furthermore, most North African countries (like Libya, Morocco, Egypt, and Tunisia) were not strongly associated with either race endpoints. This lack of association is likely because these countries do not have predominantly black or white populations. Instead, they are often grouped with the Middle East in the MENA region due to their shared history, culture, religion, language, and economics [13, 46], setting them apart from the rest of Africa.

Taken together, the news racialised most Euro-American and African countries, validating our term-based race dimension.

Validating term-based race dimension using white and black South African names

We proceeded by projecting the top 25 non-individual-specific black and 25 white names in our embeddings from ChatGPT [11] onto our term-based race dimension (see Table S4 in the supplemental material for a list of non-individual-specific names). The results in Fig. 6 show that most names were racialised – our model learned to associate black South African names with the black endpoint and white ones with the white endpoint (WEAT = −1.48, p < 0.001). Interestingly, 9 white names leaned towards the black end, while none of the black names did the same. This reflects social patterns in South Africa and other multiracial societies, where black individuals are more likely to adopt names traditionally associated with Whiteness, while the reverse is less common. Overall, the results further validate our term-based race dimension.

Figure 6.

Figure 6

Cosine Similarity between Black and White South African Names and Race Dimension

Health and race

Our second group of keywords for testing race bias captures the concept of health (since COVID-19 and its attendant vaccination are health-related) and ranges from healthy to unhealthy. We projected our 40 healthy and 40 unhealthy words onto the term-based (and speaker-based) race dimensions.

Our results show that words about unhealthy connoted black, while most words about healthy connoted white (Fig. 7). Specifically, out of the 40 healthy adjectives, 21 connoted white, while 17 connoted black. Similarly, 13 unhealthy adjectives out of 40 connoted white, while 26 (double the number associated with white) connoted black. Notably, while unhealthy words like “undernourished” and “diabetes” were the strongest connotation of black, healthy words like “strong” and “humoral-immunity” were the strongest in the white region.

Figure 7.

Figure 7

Race meaning of Health Words using Term-based Race Dimension

The WEAT bias score is negative (WEAT = −0.36, p = 0.109), indicating a tendency to associate unhealthy terms with “Black” and healthy terms with “White,” though this result is not statistically significant, suggesting that the observed pattern may be due to chance. We tested sensitivity by varying the number of health adjectives (k = 10 to 40); WEAT score remained consistently negative but not significant.

However, when we capped the news articles at 1,000 per source to reduce the influence of any single outlet, the result became significant at the 90% confidence level (WEAT = −0.49, p < 0.1).8 Using the same health adjectives with a race dimension created using speaker names produced a stronger and highly significant bias (WEAT = −0.59, p < 0.01), with most healthy adjectives associated with White speakers.

Conversely, projecting the health adjectives onto our term-based race dimension using a broader, non-vaccination-focused embedding trained on news articles from 2018 to 2021 [26] produced a significant positive score (WEAT = 0.61, p < 0.05). This suggests that health-related associations may be corpus-dependent and that COVID-19 may have amplified the association of unhealthy terms with “Black” in news coverage.

Human validation: health and race

Like the socioeconomic human validation, participants rated their associations between health-related keywords from Fig. 7 and racial groups (Black or White) using a 5-point Likert scale: 1 (Strongly Associated with White), 2 (Associated with White), 3 (Neutral/No Association), 4 (Associated with Black), and 5 (Strongly Associated with Black). We had 21 participants (out of 26 invited), 17 Black, 3 White, 1 Indian. Results for the health stereotypes ratings (80 items) indicated slight agreement among raters (Krippendorff’s α = 0.19, 95% CI [0.13, 0.26]; ICC(A,1) = 0.19, p < 0.001), lower than for the socioeconomic items and suggests substantial variation in participant rankings.

Figure 8 reveals a significant positive correlation (r = 0.27, p < 0.05) between the health-related semantic associations or biases captured by the embeddings and human-derived ratings. However, the association between human and word embeddings for health keywords is weaker than that observed for socioeconomic terms.

Figure 8.

Figure 8

Correlation between word embedding results and human ratings (health)

Limitations

We acknowledge a few limitations of this study. First, our word2vec embedding model is limited in how it accounts for context, especially since race bias can be more nuanced and contextual. Word2vec is often considered a “black box” model, measuring association strength using cosine similarity, but cannot account for contextual meaning. It models all instances of a word in a corpus with a single vector, while contextualised embeddings, such as BERT [12], model each instance of a word as a vector [2]. Humans likely reconstruct a word’s meaning each time we encounter the word [2]. We used the word2vec model for simplicity, but note that more context-aware models could yield different results [5, 40].

We also note that our embedding-based metric implies a binary understanding of race (black and white), but acknowledge that race exists on a spectrum in South Africa and beyond.

Conclusion

This paper uses computational methods to empirically investigate racism in South African COVID-19 vaccination news. We use a relatively new machine learning technique (word embeddings) for the investigation due to the subjective and non-representative limitations of previous studies. Despite their potential, techniques like word embeddings have been underutilised in studying stereotypes in the Global South and have not been used to study stereotypes and racism in South Africa, particularly in the news media. We propose a new method of investigating social biases that embed speakers extracted from news articles, and we validated our findings in numerous ways, including human-derived techniques.

Our findings suggest that the socioeconomic results were consistent and echoed the literature on racism in the South African news. Previous literature finds that apartheid’s legacy of racial inequality and discrimination persists in South Africa’s post-apartheid news media [7, 14, 18, 21, 29, 30, 36, 44]). In contrast, associations in the health-related tests were weaker, mixed and likely corpus-dependent, and COVID-19 may have amplified the association between “Black” and unhealthy terms in news coverage. Our findings also generalised beyond COVID-19 vaccination news, with similar racial associations observed in an embedding trained on a broader, non-vaccination-focused corpus. Human validation shows that the embeddings capture human biases in South Africa, especially for socioeconomic terms.

Machine-learned models, including word embeddings, influence daily life through recommendations, search results, summaries, and translated text [2]. This study validates concerns that models like word2vec can absorb and encode harmful biases during training (e.g., [2, 6, 8]). While word2vec and similar models are not inherently biased, they often capture and amplify pervasive societal biases, such as racial prejudice, learned from human data. These biases can then be reproduced or intensified in downstream applications [2]. Although much of the focus on machine-learning bias has been on gender, this paper highlights the importance of considering biases related to race and other stigmatising attributes.

Importantly, given South Africa’s news media’s role in perpetuating state-sanctioned racism during apartheid [4, 7, 14, 37] and racially biased reporting in post-apartheid South Africa [7, 14, 18, 21, 29, 30, 36, 44]), various measures have been introduced to address these issues. These include legal prohibitions against racism, initiatives to increase black media ownership, and establishing diversity-focused policies and institutions to foster more equitable media representation. For example, the Media Development and Diversity Agency (MDDA), established in 2003 as a collaboration between the South African Government and major commercial media entities, provides funding to support community print and broadcast media for historically disadvantaged groups, underrepresented languages, and inadequately served communities [28, 45]. Its goal is to increase plurality in South Africa’s highly concentrated media market [45].

Despite these interventions, racism persists in news coverage, embedded implicitly in the language used by journalists and news outlets. Such biases are harmful and can systematically and unduly constrain groups of people’s well-being and life chances, especially when perpetuated during a public health crisis. News representations (e.g., that whites are rich and taxpayers and blacks are social-welfare reliant) reinforce harmful stigma, discrimination, and, ultimately, inequality. The media’s influence and power in shaping public opinion and action, due to its wide reach [19], can thus reinforce and amplify racism in South Africa through these representations.

Neural word embeddings could be used as a monitoring and/or evaluation tool by policymakers and similar actors to combat these issues in South African institutions and structures, including the news media. This research establishes a foundation for future studies seeking to computationally explore race and other social biases in South Africa.

Supplementary Information

Below is the link to the electronic supplementary material.

(DOCX 1.2 MB) (1.2MB, docx)

Acknowledgements

We thank Media Monitoring Africa for kindly granting us access to their vaccination news archive. We also appreciate the valuable input from the team members of the People Opinion Networks (PONs) project.

Abbreviations

ABASA

Association of Black Accountants of South Africa

BERT

Bidirectional Encoder Representations from Transformers

BLA

Black Lawyers Association

HIV

Human Immunodeficiency Virus

HRC

Human Rights Commission

HTML

Hypertext Markup Language

ICC

Intraclass Correlation Coefficients

MENA

Middle East and North Africa

MDDA

Media Development and Diversity Agency

MMA

Media Monitoring Africa

MMP

Media Monitoring Project

NSFAS

National Student Financial Aid Scheme

PSA

Public Service Announcements

SABC

South African Broadcasting Corporation

SASSA

South African Social Security Agency

TRC

Truth and Reconciliation Commission

WEAT

Word Embedding Association Test

Author contributions

NO analysed the data, conceptualised and wrote the paper. KD and MP designed the study and provided guidance. All authors contributed to, reviewed, and approved the paper.

Funding information

This research was supported by funding from the National Research Foundation of South Africa (Grant UID: 137755), the South African Centre for Digital Language Resources (SADiLaR) (Grant OR-AAALV), and the University of Johannesburg. We also gratefully acknowledge the Swiss National Science Foundation for their financial support of this research (grant number: 10001AL_205032).

Data availability

The data that support the findings of this study are available from Media Monitoring Africa but restrictions apply to the availability of these data, which were used under license for the current study, and so are not publicly available. Data are however available from the authors upon reasonable request and with permission of Media Monitoring Africa.

Declarations

Ethics approval and consent to participate

This study was conducted in strict accordance with ethical guidelines (University of Johannesburg ethical clearance code: 2025SCiiS089). All human participants provided informed consent prior to their involvement, having been fully briefed on the study’s purpose and procedures. Confidentiality and anonymity were guaranteed and maintained throughout the research process.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Footnotes

1

This “other” seems to increasingly be black foreign nationals [30, 44].

2

See supplemental material for details about speaker-based dimension.

3

See Table S2 in the supplemental material for the source and classification (black or white) of each race stereotype.

4

See Table S3 in supplemental material for the healthy and unhealthy adjectives.

5

The socioeconomic survey questions can be found here: https://forms.office.com/r/hea0NSQ418 and health ones here: https://forms.office.com/r/terV7BdxFa (Accessed 29 June 2025).

6

See supplemental material for more details on these reliability measures.

7

See supplemental material for more details on speakers, speaker embedding, and speaker-based race dimension.

8

See supplemental material.

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Nnaemeka Ohamadike, Email: 224032657@student.uj.ac.za.

Kevin Durrheim, Email: kevind@uj.ac.za.

References

  • 1. Alhadeff V (2018) Journalism during South Africa’s apartheid regime. Cosmop Civ Soc, Interdiscip J 10(2):7–11 [Google Scholar]
  • 2. Arseniev-Koehler A, Foster JG (2022) Machine learning as a model for cultural learning: teaching an algorithm what it means to be fat. Sociol Methods Res 51(4):1484–1539 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Berger G (2000) Submission for HRC investigation into racism and the media. Unpublished Paper, submitted to the Human Rights Commission
  • 4. Berger G (2001) Problematising race for journalists: critical reflections on the South African human rights commission inquiry into media racism. Crit Arts 15(1–2):69–96 [Google Scholar]
  • 5. Birunda SS, Devi RK (2021) A review on word embedding techniques for text classification. In: Raj JS, Iliyasu AM, Bestak R, Baig ZA (eds) Innovative data communication technologies and application. Lecture notes on data engineering and communications technologies, vol 59. Springer, Singapore [Google Scholar]
  • 6. Bolukbasi T, Chang KW, Zou JY, Saligrama V, Kalai AT (2016) Man is to computer programmer as woman is to homemaker? Debiasing word embeddings. Adv. Neural Inf. Process. Syst. 29
  • 7. Braude C (1999) Cultural bloodstains: towards understanding the legacy of apartheid and the perpetuation of racial stereotypes in the contemporary South African media. In: Human rights commission, interim report into racism in the media. South African Human Rights Commission, Johannesburg [Google Scholar]
  • 8. Caliskan A, Bryson JJ, Narayanan A (2017) Semantics derived automatically from language corpora contain human-like biases. Science 356(6334):183–186 [DOI] [PubMed] [Google Scholar]
  • 9. Charlesworth TE, Banaji MR (2022) Word embeddings reveal social group attitudes and stereotypes in large language corpora. In: Handbook of language analysis in psychology, pp 594–608 [Google Scholar]
  • 10. ChatGPT (2024a) Personal Communication on Race Stereotypes. OpenAI. https://chatgpt.com/share/2d6e3a17-e726-497e-b654-0a4ae9e308e0. Retrieved 19 May 2024
  • 11. ChatGPT (2024b) Personal Communication on Black and White South African Names. OpenAI. https://chatgpt.com/share/de3c1ef8-678a-4e89-ae33-fbf24ad28cb9. Retrieved 19 May 2024
  • 12. Devlin J, Chang MW, Lee K, Toutanova K (2018) Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805
  • 13. Dris-Aït-Hamadouche L, Zoubir Y (2007) The Maghreb: social, political, and economic developments. Perspect Glob Dev Technol 6:261–290. 10.1163/156914907X207757 [Google Scholar]
  • 14. Durrheim K, Quayle M, Whitehead K, Kriel A (2005) Denying racism: discursive strategies used by the South African media. Crit Arts 19(1–2):167–186 [Google Scholar]
  • 15. Durrheim K, Schuld M, Mafunda M, Mazibuko S (2023) Using word embeddings to investigate cultural biases. Br J Soc Psychol 62:617–629. 10.1111/bjso.12560 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Garg N, Schiebinger L, Jurafsky D, Zou J (2018) Word embeddings quantify 100 years of gender and ethnic stereotypes. Proc Natl Acad Sci USA 115:E3635–E3644. 10.1073/pnas.1720347115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Glaser D (2000) The media inquiry reports of the South African human rights commission: a critique. Afr Aff 99(396):373–393 [Google Scholar]
  • 18. Govenden P (2022) Does black economic empowerment ownership matter? A decolonial analysis of “black visibility” in South Africa’s print media content, 1994–2014. Afr Journal Stud 43(2):1–20. 10.1080/23743670.2022.2096090 [Google Scholar]
  • 19. Green M (2012) Media representations of gratuitous violence in South Africa. Doctoral dissertation
  • 20. Greenwald AG, McGhee DE, Schwartz JL (1998) Measuring individual differences in implicit cognition: the implicit association test. J Pers Soc Psychol 74(6):1464 [DOI] [PubMed] [Google Scholar]
  • 21. Human Rights Commission (HRC) (1999) Interim report of the inquiry into racism in the media. South African Human Rights Commission, Johannesburg [Google Scholar]
  • 22. Jacobson M (2020) Social equity considerations: an imperative in a time of a pandemic. Governing. https://www.governing.com/community/Social-Equity-Considerations-An-Imperative-in-a-Time-of-Pandemic.html
  • 23. Kolbe HR (2005). The South African print media: from apartheid to transformation
  • 24. Kozlowski AC, Taddy M, Evans JA (2019) The geometry of culture: analyzing the meanings of class through word embeddings. Am Sociol Rev 84(5):905–949 [Google Scholar]
  • 25. Kurdi B, Seitchik AE, Axt JR, Carroll TJ, Karapetyan A, Kaushik N, Banaji MR (2019) Relationship between the implicit association test and intergroup behavior: a meta-analysis. Am Psychol 74(5):569 [DOI] [PubMed] [Google Scholar]
  • 26. Mafunda MC, Schuld M, Durrheim K, Mazibuko S (2022) A word embedding trained on South African news data. Afr. J. Inf. Commun. 30. 10.23962/ajic.i30.13906
  • 27. Majavu A (2015) Merging the Black press with mainstream newspapers in post-apartheid South Africa: a phenomenological study of journalists at Sowetan newspaper between 2009 and 2012. Doctoral dissertation, Auckland University of Technology
  • 28. Media Development and Diversity Agency (MDDA) (2024) About us. https://www.mdda.org.za/overview.html. Accessed 10 Jun 2024
  • 29. Media Monitoring Project (1999) The news in black and white: an investigation into racial stereotyping in the media. In: Human rights commission, interim report into racism in the media. South African Human Rights Commission, Johannesburg [Google Scholar]
  • 30. Media Monitoring Project (2006) Revealing Race: an analysis of the coverage of race and xenophobia in the South African print media. https://www.mediamonitoringafrica.org/images/uploads/Final_report_v5_Print_final.pdf. Accessed 06 Jun 2024
  • 31. Merrett C (2001) A tale of two paradoxes: media censorship in South Africa, pre-liberation and post-apartheid. Crit Arts 15(1–2):50–68 [Google Scholar]
  • 32. Mikolov T, Sutskever I, Chen K, Corrado G, Dean J (2013) Efficient Estimation of Word Representations in Vector Space. arXiv:1301.3781
  • 33. Nattrass N, Seekings J (2016) “Two nations”? Race and economic inequality in South Africa today. Daedalus 130:45–70 [Google Scholar]
  • 34. Oxfam (2021) COVID-19 in South Africa: the intersections of race and inequality. https://www.oxfam.org.za/covid-19-in-sa/. Accessed 24 Nov 2024
  • 35. Pennington J, Socher R, Manning C (2014) Glove: global vectors for word representation. In: Moschitti A, Pang B (eds) Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP); Doha, Qatar Association for computational linguistics, Stroudsburg. 10.3115/v1/D14-1162 [Google Scholar]
  • 36. Pityana NB (2000) South Africa’s inquiry into racism in the media: the role of national institutions in the promotion and protection of human rights. Afr Aff 99(397):525–532 [Google Scholar]
  • 37. Posel D (1990) Symbolizing violence: state and media discourse in TV coverage of township protest, 1985–7. In: Political violence and the struggle in South Africa. Palgrave Macmillan UK, London, pp 154–171 [Google Scholar]
  • 38. Rahimi Z, Homayounpour MM (2023) The impact of preprocessing on word embedding quality: a comparative study. Lang Resour Eval 57(1):257–291 [Google Scholar]
  • 39. Roberto KJ, Johnson AF, Rauhaus BM (2020) Stigmatization and prejudice during the COVID-19 pandemic. Adm Theory Prax 42(3):364–378 [Google Scholar]
  • 40. Schuld M, Durrheim K, Mafunda M (2023) Speaker landscapes: Machine learning opens a window on the everyday language of opinion. Commun. Methods Meas.: 1–17
  • 41. Shuyo N (2014). langdetect: Language detection library ported from Google’s language-detection
  • 42. Talbot K, Durrheim K (2012) The Princeton trilogy revisited: how have racial stereotypes changed in South Africa? S Afr J Psychol 42(4):476–491 [Google Scholar]
  • 43. Truth and Reconciliation Commission of South Africa (TRC) (1998) Report of the truth and reconciliation commission: volume four, Chapter Six. [Online]. Institutional Hearing. https://www.justice.gov.za/trc/report/finalreport/Volume%204.pdf. Accessed 06 Jun 2024 [Google Scholar]
  • 44. Wasserman H (2007) Is Our Media (Still) Racist? Global Media J.: Afr. Ed. 1(1). 10.5789/1-1-53
  • 45. Wasserman H (2020) The state of South African media: a space to contest democracy. Publizistik 65(3):451–465 [Google Scholar]
  • 46. World Bank (2021) Middle East and North Africa. https://www.worldbank.org/en/region/mena/overview. Accessed 18 Dec 2023

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

(DOCX 1.2 MB) (1.2MB, docx)

Data Availability Statement

The data that support the findings of this study are available from Media Monitoring Africa but restrictions apply to the availability of these data, which were used under license for the current study, and so are not publicly available. Data are however available from the authors upon reasonable request and with permission of Media Monitoring Africa.


Articles from Epj Data Science are provided here courtesy of Springer

RESOURCES