GitHub

Page Type Match

Checks that the page's AI-classified type agrees with its declared structured data

Checks that the page’s AI-classified type agrees with its declared structured data.

Rule IDai/page-type-match
CategoryAI
ScopePer-page
Severitywarning
Weight3/10
DefaultEnabled

What it checks

The cloud service classifies what each page is - the way an AI assistant or search engine reads it (article, product, contact, docs, …). The rule then compares that classification against the page’s declared JSON-LD @type:

  • No page-type structured data declared - passes, reporting the classification for reference.
  • Classification matches the declared type (or the classifier isn’t confident) - passes.
  • Page reads as one type but declares another - warns, e.g. “Page reads as product but declares Article structured data”.

Solution

A mismatch between what a page is and what its structured data declares confuses rich-result eligibility and AI answers. Either fix the JSON-LD @type to describe the page truthfully, or restructure the page content so its primary purpose is unambiguous.

Enable / Disable

Disable this rule

squirrel.toml
toml
[rules]
disable = ["ai/page-type-match"]

Disable all AI rules

squirrel.toml
toml
[rules]
disable = ["ai/*"]

Type to search…

↑↓ navigate open esc close