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.

23 lines (22 loc) 831 B
interface DetectionResult { isAIGenerated: boolean; confidence: number; reasons: string[]; score: number; perplexityScore: number; burstinessScore: number; } export declare function detectAIText(text: string): DetectionResult; export declare function isAIGenerated(text: string): boolean; export declare function getConfidenceScore(text: string): number; export declare function getPerplexityScore(text: string): number; export declare function getBurstinessScore(text: string): number; declare const _default: { detectAIText: typeof detectAIText; isAIGenerated: typeof isAIGenerated; getConfidenceScore: typeof getConfidenceScore; getPerplexityScore: typeof getPerplexityScore; getBurstinessScore: typeof getBurstinessScore; }; export default _default; export type { DetectionResult };