/** * Content quality analyzer. * * Ported from the Python `content_quality.py` in claude-seo. Pure heuristic * analysis: filler phrase detection, AI-pattern detection, information density, * and repetition scoring. No external API calls. */ import type { ContentQualityResult, HeadingInfo, PageData, SchemaBlock } from "../types.js"; /** Split text into sentences, respecting common abbreviations. */ export declare function splitSentences(text: string): string[]; /** Calculate Flesch-Kincaid Grade Level and related readability metrics. */ export declare function calculateReadability(text: string): { fleschKincaid: number; sentenceCount: number; avgSentenceLength: number; avgWordLength: number; }; /** Extract named entities from text using proper noun heuristics. */ export declare function extractEntities(text: string, schemaBlocks?: SchemaBlock[]): string[]; /** Check whether heading keywords appear in body text. */ export declare function headingContentAlignment(headings: HeadingInfo[], bodyText: string, stopWords?: Set): { score: number; missingKeywords: string[]; }; /** Evaluate heading structure depth and completeness. */ export declare function calculateSemanticDepth(headings: HeadingInfo[]): { score: number; hasH1: boolean; hasH2: boolean; hasH3: boolean; headingCount: number; }; /** * Detect language using word-frequency profiles of common function words. * Returns the ISO 639-1 language code of the best match, or null if confidence is too low. */ export declare function detectLanguage(text: string): string | null; export declare function analyzeContentQuality(text: string, url?: string, pageData?: PageData, customStopWords?: string[]): ContentQualityResult; //# sourceMappingURL=content.d.ts.map