aeo

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package aeo assesses Answer Engine Optimization: how well a page is structured to be surfaced as a direct answer in featured snippets, "People Also Ask", and voice results. It is a static, per-page check — it reads the parsed DOM and JSON-LD, never fetching.

The signals are deliberately conservative: a positive note when answer-engine structured data is present, and low-noise nudges when a page reads like a Q&A but is not marked up or formatted for extraction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer scores a page's readiness to be quoted by answer engines.

func New

func New(opts ...Option) *Analyzer

New returns an AEO analyzer configured by opts.

func (Analyzer) Analyze

func (a Analyzer) Analyze(_ context.Context, result *crawler.Result) []analyze.Issue

func (Analyzer) Description

func (Analyzer) Description() string

func (Analyzer) Name

func (Analyzer) Name() string

type Option

type Option func(*Analyzer)

Option configures an AEO analyzer.

func WithAnswerLead

func WithAnswerLead(on bool) Option

WithAnswerLead enables the opt-in direct-answer-lead check (aeo-no-answer-lead), which is off by default.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL