Skip to content

feat(audit): check that a product description opens with the product type and key attributes - #1424

Merged
gkhngyk merged 1 commit into
mainfrom
feature/product-description-opening
Oct 23, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/product-description-opening

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

ChatGPT appears to read only about the first 50 tokens of a product description, about 40 words or 250 characters. The source is public research presented at brightonSEO 2026, to be confirmed by our own tests. A description that opens with the brand's story may never be matched to a shopping question.

The check (server/src/lib/audit/product-description.js) is a pure function with every rule in one place. It returns:

  • the opening: the first 40 words or 250 characters, whichever ends first;
  • cut: where the opening ends;
  • whether it names the product type. The type is the product name's words without the brand, model codes and filler, so "Acme Ridge Men's Trail Running Shoes" by Acme gives "ridge men trail running shoe";
  • the key attributes it names: measures with a unit (268 g, 6 mm, 30 L, 15.6"), materials, fits and uses. Each counts once, and a word of the type isn't counted again as an attribute.

The Site Audit signal is "Product description opening", in the content category.

  • It runs only on pages with Product (or ProductGroup) structured data. The description comes from the schema, else the microdata [itemprop=description].
  • It passes with the type and two attributes, warns with one of the two, and fails with neither.
  • Its finding says where the opening ends and what it found there.
  • Every other page reads n/a, so its score doesn't change.
  • It is recommendable: the AI recommendation drafts a new opening of at most 40 words from the page's own facts.

Counts and copy. The rubric is v1.1 with 48 signals, and the content category has 12. The app's copy and the Site Audit guide now say 48.

Not in this PR. The catalog, Readiness and Content Editor parts of the issue wait for those screens. The function is ready for them.

Related issue

Closes #1279

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Audit a product page whose description opens with the brand's story. "Product description opening" fails, and its finding shows where the opening ends.
  2. Audit one that opens "Men's trail running shoe, 268 g, 6 mm drop…". The signal passes.
  3. Audit a blog post. The signal is n/a and the score is as before.

Tests:

  • product-description.test.js runs the check over a fixture list of real-looking descriptions, passing and failing. It also covers the 40-word / 250-character cut, the type words and the attribute rules.
  • signals/content.test.js covers the signal's pass, warn and fail, the microdata fallback and n/a.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

🤖 Generated with Claude Code

…type and key attributes

ChatGPT appears to read only about the first 50 tokens of a product
description, about 40 words or 250 characters (public research presented
at brightonSEO 2026; to be confirmed by our own tests). A description that
opens with the brand's story may never be matched to a shopping question.

- product-description.js holds the check as a pure function, with every
  rule in one place. It returns the opening (the first 40 words or 250
  characters, whichever ends first), where it ends, whether it names the
  product type (the product name's words without the brand, model codes
  and filler), and the key attributes it names: measures with a unit,
  materials, fits and uses. Tests run it over a list of real-looking
  descriptions, passing and failing.
- A new Site Audit signal, "Product description opening" (content), runs it
  on pages with Product structured data, from the schema's description or
  else the microdata one. It passes with the type and two attributes, warns
  with one of the two and fails with neither. Its finding says where the
  opening ends. Other pages read n/a, so their score doesn't change. The
  recommendation drafts a new opening from the page's own facts.
- The rubric is v1.1 with 48 signals; the app's copy and the Site Audit
  guide say 48.

The catalog, Readiness and Content Editor parts wait for those screens.

Closes #1279
@gkhngyk
gkhngyk merged commit 0d0718e into main Oct 23, 2026
7 checks passed
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.

feat(shopping): check that a product description starts with the product type and key attributes

1 participant