Papers › Automated Hate Speech Detection and the Problem of Offensive Language

Automated Hate Speech Detection and the Problem of Offensive Language

11 Mar 2017arXiv:1703.04009archive 2025-07-28

Thomas Davidson, Dana Warmsley, Michael Macy, Ingmar Weber

A key challenge for automatic hate-speech detection on social media is the separation of hate speech from other instances of offensive language. Lexical detection methods tend to have low precision because they classify all messages containing particular terms as hate speech and previous work using supervised learning has failed to distinguish between the two categories. We used a crowd-sourced hate speech lexicon to collect tweets containing hate speech keywords. We use crowd-sourcing to label a sample of these tweets into three categories: those containing hate speech, only offensive language, and those with neither. We train a multi-class classifier to distinguish between these different categories. Close analysis of the predictions and the errors shows when we can reliably separate hate speech from other offensive language and when this differentiation is more difficult. We find that racist and homophobic tweets are more likely to be classified as hate speech but that sexist tweets are generally classified as offensive. Tweets without explicit hate keywords are also more difficult to classify.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1703.04009")

Code

Syntology Ran 0 of 12 code samples harvested from 2 repositories linked to this paper; 12 have no recorded run.

By repository: community (archive-listed): 12 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

unitaryai/detoxify mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 0 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

aps datascisteven/Twitter-Sentiment-Analysis/utils.py community (archive-listed) unverified MIT (permissive) · ae23af8150e804a8 · report
build_confusion_matrix renuka-fernando/sinhalese_language_racism_detection/classifier/python/classifier/validate.py community (archive-listed) unverified MIT (permissive) · 6998a0b567cfdf03 · report
build_dictionary renuka-fernando/sinhalese_language_racism_detection/classifier/python/classifier/utils.py community (archive-listed) unverified MIT (permissive) · 6c006d10e9e16468 · report
calculate_precision_recall_f1score renuka-fernando/sinhalese_language_racism_detection/classifier/python/classifier/validate.py community (archive-listed) unverified MIT (permissive) · 5f201679d4d031d9 · report
get_fixed_vowel renuka-fernando/sinhalese_language_racism_detection/sinhala-preprocessing/python/preprocessing/sinhalese_characters.py community (archive-listed) unverified MIT (permissive) · dbd94abf8b2010af · report
group_list datascisteven/Twitter-Sentiment-Analysis/utils.py community (archive-listed) unverified MIT (permissive) · e60e421b1725f852 · report
is_sinhalese_letter renuka-fernando/sinhalese_language_racism_detection/sinhala-preprocessing/python/preprocessing/sinhalese_characters.py community (archive-listed) unverified MIT (permissive) · be4ae7e1407616bd · report
is_sinhalese_vowel renuka-fernando/sinhalese_language_racism_detection/sinhala-preprocessing/python/preprocessing/sinhalese_characters.py community (archive-listed) unverified MIT (permissive) · 1cbda2e6d7b35c02 · report
prediction renuka-fernando/sinhalese_language_racism_detection/classifier/python/classifier/validate.py community (archive-listed) unverified MIT (permissive) · 3a614652957cc69a · report
remove_retweet_state renuka-fernando/sinhalese_language_racism_detection/sinhala-preprocessing/python/preprocessing/sinhalese_tokenizer.py community (archive-listed) unverified MIT (permissive) · 271b03c1e8f5a7a4 · report
replace_mention renuka-fernando/sinhalese_language_racism_detection/sinhala-preprocessing/python/preprocessing/sinhalese_tokenizer.py community (archive-listed) unverified MIT (permissive) · 1d2b39f2d2e6969b · report
replace_url renuka-fernando/sinhalese_language_racism_detection/sinhala-preprocessing/python/preprocessing/sinhalese_tokenizer.py community (archive-listed) unverified MIT (permissive) · 175d346107071278 · report

Tasks

Hate Speech Detection

Datasets

Introduced by this paper, per the archive.

Hate Speech and Offensive Language

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections