API Reference
WriteTrack Class
Section titled “WriteTrack Class”Constructor
Section titled “Constructor”new WriteTrack(selector: string, options?: WriteTrackOptions)Creates a new WriteTrack instance attached to the specified input element.
Methods
Section titled “Methods”analyze()
Section titled “analyze()”tracker.analyze(): AnalysisResultReturns an analysis of the typing patterns captured so far.
Returns:
{ isAuthentic: boolean; // Whether typing appears human confidence: number; // Confidence score (0-1) signals: SignalData; // Detailed behavioral signals}reset()
Section titled “reset()”tracker.reset(): voidClears all captured data and resets the tracker.
stop()
Section titled “stop()”tracker.stop(): voidStops capturing events. Call this when the input is no longer needed.
getStats()
Section titled “getStats()”tracker.getStats(): StatisticsReturns current capture statistics without performing full analysis.
WriteTrackOptions
Section titled “WriteTrackOptions”interface WriteTrackOptions { minSamples?: number; sensitivity?: 'low' | 'medium' | 'high'; captureClipboard?: boolean; captureCorrections?: boolean;}AnalysisResult
Section titled “AnalysisResult”interface AnalysisResult { isAuthentic: boolean; confidence: number; signals: { timingVariance: number; rhythmScore: number; correctionRate: number; pasteRatio: number; };}