The build, step by step
- Read the dataset’s column list and pulled every row (4,575 on Dec. 1, 2026) from the NYC Open Data API.
- Profiled each column. Found that the file has one row per complaint and arrest, so a complaint with several arrests appears several times: 4,575 rows, 4,217 distinct complaints.
- Downloaded the NYPD precinct boundaries (NYC Open Data, y76i-bdw7) and simplified them for the web with a short Python script. All 77 precincts in the hate crimes file matched a boundary.
- Wrote the page. It loads the live table from NYC Open Data each visit and falls back to a saved copy if that fails, then does all counting in the browser, so the numbers follow the NYPD’s quarterly updates without anyone rebuilding the page.
- Checked the page’s counts against an independent count in Python, and looked at it on a desktop screen and a phone-sized one.
The exact fields, formulas and grouping rules are in the methodology.
Judgment calls
Calls marked “Claude” were made while building and are open to review.
Count complaints, not rows
- Decision
- Every count is of distinct complaint IDs.
- Why
- Rows repeat once per arrest. Counting rows would inflate any category with many arrests.
- Alternative
- Count rows, as a quick tally of the published file would.
- Effect
- 4,217 hate crimes instead of 4,575; 262 complaints had more than one row.
- Who decided
- Claude
Date each hate crime by when it was reported
- Decision
- Use the record creation date, not the incident year and month.
- Why
- Josh’s standing rule for NYPD complaint data: use the report date, which is how the department counts its own statistics.
- Alternative
- The incident year and month the file also carries.
- Effect
- 47 complaints land in a later year than the incident, a few of them incidents from 2015, 2016 and 2018.
- Who decided
- Carried over from Josh’s rule for NYPD data
Compare the latest months with a three-year average
- Decision
- The opening sentence compares January to September 2026 with the average of the same months in 2023, 2024 and 2025.
- Why
- Josh prefers comparisons with a recent average over a single year-ago figure. Single years swing: January to September 2024 had 535 hate crimes, the same months of 2023 and 2025 about 410 each.
- Alternative
- Compare with January to September 2025 alone, which would show a rise of 17 percent instead of 6.
- Effect
- 480 against an average of 453: 6 percent more.
- Who decided
- Claude, following Josh’s rule against year-over-year defaults
Cut every year to the same months in the motive table
- Decision
- By default the “Who was targeted” table counts January through the latest month (September) for every year. A button shows full years.
- Why
- 2026 has nine months in the file. Beside full years it would look like a drop.
- Alternative
- Full calendar years with 2026 marked as partial.
- Effect
- The table’s grand total is 3,264, not 4,217, while the cut is on; the note under it says so.
- Who decided
- Claude
Group offense codes into ten plain groups
- Decision
- Sort the NYPD’s offense codes into groups such as “Aggravated harassment, 1st degree” and “Criminal mischief and graffiti.”
- Why
- The NYPD’s own top-level group “Miscellaneous penal law” hides that 1,123 of its 1,239 complaints are aggravated harassment in the 1st degree, which covers damage to religious property.
- Alternative
- Show the NYPD’s offense groups as published.
- Effect
- 95 complaints fall into “Everything else.”
- Who decided
- Claude
An arrest means at least one arrest number
- Decision
- A complaint counts as having an arrest if any of its rows lists an arrest ID.
- Why
- The arrest ID is the file’s only record of an arrest. The question readers ask is how many cases led to one, so a complaint with several arrests counts once.
- Alternative
- Count arrests rather than complaints with an arrest (1,982 distinct arrest IDs).
- Effect
- 41 percent of hate crimes reported from 2019 to September 2026 had an arrest as of Dec. 1, 2026.
- Who decided
- Claude
Map raw counts by precinct
- Decision
- Shade precincts by number of hate crimes, not by rate per resident.
- Why
- The file has no finer location than the precinct. Resident population is a poor base for busy districts like Midtown, where many more people pass through than live. The 14th Precinct, Midtown South, is tied for the highest count.
- Alternative
- Rates per 100,000 residents, which would inflate precincts with few residents and many visitors.
- Effect
- The map shows where reports were made, and the text under the heading says counts are not adjusted.
- Who decided
- Claude
Plain names for motives
- Decision
- Rename the NYPD’s capitalized labels, for example “ANTI-MALE HOMOSEXUAL (GAY)” to “Anti-gay (male)” and “60 YRS AND OLDER” to “Age (60 and older).” Age and disability are combined as one kind of bias.
- Why
- Readability. Age and disability together account for seven complaints.
- Alternative
- Keep the NYPD’s labels. The downloadable spreadsheet keeps them.
- Who decided
- Claude
Checks run
- Counted anti-Jewish hate crimes reported in Brooklyn in 2024 separately in Python (138, of which 25 were in the 90th Precinct) and matched the page.
- Confirmed that rows sharing a complaint ID differ only in arrest ID and arrest date.
- Confirmed every precinct in the file has a boundary.
- Parsed the page’s script with Node and loaded it with no console errors, at desktop and phone widths.
- Dec. 1, 2026, full audit: compared every figure the page draws (2,484 of them, under five filter settings) with an independent Python recount from the live API, and all matched. A deliberate mismatch test confirmed the comparison catches errors. Also checked 210 shares in the percent view against count ÷ stated total.
- Read the NYPD’s data dictionary. It says each record is one crime, but the file repeats a crime once per arrest, which is why the page counts complaint IDs.
- Confirmed that each motive belongs to exactly one kind of bias, that each police offense code maps to one felony or misdemeanor class, and that borough and precinct agree on every record.
What this does not do
- It shows only hate crimes the NYPD confirmed. Incidents investigated and not confirmed are not in the file.
- It has no addresses, victim or suspect details, or outcomes past arrest.
- It does not adjust for population.
- It reaches back only to January 2019, where the public file begins.
Change log
- Dec. 1, 2026: first version.
- Dec. 1, 2026, later: added a switch between counts and percent of total, with shares in every hover. Offense notes now state the NYPD’s felony or misdemeanor class for what is shown, plus a caution that hate crime charges can be raised a level in court. Renamed “Menacing and threats” to “Menacing, threats and terrorism” because the group includes a terrorism charge. Named the Midtown South, Midtown North and Central Park precincts. Reworded the opening so it says the NYPD recorded, rather than classified, offenses as felonies. No counts changed.
- Dec. 1, 2026, evening: the charts, map and lists now move from one filter setting to the next instead of redrawing, and picking a borough zooms the map onto it. Numbers change straight to their new values, nothing animates when the page first opens, and devices set to reduce motion get no animation. The page always opens on counts. Offense notes are split into a description line and a class line. The filter bar no longer shows before the data loads. Re-ran the full audit afterward; all 2,484 figures still match. No counts changed.