Repository navigation
test(rules): pin how keyword-stuffing treats card-dominated pages, teasers and plain-div menus #1441 - #1486
Conversation
|
Review of Findings:
The tests pin what the rule does today, with clear comments saying why. Fixture hosts are |
8386bde to
614dbeb
Compare
|
Review of #1486 (test-only: I could not run the new test.
I found no security or performance concerns. No CHANGELOG entry is needed for a test-only change. |
…asers and plain-div menus #1441 Signed-off-by: Nik Cubrilovic <[email protected]>
614dbeb to
a860ddb
Compare
Refs #1441 (tests only; the issue stays open for the product decision it asks about).
The residual of #1315 asks whether
content/keyword-stuffingcan tell repeated per-card and teaser microcopy apart without giving up its anti-stuffing bounds. This PR pins what the rule does today with synthetic pages shaped like the reported ones, so that any change to a bound is a visible, deliberate edit of these tests. No source change, so no CHANGELOG or docs.What the fixtures show (German and English, synthetic text and hosts):
durchschnittliche,bewertung,sternen,zahlen,raten); in English the shipping note that is identical on every card (shipping,costs,free,returns) while the rating sentence, which varies by number, is deducted. Two documented limits decide it: a text is deducted only when it varies between cards, and the deduction is capped at 20% of the page's words.divmenu on a contact page: 20 links with varied category words and 90 words of copy raise nothing; 20 links that share one category word are flagged by design (a spammer writes the same links); arole="menubar"leaves varied links out but still counts links that share a word; under 100 words in total nothing is measured.keyword-stuffing-pins-1441.test.ts: 10 tests; with the existingkeyword-stuffing.test.ts88 pass.Skill: no change needed.
nik