Skip to content

content/keyword-stuffing: function-word lists beyond the listed languages; gate incl/vat to English #1232

Description

@nc9

Problem

After #1190 (main-copy measurement for content/keyword-stuffing, #1182), two smaller gaps remain, both noted in that PR's review:

  1. No function-word list outside the listed languages. The tokenizer now scores every \p{L} script, but only English and the six listed European languages have function-word lists. Cyrillic, Greek, Arabic, Hebrew or Devanagari copy is scored with its everyday function words counted, so a natural paragraph can get close to the 3% threshold on words like "and", "that" or "this" in that language.
  2. incl and vat are ignored on every page. They're in the global COMMON_WORDS set, so a page stuffed with "VAT" can never be flagged, in any language. The German price-note terms are already language-gated; these two should be too.

Acceptance Criteria

  • A natural Russian paragraph of 150+ words with ordinary function-word frequency does not warn. Either the language gets a function-word list, or the rule skips scoring for languages without one and the docs say which.
  • docs/rules/content/keyword-stuffing.mdx says which languages have function-word lists and what happens for the rest.
  • incl and vat are ignored only on English pages, the same way the German price terms are gated. A non-English page repeating "VAT" well past the threshold warns.
  • The existing keyword-stuffing tests pass, and scripts/test-suites.ts --run rules passes.

Activity

  1. added
    enhancement
    size: S
    rules
    on Oct 28, 2026
  2. added theissue type on Oct 28, 2026
  3. WilliamK112 commented on Oct 28, 2026

    @WilliamK112
    Contributor

    I would like to take this follow-up. Once #1190 lands, I will add coverage for a natural Russian paragraph, document the language behavior, gate incl/vat to English, and run the focused and full rules suites.

  4. added a commit that references this issue on Oct 29, 2026
    421dbf0
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

    enhancementrulessize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions