UNPKG

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.

8 lines (7 loc) 342 B
/** * Burstiness calculation for AI text detection * Measures variation in sentence lengths */ export declare function calculateBurstiness(sentences: string[]): number; export declare function calculateAverageWordsPerSentence(sentences: string[]): number; export declare function calculateSentenceVariability(sentences: string[]): number;