Skip to contentFree site check: see what stops Google and AI assistants reading your site

heddle check --only density

Density Check

The density check fails a page that opens with a wall of text, or carries a paragraph over 80 words outside long articles. Without it, the first thing a visitor meets can be a 130-word block, and most of them leave before the second sentence. Fails a page that opens with a wall of text.

With Heddle on your site it runs on every build, so a page that fails it is fixed before a buyer or a search engine sees it.

one of 46 checksruns offlineruns every build

Why it exists

Fails a page that opens with a wall of text. Came from a reader rather than a rule: 129- and 136-word paragraphs under no heading passed every other check, because the words were fine and only the shape was wrong. Reads the built HTML, because the shape is a property of the rendered page.

  1. No paragraph over 80 words, except in authored articles.
  2. Nothing before the first heading over 80 words in a single block.

How it decides

  • It reads the built HTML of every page with an H1, inside its main element, and counts the words in each paragraph tag.
  • Outside articles, any paragraph over 80 words fails, with its count and its first words. Articles are the routes under /blog/, /case-studies/ and /events/, and pages ending -policy or under /terms; a site lists its own in site.json density.articles.
  • Before the first h2 or h3 it looks for blocks of 22 words or more. One such block over 80 words fails the page, so a 130-word opening split into two paragraphs of 65 passes, which is the fix it asks for.
  • On this site's latest build it measured 144 pages with an H1 and none failed.

From lib/checks/density.mjs in the Heddle repository at 4ccdf8b.

Questions

What does the density check look for?

No paragraph over 80 words outside articles, and no 80-word block before the first heading.

How do I run the density check?

Build the site, then run node bin/heddle.mjs check <site> --only density from the Heddle repository.

Ready to get found?
Check your site, talk to us, or see the plans.

Tell us about your business and who buys from you. On a short call we'll show you the searches your buyers make where you don't show up yet, and what the agents would do about them in their first month.