Repository navigation
feat(rules): content/terminology-consistency flags pages that call the same thing by a different name (repo#1368) - #1910
Merged
Conversation
nc9
force-pushed
the
boat/terminology-consistency-1368
branch
from
November 16, 2026 04:43
b2b9a47 to
722eadc
Compare
nc9
marked this pull request as ready for review
November 16, 2026 06:08
…e same thing by a different name (repo#1368) Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
boat/terminology-consistency-1368
branch
from
November 16, 2026 06:45
722eadc to
1a0db23
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
content/terminology-consistency(squirrelscan/repo#1368, part of repo#1349 T-19). Pages that call one concept by a different name than the rest of the site are flagged. The concepts are sign in / log in / login / signin, email / e-mail, sign up / signup / register / create account, FAQ / FAQs / Faq, and the casing of the product name (from a one-wordog:site_name).Design
page_features.terminology_variants. It is a JSON map from fixed variant keys (18 at most, e.g.signin.log_in,brand.lower) to counts capped at 255, and it never holds raw text. The schema goes from 41 to 42 with an additive nullable migration. The rule cache goes from prc-7 to prc-8.pageTerminologyVariants(parsed)is the one extractor.extractPageFeaturesstores its output for the streaming path, and the legacyctx.site.pagespath calls it directly. Both paths feed one accumulator and one check builder, the same shape as voice-consistency.Acceptance criteria
packages/rules/tests/terminology-consistency.test.ts).bothPathsand assertsJSON.stringifyequality.packages/crawler/tests/page-features-store.test.tsround-trips the column,packages/audit-engine/tests/page-features-terminology.test.tschecks the extractor wiring, and "is bounded by the key table and caps each count" checks the bound.docs/rules/content/terminology-consistency.mdxand the hub and catalog (docs/scripts/glossary.ts --write) are updated. The Content count goes from 28 to 29 in README.md, docs/index.mdx, docs/rules/index.mdx and docs/rules/seo/index.mdx. The live-total comment in constants goes from 332 to 333, and the "300+" floor is unchanged.Gates
bun test packages/rules/tests/terminology-consistency.test.ts: 19 pass.bun run typecheckpasses in rules, audit-engine, crawler, core-contracts and utils.apps/clipasses typecheck, lint and format:check.docs:make validatepasses (62 pass).Agent skill
The squirrelscan agent skill needs no change. The rule appears in the catalog automatically, and it adds no new CLI surface.