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) • 314 B
TypeScript
/**
* Text processing utilities for AI text detection
*/
export declare function tokenizeWords(text: string): string[];
export declare function splitIntoSentences(text: string): string[];
export declare function extractTopicWords(sentence: string, commonWords: Set<string>, transitionWords: string[]): string[];