ai-text-detector
Version:
A lightweight, fast JavaScript/TypeScript library for detecting AI-generated text using advanced linguistic analysis. Works in Node.js, React, and browser environments with zero dependencies.
7 lines (6 loc) • 310 B
TypeScript
/**
* Contextual and structural analysis metrics
*/
export declare function calculateContextualConsistency(sentences: string[]): number;
export declare function calculateSentenceStructureEntropy(sentences: string[]): number;
export declare function calculateTopicCoherenceScore(sentences: string[]): number;