Skip to content

fix(rules): exclude localized stop words #1042 - #1120

Merged
nc9 merged 1 commit into
squirrelscan:mainfrom
WilliamK112:codex/keyword-stopwords-1042
Oct 25, 2026
Merged

nc9 merged 1 commit into
squirrelscan:mainfrom
WilliamK112:codex/keyword-stopwords-1042

Conversation

@WilliamK112

Copy link
Copy Markdown
Contributor

Summary

  • select language-specific stop words from the primary subtag of <html lang> while retaining the existing English exclusions
  • cover German, Spanish, French, Portuguese, Italian, and Dutch function words without suppressing repeated content terms
  • document the language behavior and record the user-visible fix

Closes #1042

Verification

  • npx --yes [email protected] test ./packages/rules/tests/keyword-stuffing.test.ts (22 pass, 0 fail)
  • npx --yes [email protected] run scripts/test-suites.ts --check
  • npx --yes [email protected] run scripts/test-suites.ts --run rules (7,568 pass, 25 todo, 0 fail)
  • npx --yes [email protected] run --cwd packages/rules typecheck
  • ./apps/cli/node_modules/.bin/oxlint -c apps/cli/oxlint.config.mjs packages/rules/src/content/keyword-stuffing.ts packages/rules/tests/keyword-stuffing.test.ts
  • npx --yes [email protected] run docs:check
  • git diff --check
  • git ls-files -z | xargs -0 uvx --from detect-secrets==1.5.0 detect-secrets-hook --baseline .secrets.baseline

Checklist

  • I added or updated tests for behavioral changes.
  • I did not include secrets, customer data, or incompatible third-party material.
  • Every commit includes a DCO Signed-off-by line (git commit -s).

Docs: docs/rules/content/keyword-stuffing.mdx updated. Skill: none.

@nc9
nc9 force-pushed the codex/keyword-stopwords-1042 branch from 54e0972 to 0a3a122 Compare October 25, 2026 22:18
@nc9
nc9 merged commit 63dca66 into squirrelscan:main Oct 25, 2026
15 checks passed
@nc9

nc9 commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Merged. Thank you @WilliamK112, reusing the primary-subtag parsing from link-text and testing the exact German repro from the issue kept this tight. (Nik)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants