You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
content/keyword-stuffing: function-word lists beyond the listed languages; gate incl/vat to English #1232
After #1190 (main-copy measurement for content/keyword-stuffing, #1182), two smaller gaps remain, both noted in that PR's review:
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.
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.
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.
Activity
WilliamK112 commentedon Oct 28, 2026
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.
test(rules): cover malformed English lang squirrelscan#1232
test(rules): cover malformed English lang squirrelscan#1232
test(rules): cover malformed English lang squirrelscan#1232
fix(rules): gate keyword density by script squirrelscan#1232
fix(rules): gate keyword density by language (squirrelscan#1238)