geo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package geo assesses Generative Engine Optimization: whether AI answer engines (ChatGPT, Perplexity, Google AI Overviews, Gemini, Claude) can access the site and trust its content enough to cite it.

It combines three views of the crawl:

  • per host, the robots.txt policy toward known AI crawler user-agents;
  • per site, the presence of an /llms.txt content map (fetched on demand, like sitemap);
  • per page, citability signals — author attribution, dates, and a main-content landmark that lets extractors isolate the answer.

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 reports on AI-crawler access and content citability. It fetches /llms.txt with the given fetcher, regardless of the crawl's render mode.

func New

func New(fetcher crawler.Fetcher, opts ...Option) *Analyzer

New returns a GEO analyzer that fetches /llms.txt with the given fetcher, configured by opts.

func (Analyzer) Analyze

func (a Analyzer) Analyze(ctx 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 a GEO analyzer.

func WithQuotableDensity

func WithQuotableDensity(on bool) Option

WithQuotableDensity enables the opt-in quotable-data-density check (geo-low-quotable-density), which is off by default.

Jump to

Keyboard shortcuts

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