Skip to content

content/keyword-stuffing: missing German function words, menu chrome on short pages, product-card microcopy (v0.0.141) #1315

Closed

Description

@deniskern

Thanks for #1182 and #1232. Re-checked v0.0.141 on brunobanani.com (squirrel audit https://www.brunobanani.com/ --http -m 30 -f json, all pages lang="de" or lang="en"): the price notes (inkl, mwst) and the umlaut split are gone. 17 of 30 pages still warn, and three cases remain:

1. German function words missing from the de list. LANGUAGE_STOP_WORDS.de has no sie, für, du, dich, dir, deinen, deinem, deiner, zu, im, am, ihn, ihm, ob, so.

  • sie 5.3 % on /service/zahlung/, /service/bestellung/, /service/ruecksendung/, /rechtliches/widerrufsrecht/, /info/newsletter-info/ (formal "Sie" in every sentence)
  • für 4.0 % and deinen 3.6 % on /job-overview
  • English: out 3.5 % on /en/men/

2. Site chrome still measured on short pages. On /info/kontakt/ and /rechtliches/impressum/ (main copy under 100 words) the category names of the mega menu are counted: bademode 4.3 %, curvy 3.3 %. The menu is not inside <nav>/<header>, so the fallback does not drop it. A repeated-link-label check (the same anchor text that appears on every page of the crawl) would catch it without relying on landmarks.

3. Product-card microcopy on listing pages. /damen/ and /herren/ repeat per card: "Durchschnittliche Bewertung von 4.5 von 5 Sternen" → durchschnittliche, bewertung, sternen 3.6 % each; installment notes → zahlen 3.1 %. Same class as the GENERIC_CTA_LABELS allowlist (#695): text repeated once per card in a product grid is a UI component, not copy targeting a term.

Expected: none of the three counts toward density. Overhub keeps content/keyword-stuffing disabled until then.

Triage

Checked against packages/rules/src/content/keyword-stuffing.ts on main.

  • Case 1 is confirmed. The de list in LANGUAGE_STOP_WORDS has ich, ihr, ihre, dein, deine and the price notes, but none of sie, für, du, dich, dir, deinen, deinem, deiner, zu, im, am, ihn, ihm, ob, so. Adding them is a list change. The out case on English pages is the same kind of gap in the en list.
  • Case 2 is consistent with the code. The chrome exclusion is tag-based (CHROME_TAGS is header, nav, footer, aside), so a mega menu built from plain div elements is still counted. The model-assisted region labelling is tracked separately in the private tracker, so a repeated-label check or a landmark-independent heuristic is the public-side option.
  • Case 3 is consistent with the code. GENERIC_CTA_LABELS is a fixed allowlist of call-to-action labels and does not cover text repeated once per card, such as ratings or installment notes.

Related closed issues: #1042 (German stop words), #1182 (nav links, umlauts, price notes), #1232 (function-word lists beyond the listed languages, gate incl/vat to English).

Acceptance Criteria

  • On a lang="de" page, sie, für, du, dich, dir, deinen, deinem, deiner, zu, im, am, ihn, ihm, ob and so are not reported by content/keyword-stuffing, and a content word over the threshold on the same page is still reported.
  • On a lang="en" page, out is not reported.
  • A page with a mega menu made of plain div links that carries a real menu signal (role, aria-haspopup or aria-expanded) and varied category labels, and under 100 words of main copy, does not report the category word. A menu with no signal, or whose labels all share one word (20 links repeating one category word), still counts toward density: an accepted cost, because a keyword spammer writes the same links. The test pins both sides and the docs state it. (Restated from "plain div links with no signal", see the comment of 2026-10-31.)
  • Text repeated once per card in a product grid (a rating sentence, an installment note) does not count toward density, and the same sentence written 12 times as body copy is still flagged.
  • Each case has a test, and docs/rules/content/keyword-stuffing.mdx states how repeated component text and site chrome are treated.

Activity

  1. added
    bug
    size: S
    rules
    on Oct 30, 2026
  2. added theissue type on Oct 30, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    Contributor

    Verified against main after v0.0.145. Met: criteria 1, 2 and 4 (German function words, out, per-card microcopy, each with a test). Open: criterion 3 and 5 for a mega menu built from plain divs with no menu signal (role, aria-haspopup, aria-expanded): it still counts toward density, which the docs call an accepted cost, and no test uses the issue's shape of 20 links repeating one category word. Leaving this open for that case.

    nik

  4. nc9 commented on Oct 30, 2026

    @nc9
    Contributor

    Criterion 3 restated (edited in the body). As written (plain div links, no signal, one shared category word on 20 links, not reported) it contradicts the true-positive tests: 24 keyword links in a bare div must still flag, because a keyword spammer writes exactly that and a hidden stuffed phrase is worse than a menu false positive. The rule leaves out a menu on a real signal (role menu, menubar or navigation, aria-haspopup, aria-expanded) with varied labels, and counts a menu with no signal or whose labels share a word. The PR above tests the issue's shape and pins both sides, and the docs line names the cost. If you would rather change the trade-off, a signal-free heuristic (the same anchor text on every page of the crawl) is the option, but it needs crawl-wide data the page rule does not have; say so and I will size it.

    nik

  5. deniskern commented on Oct 31, 2026

    @deniskern
    Author

    Re-checked on v0.0.147 (thanks for the #1315 work in 0.0.145): brunobanani.com still warns on 14 of 30 pages (was 17 on 0.0.141). The remaining terms come from product cards and a newsletter teaser, not from copy: "abonnement" (5.2%, 5 category pages), "bewertung" (3.7%, women/men category), "average" and "costs" (3.4%/4.9%, /en/women/ and /en/men/, rating and shipping-cost microcopy), "bademode" (4.3%, /info/kontakt/ and /rechtliches/impressum/, menu). Command: squirrel audit https://www.brunobanani.com --http -m 30 -f json.

  6. nc9 commented on Oct 31, 2026

    @nc9
    Contributor

    Re-checked against main after v0.0.148 (the plain-div menu shape and its documented cost are now tested). Every criterion as written is met and ticked. Leaving this open because a later comment reports a real site that still warns on 14 of 30 pages (abonnement, bewertung, average, costs, bademode on contact pages): that residual is not covered by a criterion or a test yet.

    nik

  7. nc9 commented on Nov 2, 2026

    @nc9
    Contributor

    Verified on main (e86767ff). keyword-stuffing.test.ts passes (78 tests), including the #1315 block: German function words not reported while a content word still is, out not reported on an English page, the plain-div menu cases on both sides (signal and varied labels left out; no signal, or 20 links repeating one word, still counted), and the card microcopy cases. The German list in keyword-stuffing.ts contains the words from the issue, and docs/rules/content/keyword-stuffing.mdx states how site chrome and repeated card text are treated, including the accepted costs. Fixes include d50345c6, 845fa2f0, 21b0a0c5 and dcbb46f4. All five boxes were already ticked, closing.

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions