Repository navigation
feat(audit): check that a product description opens with the product type and key attributes - #1424
Merged
Merged
Conversation
…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
8 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:cut: where the opening ends;The Site Audit signal is "Product description opening", in the content category.
[itemprop=description].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 featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Tests:
product-description.test.jsruns 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.jscovers the signal's pass, warn and fail, the microdata fallback and n/a.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)🤖 Generated with Claude Code