Repository navigation
feat(rules): content/h1-title-alignment warns when the H1 and title share no meaningful word #929 - #1024
feat(rules): content/h1-title-alignment warns when the H1 and title share no meaningful word #929#1024nc9 wants to merge 3 commits into
Conversation
|
Review of #1024 ( The rule is conservative and well documented. It skips on a missing language, several H1s or a title that is only the brand, and it downgrades the homepage to info. I found nothing that blocks the merge.
Test coverage is good: there is a dedicated 929 test, plus updates to the noindex-skip test and the invariance fixture. The CHANGELOG and docs entries are present. |
…hare no meaningful word #929 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
a74a342 to
78c6364
Compare
|
Review of I found no correctness bugs and nothing that should block the merge. The rule is info-only, skips when it is unsure, and is bounded per side (64 words). The golden-test and template-invariance fixture updates look consistent with a new page-scoped rule.
|
…skip, stems silent e safely #929 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of the new
The rule registration, docs index counts (24 to 25), the |
Closes #929
New rule
content/h1-title-alignment(page scope, no network): reports a page whose H1 and<title>share no meaningful word, showing both strings. It ships as info, not a warning (see Precision).Precision (review corpus: 115,556 stored pages, no live crawl, reviewer's script)
details.confidentsubset (page at least two segments deep, not a homepage or generic marketing page, at least three topic words each side) is 125 pages (0.27%). I hand-judged 40 random ones (seed 7): 14 real mismatches (a generic template H1 such as "Which one would you actually pay for?" under a specific title, a homepage title on a contact or listing page, an H1 that is the site logo or an email address), 26 not (marketing pitch under a descriptive title, glued text, synonym pairs): about 35%. That is under the 60% bar, so per the review decision everything is info andconfidentis only a marker for a future promotion.Review fixes applied
/de/,/pt-br/,/en_gb) and/index.*are the homepage; generic marketing pages (/about,/pricing,/features,/contact,/faq,/services,/company,/team,/support,/helpplus German, French, Spanish, Portuguese, Italian, Dutch forms, with or without a locale prefix) getdetails.pageKind, never confident.AI, so it passes. The test uses the same pair without "AI" to cover the mismatch; say if you would rather exemptAIspecifically.{,},@keyframes) is skipped; run-together heading text (a lower-to-upper hump that splits off a stopword, such asTrustedWhen, not carried as written by the other side) is skipped, not judged. The glued text itself is a parser issue:parsed.h1.textsjoins separate nodes without a space (about 900 of the corpus's pages).Registry and counts: rule,
content/index.ts, docs page, nav, card, content "(25 rules)" in both indexes,constants.ts309 to 310, goldenperRuleTally310 andfindings+500 (health score unmoved at 51),varyingRulesfor both corpora,skipOnNoindexand the noindex-skip list.Smoke (earlier run, isolated HOME): squirrelscan.com 38 pass, 0 warnings; docs.squirrelscan.com all identical-title info.
Tests:
h1-title-alignment-929.test.ts(23), noindex-skip, rule-verdict-scope, template-verdict-page-independence, template-verdict-inputs, docs-category-table, meta-string-limits, the canonical golden and the CLI loader test pass (explicit paths).tsgopackages/rules clean;tangly check --strictpasses. Agent skill: no change needed.Second review round (head after this push)
ax100k againstaaaaab(de), 64 x 20,000-character shared-prefix tokens (de and en), 100,000aBhumps, 50,000Foohumps.voorBedrijven,forFree) with a stopword hump; capitalised brands (YouTube, OwnJournal) and a title are never skipped. On the corpus it now skips 77 pages instead of about 900.eis dropped only from stems longer than five letters;-ingadds it back to a short consonant-vowel-consonant stem (making to make). hope/hop, cute/cut, mate/mat, tape/tap, lace/lac, prime/prim, dining/din, bored/bore, rating/rats no longer collide; price/pricing, make/making, bake/baking, women/woman, Damenschuhe/Schuhe still match.