# Hate Speech and Offensive Language Dataset 24,783 English tweets collected with a lexicon of hate-speech terms from hatebase.org and labelled by CrowdFlower workers as hate speech (1,430), offensive language (19,190) or neither (4,163), the data of Davidson, Warmsley, Macy and Weber, 'Automated Hate Speech Detection and the Problem of Offensive Language' (ICWSM 2017). Each tweet has the number of workers who coded it (22,807 were coded by three, the most by any is 9), how many of them chose each of the three labels, and the label chosen by the majority. The file holds no tweet IDs, dates or user names. ## At a glance - **Platform:** Twitter (X) - **Tables:** posts (24,783 rows), annotations (24,783 rows) - **Structure:** Labelled data, Text - **Version:** 1.0.0 - **Licence:** MIT; SPDX `MIT` - **Original DOI:** 10.1609/icwsm.v11i1.14955 ## Contents | Path | What it is | |---|---| | `data/posts.parquet` | The posts table (canonical, Parquet) | | `csv/posts.csv.gz` | The same table as gzip CSV | | `jsonl/posts.jsonl.gz` | The same table as gzip JSON Lines | | `data/annotations.parquet` | The annotations table (canonical, Parquet) | | `csv/annotations.csv.gz` | The same table as gzip CSV | | `docs/upstream/` | The upstream documentation, verbatim | | `original/` | The 3 upstream file(s), byte for byte | | `datapackage.json`, `croissant.json` | Machine-readable descriptions of this package | | `CITATION.cff`, `CITATION.bib` | How to cite | | `LICENSE.md` | Licence and terms | | `manifest-sha256.txt` | SHA-256 checksum of every file | ## Tables and columns ### posts (24,783 rows) Pieces of content people wrote: posts, comments, replies, tweets, messages, reviews. | Column | Type | Meaning | |---|---|---| | `post_id` | string | An identifier minted by ECHO (echo:hate-offensive-2017:); upstream has none. | | `text` | string | The tweet text (tweet upstream). (quality: Kept as upstream wrote it. HTML entities are not decoded (814 tweets contain &), and 917 tweets contain line breaks.) | | `x_index` | string | The unnamed first column of the upstream file, a running index. It runs from 0 to 25296 with gaps (the file has 24,783 rows), so it is not a row count. | ### annotations (24,783 rows) Labels attached to posts, users, threads, links or text spans, by people, models or rules. | Column | Type | Meaning | |---|---|---| | `target_id` | string | The minted post_id of the labelled tweet. | | `label` | string | class upstream: the label chosen by most coders. 0 hate speech, 1 offensive language, 2 neither. | | `label_text` | string | The meaning of the class code, from the upstream readme. | | `x_coders` | integer | count upstream: how many CrowdFlower workers coded the tweet (at least 3; more where judgments were unreliable, according to the readme). | | `x_votes_hate_speech` | integer | hate_speech upstream: workers who judged the tweet hate speech. | | `x_votes_offensive` | integer | offensive_language upstream: workers who judged it offensive. | | `x_votes_neither` | integer | neither upstream: workers who judged it neither. | | `target_type` | string | post | user | thread | edge | span | item | | `task` | string | What is being labelled (toxicity, stance, check-worthiness…). | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/hate-offensive-2017/v1.0.0/data/posts.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/hate-offensive-2017/v1.0.0/data/posts.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/hate-offensive-2017/v1.0.0/data/posts.parquet") ``` ## How this package was made ECHO converted the upstream file(s) listed under `original/` into the tables above, following the [ECHO Data Package 1.0.0](https://echo.directory/docs/edp/1.0/) standard. Every value was checked against the source during conversion: no row was dropped and no value was changed except as described here. - The upstream readme describes a file called labeled_data.csv and a pickled pandas data frame; the store holds the CSV under the name hate_speech.csv, and no pickle. The columns are those the readme describes plus the leading index. - In every row the class is the label with the most votes, and no row has a tie between labels. - The tweet text contains the user mentions and, in many tweets, slurs and other abusive language, exactly as collected. - A stray Windows file-metadata file (labeled_data.csv Zone.Identifier) in the source folder is not packaged. - `posts.text`: Kept as upstream wrote it. HTML entities are not decoded (814 tweets contain &), and 917 tweets contain line breaks. ## Credit - **Thomas Davidson**, creator (https://github.com/t-davidson/hate-speech-and-offensive-language) - **Dana Warmsley**, creator - **Michael Macy**, creator - **Ingmar Weber**, creator - **ECHO, Syracuse University**, packager (https://echo.directory) The upstream documentation is preserved verbatim in `docs/upstream/`. ## Licence and terms MIT; SPDX `MIT`, https://opensource.org/licenses/MIT. See `LICENSE.md` for the upstream terms. The upstream repository carries an MIT licence (copyright 2017 Tom Davidson), reproduced in LICENSE.md. The tweets themselves are posts on Twitter. ## Citation ```bibtex @misc{echo2026, title = {ECHO: Exploratory Compendium of Humanity Online}, author = {Switzer, Braden and Zafarani, Reza}, year = {2026}, url = {https://echo.directory}, note = {Syracuse University} } @inproceedings{davidson2017automated, title = {Automated Hate Speech Detection and the Problem of Offensive Language}, author = {Davidson, Thomas and Warmsley, Dana and Macy, Michael and Weber, Ingmar}, booktitle = {ICWSM}, year = {2017} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/hate-offensive-2017/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.