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
/** * Syntactic and semantic analysis metrics */ export declare function calculateSyntacticComplexity(sentences: string[]): number; export declare function calculateSemanticCoherence(sentences: string[]): number; export declare function calculateNGramRepetition(words: string[]): number; export declare function calculateBigramUnusualness(words: string[]): number;