Repository navigation
Description
Follow-up to #1441 (closed), verified on v0.0.191.
content/keyword-stuffing still warns on two shop page shapes that contain no stuffed copy:
- Product cards: one sentence of intro copy plus 24 cards, each
<h2>Product N</h2><p>Average rating 4.5 of 5 stars</p><p>Shipping costs from $4.90</p><p>Subscription prices plus delivery</p>. The repeated card microcopy (shipping, subscription, prices) drives the density. - Category menu: 24 links
Bademode Style collection category selection inspiration Nin one<div>plus one sentence of body copy.
A control page with 'bademode '.repeat(100) in one paragraph warns as expected.
squirrel audit http://127.0.0.1:<port>/cards --http --offline --passive --disable-discovery-probes --no-publish --no-external-links --no-internal-links --refresh --max-pages 1 --rule-include content/keyword-stuffing -f json -o out.jsonOn real fashion shops this flags category and contact/legal pages through header/footer chrome and card lines; we keep the rule disabled for all shops because of it.
Request: exclude repeated card/listing microcopy (text repeated verbatim across sibling items) and navigation link text from the density basis, or compute density on main content only. I understand bare shared-word menus were called an intentional trade-off in #1441; the card case alone would already let us switch the rule back on.
Triage
Related, closed: #1315, #1182 and #1441 (earlier keyword-stuffing false positives; #1441 recorded shared-word menus as an intentional trade-off). The rule is in packages/rules/src/content/keyword-stuffing.ts. The card case is the actionable part: text repeated verbatim across sibling items inflates term density without being copy. The menu case conflicts with the earlier maintainer decision and needs a maintainer call before it is changed.
Acceptance Criteria
- The product-card fixture (intro sentence plus 24 cards with repeated microcopy) does not trigger
content/keyword-stuffing. - The
'bademode '.repeat(100)control page still triggers the rule. - Text repeated verbatim across sibling items is excluded from the density basis.
- A maintainer decision is recorded on the category-menu case (fix, or keep the content/keyword-stuffing: card microcopy, teaser and menu terms still warn on a real shop (#1315 residual) #1441 trade-off), and the fixture test matches it.
- Regression tests cover both fixtures.
Activity
nc9 commentedon Nov 29, 2026
Thanks for the follow-up and the fixtures. The product-card case is a reasonable request; the menu case touches the trade-off recorded in #1441, so it needs a maintainer decision. Acceptance criteria are now in the issue body.
nik
Generated by Claude Code
fix(rules): exclude verbatim-repeated card microcopy from keyword-stu…
fix(rules): bound the verbatim keyword-stuffing deduction #2444
nc9 commentedon Dec 1, 2026
Maintainer decision on the menu case (criterion 4): fix it. Navigation and menu link text should be excluded from the keyword-stuffing density basis as well, not kept as the #1441 trade-off. PR #2449 will be extended to cover it.
fix(rules): leave navigation and menu link text out of keyword-stuffi…
fix(rules): limit the keyword-stuffing menu and verbatim exclusions t…