adhikasp's picture
Card: census coverage 2007-2026-12, 42.0M rows, single-pass judge
9fb63d1 verified
|
Raw History Blame Contribute Delete
15.3 kB
---
license: odc-by
language: [en]
pretty_name: Hacker News comment annotations (34 LLM-judge questions)
size_categories: [10M<n<100M]
task_categories: [text-classification]
tags: [hacker-news, annotations, llm-as-judge, sentiment, stance, toxicity, parquet]
configs:
- config_name: default
data_files:
- split: train
path: data/*/*.parquet
---
# Hacker News comment annotations
**42.0M Hacker News comments, each answered by an LLM judge on 34 questions**: what the comment does, how hostile, sarcastic or kind it is, how much substance it adds, which topic it covers, whether it is for or against the thread subject, which emotions it shows, where it stands on markets vs regulation, and more. **One row per comment, one column per question.**
This dataset holds **only the labels, keyed by HN item `id`**. No comment text, no usernames. Join it to the companion dataset **[`adhikasp/hackernews`](https://huggingface.co/datasets/adhikasp/hackernews)** (every HN item, monthly parquet, same `id`, same `year` partitions) to get text, authors, parents and timestamps.
## Quick start
All of this runs straight from the Hub with DuckDB; no download needed.
**1. The labels of one comment**
```sql
select * from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet' limit 1;
```
**2. Join with the text: the 10 most hostile comments of 2025**
```sql
select a.hostility, h.by, left(h.text, 200) as text
from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet' a
join 'hf://datasets/adhikasp/hackernews/data/year=2025/*/data.parquet' h using (id)
order by a.hostility desc limit 10;
```
**3. How tone and substance moved by year**
```sql
select year, round(avg(hostility), 3) hostility, round(avg(substance), 3) substance, round(avg(kindness_or_support), 3) kind
from 'hf://datasets/adhikasp/hackernews-annotation/data/*/*.parquet'
where year >= 2022 group by year order by year;
```
**4. What do people talk about?** (a choice question: the winning option is the column, the probabilities are `<column>_probs`)
```sql
select topic, count(*) n from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet'
group by 1 order by n desc;
```
**5. Combine questions: insightful, confident comments about AI**
```sql
select id, substance, certainty from 'hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet'
where mentions_ai > 0.9 and substance >= 2.5 and certainty >= 2 limit 20;
```
Pandas / Polars work the same way (`pl.scan_parquet("hf://datasets/adhikasp/hackernews-annotation/data/year=2025/*.parquet")`).
## Coverage
| Comment year | Annotated comments | Share of all non-placeholder comments |
|---|---|---|
| 2007 | 68,976 | 99.4% |
| 2008 | 238,314 | 98.8% |
| 2009 | 470,144 | 98.5% |
| 2010 | 810,746 | 99.3% |
| 2011 | 1,000,159 | 98.6% |
| 2012 | 1,205,635 | 99.4% |
| 2013 | 1,602,139 | 99.1% |
| 2014 | 1,458,159 | 99.5% |
| 2015 | 1,594,510 | 99.9% |
| 2016 | 2,033,959 | 99.9% |
| 2017 | 2,280,853 | 99.9% |
| 2018 | 2,307,558 | 99.8% |
| 2019 | 2,660,479 | 99.7% |
| 2020 | 3,105,257 | 99.4% |
| 2021 | 3,627,956 | 99.7% |
| 2022 | 3,808,501 | 99.1% |
| 2023 | 3,969,552 | 99.4% |
| 2024 | 3,083,593 | 99.0% |
| 2025 | 3,242,609 | 99.4% |
| 2026 | 3,445,442 | 99.5% |
Every comment of 2007 to 2026-12 that had text is annotated (99.4% of all non-placeholder comments), except a few items whose thread root the pipeline could not resolve (about 1%); `[dead]` and `[flagged]` placeholders were dropped. 2007 to 2021 was annotated in a backfill finished 2026-11-30, so those years are a census too, not the earlier stratified 648k sample. Later versions may add new rows as new files.
## Schema
One row per comment. `year` comes from the folder name. Rows are sorted by `id`.
| column | type | meaning |
|---|---|---|
| `id` | int64 | HN item id (join key) |
| 23 yes/no columns | float32 | probability the answer is **yes**, 0..1 |
| 5 scale columns | float32 | position on the scale, 0 to N-1, interpolated (`hostility` 1.5 sits between "neutral" and "mildly rude") |
| 6 choice columns | string | the winning option key |
| `<choice>_probs` | list<float32> | probability of each option, in the order the options are listed below |
The 34 columns and their exact options are in the next section.
## The 34 questions
`yes/no` columns are the probability of "yes". `scale` columns are a position 0..N-1. `choice` columns hold the winning option (plus `<column>_probs`, one probability per option in the listed order).
### Discourse moves
- **`rhetorical_move`** (choice): What is the main thing this comment does?
- Options: `asserts` (States a claim or opinion); `rebuts` (Rebuts or corrects a previous claim); `asks` (Asks a question); `anecdote` (Tells a personal story or experience); `joke` (Makes a joke or quip); `shares_source` (Shares a link, quote or source); `other` (Something else)
- **`reply_intent`** (choice): What is the main purpose of this comment?
- Options: `thanks_or_praise` (Thanks, praise or compliment); `answers_or_advises` (Answers a question or gives practical advice or how-to help); `adds_information` (Adds facts, context or an explanation to the discussion); `corrects` (Corrects an error or pushes back on a claim); `argues_opinion` (Argues for an opinion or position); `shares_experience` (Shares a personal experience or story); `asks_or_clarifies` (Asks a question or asks for clarification); `promotes_own_work` (Promotes or announces the author's own project, product or company); `job_post` (A job ad or a "seeking work" / "who is hiring" style post); `moderates` (Moderates, scolds or points to site rules); `jokes` (Jokes or banter); `other` (Something else)
- **`first_hand_experience`** (yes/no): Does the author describe something they personally did, built, saw or experienced (not a general claim)?
- **`cites_concrete_fact`** (yes/no): Does the comment contain a specific, checkable fact, number, date, name or quoted source?
- **`claims_expertise`** (yes/no): Does the author invoke their own professional expertise, job or field experience as a reason to be believed?
- **`makes_prediction`** (yes/no): Does the author predict what will happen in the future?
- **`concedes`** (yes/no): Does the author concede a point, admit they were wrong, or say they changed their mind?
- **`genuine_question`** (yes/no): Is the author sincerely asking for information (not a rhetorical question)?
- **`disagrees_with_parent`** (yes/no): Is the author disagreeing with, or pushing back on, the parent comment (or the article if there is no parent)?
- **`agrees_with_parent`** (yes/no): Does the author explicitly agree with, endorse or build on the parent comment (or the article if there is no parent)?
- **`author_affiliation`** (yes/no): Does the author say or clearly imply that they built, work on, sell, or work for the thing being discussed?
- **`substance`** (scale): How much substance does this comment contribute to a thoughtful discussion?
- Options: 0: Nothing: a one-liner, filler, or pure reaction | 1: Little: a shallow remark or a bare opinion | 2: Solid: reasoned, informative or specific | 3: Insightful: adds a new angle, evidence or expertise most readers would value
- **`certainty`** (scale): How certain does the author sound?
- Options: 0: Very hedged: "maybe", "I think", "not sure" | 1: Somewhat hedged | 2: Confident | 3: Absolute: states things as settled fact with no qualification
### Tone and civility
- **`hostility`** (scale): How hostile is the tone toward other people (not toward ideas or companies)?
- Options: 0: Courteous or friendly | 1: Neutral | 2: Mildly rude or dismissive | 3: Hostile, insulting or contemptuous
- **`sarcasm`** (yes/no): Is the comment sarcastic, mocking or ironic?
- **`personal_attack`** (yes/no): Does the comment attack the person it replies to (their intelligence, honesty, motives or character) instead of their argument?
- **`condescension`** (yes/no): Is the author condescending, e.g. implying the other person doesn't understand or hasn't thought it through?
- **`kindness_or_support`** (yes/no): Does the author show kindness, encouragement, empathy or support toward another person?
- **`guideline_violation`** (choice): Does this comment break Hacker News norms? Pick the closest problem, or none.
- Options: `none` (No problem); `flamebait` (Flamebait, inflammatory or ideological battle); `shallow_dismissal` (Shallow dismissal or snark with no substance); `tangent` (Off-topic tangent or hijacks the thread); `personal` (Personal attack or name-calling); `low_effort` (Low-effort, repetitive or generic)
### Topic and stance
- **`topic`** (choice): Which theme is this comment mainly about?
- Options: `ai_ml` (AI, LLMs, machine learning); `software_eng` (Software engineering practice, tools, architecture); `programming_languages` (Programming languages and compilers); `security_privacy` (Security, privacy, surveillance); `big_tech` (Big tech companies and their products); `startups_vc` (Startups, funding, founders); `hardware` (Hardware, chips, devices); `os_open_source` (Operating systems, Linux, open source); `web_internet` (Web, browsers, internet infrastructure); `science_math` (Science, math, space); `health_bio` (Health, medicine, biology); `finance_crypto` (Finance, crypto, markets); `us_politics` (US politics and government); `world_politics_war` (International politics, war, geopolitics); `law_regulation` (Law, courts, regulation, copyright); `labor_careers` (Jobs, careers, layoffs, hiring, remote work); `economics` (Economics, housing, cost of living); `energy_climate` (Energy, climate, transport); `education` (Education and learning); `media_culture` (Media, culture, games, entertainment); `hn_meta` (About Hacker News or the discussion itself); `personal_life` (Personal life, relationships, wellbeing); `other` (Anything else)
- **`stance_toward_thread_subject`** (choice): What is the author's stance toward the main subject of the thread (the story title)? Choose none if neutral, factual or off-topic.
- Options: `against` (Critical of or opposed to the subject); `for` (Supportive of or positive about the subject); `none` (No clear stance)
- **`mentions_ai`** (yes/no): Does the comment discuss AI, LLMs, chatbots or machine learning (even if it is not the main theme)?
- **`mentions_jobs_money_career`** (yes/no): Does the comment discuss jobs, careers, hiring, salaries, layoffs, or personal finances?
- **`mentions_china`** (yes/no): Does the comment discuss China or Chinese companies, government or products?
- **`mentions_regulation_privacy`** (yes/no): Does the comment discuss laws, regulation, privacy, surveillance or copyright?
### Emotion
- **`fear_or_worry`** (yes/no): Does the author express fear, worry or alarm about consequences?
- **`anger`** (yes/no): Does the author express anger or outrage?
- **`enthusiasm`** (yes/no): Does the author express excitement or enthusiasm?
- **`cynicism`** (yes/no): Does the author express cynicism, resignation or distrust of institutions or companies?
### Worldview
- **`expresses_policy_view`** (yes/no): Does the author take a position on government policy, regulation or the role of markets?
- **`market_vs_regulation`** (scale): Where does the author stand on markets versus government intervention? (Only meaningful if they take a position.)
- Options: 0: Strongly favours regulation or government action | 1: Leans toward regulation | 2: Balanced or unclear | 3: Leans toward free markets | 4: Strongly favours free markets
- **`tech_outlook`** (scale): How optimistic is the author about technology's effect on society? (Only meaningful if they take a position.)
- Options: 0: Very pessimistic | 1: Somewhat pessimistic | 2: Mixed or neutral | 3: Somewhat optimistic | 4: Very optimistic
- **`blame_target`** (choice): If the author assigns blame for a problem, who or what is blamed?
- Options: `individuals` (Individual people); `companies` (Companies or executives); `government` (Government or politicians); `technology` (The technology itself); `society_culture` (Society, culture or incentives in general); `none` (No blame assigned)
- **`us_vs_them_language`** (yes/no): Does the author talk about a group as 'they/these people' (e.g. tech bros, boomers, HN, Americans, devs) in a way that sets up in-group versus out-group?
## How the labels were made
- **Judge: `perplexity/pplx-decider-v1.3`** (free tier) through the OpenRouter **Decisions API**, a model built for typed decisions: you send a text and typed questions (yes/no, scale, choice) and get calibrated probabilities back instead of free text. Each comment is judged in two calls (23 questions, then 11 questions), both with the same context.
- **What the judge sees:** the thread title, the **parent comment** (first 500 characters, "none" for top-level comments) and **the comment** (first 1200 characters). Questions like `disagrees_with_parent` and `agrees_with_parent` are only meaningful for replies. A comment is a reply when its `parent` (in `adhikasp/hackernews`) is itself a comment; if the parent is a story it is top-level, and the judge then compares with the article.
## How reliable is it
Directional validation, not a human-annotated benchmark. The first 23 questions were checked on a gold set of 68 stratified comments (2024-2026) read by the author's AI assistant, plus spot checks of extreme scores. The 11 newer questions were checked by running 2,000 comments through a second judge (`liquid/d1.2`) and reading samples.
- Asking all questions at once vs one at a time gives the **same answer 88-100% of the time** on the first 23 questions.
- **Solid:** `rhetorical_move`, `genuine_question`, `first_hand_experience`, `disagrees_with_parent`, `sarcasm`, `hostility`, `claims_expertise`, `author_affiliation` (two judges agree 98.6%), `mentions_ai`, `mentions_jobs_money_career`, `mentions_china`, `mentions_regulation_privacy` (two judges agree 97-99%), `substance`, `kindness_or_support`.
- **Use with caution:** `cites_concrete_fact` over-fires (use `> 0.9`); `concedes` (1 of 4 positives wrong); `topic` (~85%); `stance_toward_thread_subject` (ambiguous in replies); `anger` (mild irritation scores high); `reply_intent` (two judges agree only 73% across 12 classes); `agrees_with_parent` (noisy, many scores near 0.5; mask to replies); `certainty` (72% of comments land on "confident", the hedged tail is the useful part); `guideline_violation` (89% none; judges agree 90%).
- **Extremes are validated, mid-range is not** for `us_vs_them_language`, `fear_or_worry`, `cynicism`, `market_vs_regulation` and `tech_outlook`. `market_vs_regulation`, `tech_outlook` and `blame_target` only make sense where `expresses_policy_view` is high (rule of thumb `> 0.8`).
- **Validated on 2024-2026 comments only.** Labels on older comments are untested.
- These are **model labels, not human labels**. Use levels as relative (compare groups, years, topics), not as absolute truth.
## License and source
ODC-By, matching the companion dataset. Hacker News content belongs to its authors and Y Combinator; this dataset contains only derived labels. The pipeline (comment framing, sampling, annotation) is the author's `hn-annotate` project.