AI text detectors degrade sharply on short snippets and mixed-authorship drafts. Compare
Oxidane/tmr-ai-text-detector across individual paragraph/sliding windows and watch
P(AI) and Shannon entropy stabilize as context grows from 16 → 32 → 64 → 128 → 256+ words.
Calibration Caveat: Prefix scaling shows how sensitive single-sentence fragments are
compared with full multi-sentence paragraphs — never rely on a short-text detector verdict alone.
1. Multi-Paragraph Passage & Calibration Controls
2. Sliding Paragraph / Window Chunk Profile
Splits multi-paragraph input by blank lines (or 80-word overlapping windows with 40-word stride) and
scores each chunk off-main-thread to reveal mixed human/AI sections.
Chunks scored–
Highest chunk P(AI)–
Lowest chunk P(AI)–
Chunk NaN check–
Chunk pass latency–
Per-paragraph or sliding window AI probability, entropy, burstiness, and excerpt
Chunk
Words / Tokens
Verdict
P(AI) / P(Human)
Entropy
Excerpt
Initialize the model above to score paragraph chunks live.
3. Cumulative Word Prefix Scaling Curve (16 → 256+ words)
Solid indigo line plots P(AI) (0–100%); dashed amber line plots Shannon entropy (0–1 bit).
Watch confidence and stability evolve as more context enters RoBERTa's 512-token window.
Run the prefix scaling curve to plot P(AI) and entropy vs word length.
Cumulative word prefix checkpoints showing P(AI), P(Human), BPE tokens, and Shannon entropy
Prefix
BPE Tokens
Verdict
P(AI)
P(Human)
Entropy
Latency
Run prefix scaling above to inspect each length step.
4. Inspect Chunk & Prefix Calibration Builders
</>Show the code · tmr-detector-core.mjs — buildPrefixScalingSteps()▸</>Show the code · tmr-detector-core.mjs — buildSlidingParagraphChunks()▸