[Paper Review] A Dictionary-based Approach to Racism Detection in Dutch Social Media
This paper presents a dictionary-based approach for detecting racism in Dutch social media comments using manually crafted and word2vec-augmented dictionaries, combined with Support Vector Machines. The best model achieved an F-score of 0.46 for the racist class on unseen test data, with automated expansion providing no statistically significant performance gain despite increased vocabulary coverage.
We present a dictionary-based approach to racism detection in Dutch social media comments, which were retrieved from two public Belgian social media sites likely to attract racist reactions. These comments were labeled as racist or non-racist by multiple annotators. For our approach, three discourse dictionaries were created: first, we created a dictionary by retrieving possibly racist and more neutral terms from the training data, and then augmenting these with more general words to remove some bias. A second dictionary was created through automatic expansion using a exttt{word2vec} model trained on a large corpus of general Dutch text. Finally, a third dictionary was created by manually filtering out incorrect expansions. We trained multiple Support Vector Machines, using the distribution of words over the different categories in the dictionaries as features. The best-performing model used the manually cleaned dictionary and obtained an F-score of 0.46 for the racist class on a test set consisting of unseen Dutch comments, retrieved from the same sites used for the training set. The automated expansion of the dictionary only slightly boosted the model's performance, and this increase in performance was not statistically significant. The fact that the coverage of the expanded dictionaries did increase indicates that the words that were automatically added did occur in the corpus, but were not able to meaningfully impact performance. The dictionaries, code, and the procedure for requesting the corpus are available at: https://github.com/clips/hades
Motivation & Objective
- To develop an automated system for detecting racist language in Dutch social media comments, particularly those not reported through formal channels.
- To investigate whether dictionary-based approaches, enhanced with word2vec embeddings, can effectively classify racist discourse in Dutch online content.
- To evaluate the impact of automated dictionary expansion on classification performance, especially in comparison to manually curated word lists.
- To explore linguistic markers of racism, such as us/them constructions, stereotypes, and specific n-grams, in Dutch social media discourse.
- To create a reusable, open-source tool for racism detection in Dutch, supporting future research and policy efforts.
Proposed method
- Three discourse dictionaries were created: one from annotated training data, one expanded using a word2vec model trained on general Dutch text, and one manually cleaned to remove irrelevant terms.
- Support Vector Machines were trained using word distribution features across the different dictionary categories as input vectors.
- The model used a common-sense definition of racism, including negative generalizations and insults related to ethnicity, nationality, religion, and culture.
- Performance was evaluated using precision, recall, F-score, and AUC on a held-out test set of unseen Dutch comments from the same social media sources.
- The word2vec model was used to automatically expand the initial dictionary by adding semantically related terms from a large Dutch corpus.
- Manual filtering removed low-quality or irrelevant terms added during automatic expansion, aiming to improve feature relevance.
Experimental results
Research questions
- RQ1Can a dictionary-based approach effectively detect racist language in Dutch social media comments using only word distribution features?
- RQ2Does automated expansion of a manually created racism dictionary using word2vec improve classification performance on unseen data?
- RQ3To what extent do linguistic markers such as us/them constructions, stereotypes, and specific n-grams contribute to detecting racist discourse in Dutch online texts?
- RQ4Why does automated dictionary expansion fail to improve performance despite increasing vocabulary coverage?
- RQ5How generalizable is the model when applied to broader social media content beyond anti-Islamic forums?
Key findings
- The best-performing model, using a manually cleaned dictionary, achieved an F-score of 0.46 for the racist class on the test set, indicating moderate but meaningful detection capability.
- The model’s performance on the test set (F-score 0.46) was slightly lower than on cross-validated training data (F-score 0.49), suggesting some overfitting or distribution shift.
- Automated dictionary expansion using word2vec increased vocabulary coverage by over 100% (from 0.014% to 0.035% of the corpus), but did not significantly improve F-score (0.45 vs. 0.46).
- The increase in coverage did not translate into better discrimination between racist and non-racist comments, indicating that the added terms were not discriminative in context.
- The model’s AUC score remained stable at 0.63 across all dictionary variants, suggesting consistent but not strong discriminative power.
- The study found that general stylistic or content-based word categories did not enhance performance when combined with racism-specific word lists.
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.