Multi-model · TMR AI-Text Detector (125.86 MB q8 · MIT) × DeBERTa-v3 Zero-Shot Register NLI (87.3 MB q8 · MIT)

2-Stage Workbench: AI-Likelihood × Discourse Register Diagnostics

Separate stylistic formality from synthetic probability offline (~213 MB combined): Stage 1 (onnx-community/tmr-ai-text-detector-ONNX, upstream Oxidane/tmr-ai-text-detector, 125.86 MB q8, MIT) estimates AI vs Human stylometry, and Stage 2 (Xenova/nli-deberta-v3-xsmall, 87.3 MB q8, MIT, reusing ../zero-shot-text/worker.js with dynamic res.classNames NLI mapping) classifies discourse register to flag formal-prose false-positive risk.

Why Pair Detector Score with Register NLI: Legal boilerplate, academic abstracts, and formal ESL cover letters naturally score high on uniformity. Cross-checking against discourse register helps reviewers distinguish genuine formulaic AI traits from formal human genres.

1. Two Independent On-Device Models (213.16 MB Total)

Stage 1 · TMR AI-Text Detector (125.86 MB WASM q8 · MIT)

Stage 2 · DeBERTa-v3 Zero-Shot Register NLI (87.3 MB WASM q8 · MIT)

2. AI-Likelihood × Discourse Register Workbench

Initialize both stages above to run the 213 MB AI-Likelihood × Register workflow.

Diagnostic verdict: Run both stages above to pair AI probability with discourse register.
Stage 1 Verdict–
P(AI) / Margin–
Stage 2 Top Register–
Register Score–
Stage 1 / Stage 2 ms–
Stage 2 id2label order–

Stage 1 · TMR AI vs Human Probabilities

Run Stage 1 to inspect P(human) and P(ai) scores.

Stage 2 · Dynamic 3-Way NLI Register Logits (res.classNames)

Zero-shot NLI register probabilities mapped dynamically from res.classNames
Discourse Register Score Entailment Neutral Contradiction
Run Stage 2 to classify discourse register.

3. AI-Likelihood × Discourse Register Matrix Log

Every completed 2-stage diagnostic run appends or updates in the live matrix below.

Combined AI-Likelihood by Discourse Register diagnostic matrix rows
Preset / Item Stage 1 P(AI) Stage 2 Register Diagnostic Caveat Latency Excerpt
Run the 2-stage pipeline above to populate the matrix.

4. Inspect Reused Zero-Shot Client & Dynamic NLI Mapping

Show the code · tmr-detector.js — ZeroShotRegisterClient (reusing ../zero-shot-text/worker.js)
Show the code · tmr-detector-core.mjs — mapNliClassProbabilities() (dynamic res.classNames)