Skip to content

feat: headline theme analysis script for The Atlantic#7

Open
zachlloyd wants to merge 1 commit intomainfrom
oz/theatlantic-headline-themes
Open

feat: headline theme analysis script for The Atlantic#7
zachlloyd wants to merge 1 commit intomainfrom
oz/theatlantic-headline-themes

Conversation

@zachlloyd
Copy link
Contributor

Headline Theme Analysis for The Atlantic

Adds a site-scoped, idempotent userScript that:

  1. Collects visible headlines from theatlantic.com homepage using resilient selectors (h1-h4, [role='heading'], class/data-attribute fallbacks).
  2. Classifies headlines into 7 broad themes (Politics, Economy, Tech, Climate, Health, Culture, International) via keyword-seed matching.
  3. Computes a top-keywords frequency table across all headlines.
  4. Renders a non-destructive, dismissible floating overlay showing theme distribution (with progress bars), example headlines per theme, and a keyword tag cloud.

The script guards against repeated injection and exits cleanly when no headlines are found.


This PR was generated with Oz.

Site-scoped, idempotent userScript that collects headlines from
theatlantic.com, classifies them into broad themes via keyword
clustering, and renders a dismissible floating overlay with theme
distribution bars, example headlines, and top keywords.

Co-Authored-By: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant