Skip to content

content/keyword-stuffing counts German stop words (die, und, aus) as overused keywords #1042

Closed

Description

@deniskern

Summary

content/keyword-stuffing counts German function words as overused keywords. On a <html lang="de"> page it reports die, und, aus and alles, which are stop words (articles, conjunctions, prepositions) with a natural density of 3–7 % in German prose. On a live German fashion shop it fires on 52 of 60 pages, so we keep the rule disabled.

Repro

index.html, lang="de", ~720 words of ordinary German product copy, built from these six sentences repeated 12 times:

<!doctype html><html lang="de"><head><meta charset="utf-8"><title>Bademode für Damen und Herren</title></head>
<body><main><h1>Bademode für Damen und Herren</h1>
<p>Hier findest du alles für den Sommer, alles aus weicher Baumwolle. Unsere Shirts kommen aus fairer Produktion und halten lange. Wähle aus vielen Farben die Bademode, die zu dir passt. Versand und Rückgabe sind kostenlos, die Lieferung dauert zwei Tage. Die Stoffe stammen aus Portugal, genäht wird in kleinen Werkstätten. Pflegehinweise findest du auf jedem Etikett und in unserem Ratgeber.</p>
<!-- same paragraph x12 -->
</main></body></html>
squirrel audit http://127.0.0.1:8765/ --http -m 10 -f json

with [rules] enable = ["*"].

Actual

content/keyword-stuffing warn: "5 word(s) may be overused": "alles" (3.6%), "aus" (7.2%), "die" (7.2%), "findest" (3.6%), "und" (5.6%).

Expected

Stop words of the page language (from <html lang>, as link-text and anchor-text already do since v0.0.128) are excluded from the density count, at least for the languages link-text already knows (de, es, fr, pt, it, nl, …). Only content words like bademode would remain candidates. findest (a verb form) is a borderline case; a stop-word list would not catch it, which is fine.

Version

squirrel v0.0.129

Acceptance Criteria

  • On a lang="de" page, German stop words (die, der, das, und, aus, alles, …) are not reported by content/keyword-stuffing
  • The repro above reports no stop word
  • A content word above the density threshold on the same page is still reported
  • English pages keep the current behaviour
  • A test covers at least one non-English stop-word list chosen by <html lang>

Activity

  1. WilliamK112 commented on Oct 24, 2026

    @WilliamK112
    Contributor

    I would like to take this. I will select language-specific stop words from the primary subtag of the page’s <html lang>, preserve the current English and unknown-language behavior, add the German reproduction plus a content-word positive control, and update the rule documentation and changelog.

  2. added a commit that references this issue on Oct 25, 2026
    63dca66
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions