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) 367 B
/** * Lexical analysis metrics for AI text detection */ export declare function calculateLexicalDiversity(words: string[]): number; export declare function calculateVocabularyRichness(words: string[]): number; export declare function analyzeWordFrequencyDistribution(words: string[]): number; export declare function calculateEntropyScore(words: string[]): number;