export interface WordFrequency { word: string; count: number; percentage: number; } export interface StemFrequency { stem: string; exampleWord: string; count: number; percentage: number; words: string[]; } /** * Text analysis utilities for analyzing AI-generated content * Provides word frequency and stem analysis with German language support */ export declare class TextAnalyzer { /** * German stop words to be filtered out during analysis */ private static readonly GERMAN_STOP_WORDS; /** * English stop words for multilingual support */ private static readonly ENGLISH_STOP_WORDS; /** * Filter and clean text for analysis * @param text Text to clean * @returns Array of filtered words */ static prepareText(text: string): string[]; /** * Simple German stemmer that removes common endings * @param word Word to stem * @returns Word stem */ static germanStemmer(word: string): string; /** * Analyze word frequency in text * @param text Text to analyze * @param topN Number of most frequent words to return * @returns Array of word frequency objects sorted by frequency */ static analyzeWordFrequency(text: string, topN?: number): WordFrequency[]; /** * Analyze word repetitions based on word stems * @param text Text to analyze * @param topN Number of most frequent stems to return * @returns Array of stem frequency objects */ static analyzeStemFrequency(text: string, topN?: number): StemFrequency[]; /** * Generate markdown table for word frequency analysis * @param frequencies Word frequencies * @returns Markdown formatted table */ static generateWordFrequencyTable(frequencies: WordFrequency[]): string; /** * Generate markdown table for stem frequency analysis * @param frequencies Stem frequencies * @returns Markdown formatted table */ static generateStemFrequencyTable(frequencies: StemFrequency[]): string; /** * Create complete markdown sections for text analysis * @param text Text to analyze * @param topN Number of most frequent words to analyze * @returns Object with markdown sections for word frequency and stem analysis */ static generateTextAnalysisMarkdown(text: string, topN?: number): { wordFrequencySection: string; stemFrequencySection: string; }; } //# sourceMappingURL=text-analysis.utils.d.ts.map