SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.08977 · 2018

Characterizing and Detecting Hateful Users on Twitter

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1803.08977.json · badge: /api/ran/1803.08977.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
manoelhortaribeiro/HatefulUsersTwitter canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
FunctionStatusWhere it lives
tweepy2neo4j_materialize_user Ran
ran on a synthesized input
manoelhortaribeiro/HatefulUsersTwitter/crawler/neo4j_schema.py
code served (permissive licence) · get_code("148628d0db229e14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from datetime import datetime

class MockUser:
    def __init__(self):
        self.statuses_count = 42
        self.followers_count = 1000
        self.friends_count = 500
        self.favourites_count = 250
        self.name = "Test User"
        self.listed_count = 15
        self.screen_name = "testuser"
        self.time_zone = "UTC"
        self.description = "A test user account"
        self.location = "San Francisco, CA"
        self.profile_image_url = "https://example.com/image.jpg"
        self.lang = "en"
        self.default_profile = False
        self.geo_enabled = True
        self.default_profile_image = False
        self.created_at = datetime(2020, 1, 15, 10, 30, 0)
        self.verified = True

user_neo4j = {}
user = MockUser()
n = 1

ARGS = {
    "user_neo4j": user_neo4j,
    "user": user,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tweepy2string_tweet Ran
ran on a synthesized input
manoelhortaribeiro/HatefulUsersTwitter/crawler/neo4j_schema.py
code served (permissive licence) · get_code("b632759f99e44c73")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from datetime import datetime
from dateutil import tz
import sys

# Create a minimal tweet-like object that mimics tweepy.Tweet
class MockUser:
    def __init__(self, id):
        self.id = id

class MockTweet:
    def __init__(self, tweet_id, text, created_at, favorite_count, retweet_count,
                 retweeted_status=None, quoted_status=None, in_reply_to_screen_name=None,
                 in_reply_to_status_id=None, in_reply_to_user_id=None):
        self.id = tweet_id
        self.full_text = text
        self.created_at = created_at
        self.favorite_count = favorite_count
        self.retweet_count = retweet_count
        self.retweeted_status = retweeted_status
        self.quoted_status = quoted_status
        self.in_reply_to_screen_name = in_reply_to_screen_name
        self.in_reply_to_status_id = in_reply_to_status_id
        self.in_reply_to_user_id = in_reply_to_user_id
        
        # Build _json dict
        self._json = {
            'retweeted_status': retweeted_status,
            'quoted_status': quoted_status,
            'in_reply_to_screen_name': in_reply_to_screen_name
        }
        self.user = MockUser(123)

# Create a simple tweet with no retweets, quotes, or replies
utc = tz.tzutc()
created_at = datetime(2023, 1, 15, 10, 30, 0, tzinfo=utc)

tweet = MockTweet(
    tweet_id=987654321,
    text="Hello world this is a test tweet",
    created_at=created_at,
    favorite_count=42,
    retweet_count=10,
    retweeted_status=None,
    quoted_status=None,
    in_reply_to_screen_name=None,
    in_reply_to_status_id=None,
    in_reply_to_user_id=None
)

ARGS = {
    'tweet': tweet
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
dateutil — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Most current approaches to characterize and detect hate speech focus on \textit{content} posted in Online Social Networks. They face shortcomings to collect and annotate hateful speech due to the incompleteness and noisiness of OSN text and the subjectivity of hate speech. These limitations are often aided with constraints that oversimplify the problem, such as considering only tweets containing hate-related words. In this work we partially address these issues by shifting the focus towards \textit{users}. We develop and employ a robust methodology to collect and annotate hateful users which does not depend directly on lexicon and where the users are annotated given their entire profile. This results in a sample of Twitter's retweet graph containing $100,386$ users, out of which $4,972$ were annotated. We also collect the users who were banned in the three months that followed the data collection. We show that hateful users differ from normal ones in terms of their activity patterns, word usage and as well as network structure. We obtain similar results comparing the neighbors of hateful vs. neighbors of normal users and also suspended users vs. active users, increasing the robustness of our analysis. We observe that hateful users are densely connected, and thus formulate the hate speech detection problem as a task of semi-supervised learning over a graph, exploiting the network of connections on Twitter. We find that a node embedding algorithm, which exploits the graph structure, outperforms content-based approaches for the detection of both hateful ($95\%$ AUC vs $88\%$ AUC) and suspended users ($93\%$ AUC vs $88\%$ AUC). Altogether, we present a user-centric view of hate speech, paving the way for better detection and understanding of this relevant and challenging issue.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1803.08977")
get_code_for_paper("1803.08977")
have("1803.08977")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1803.08977.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1803.08977.svg)](https://syntology.ai/paper/1803.08977)

Connect an agent — have() is free.