Live Red-Pencil Slop Galley
0 flagged spansInitialise the 45.2 MB Redpen Slop 11M model above to scan prose locally in CPU WASM.
Raw Token & Frame Probabilities
Click any red-pencil span above to isolate its constituent tokens, or inspect every WordPiece frame's [clean, slop] logits and softmax probability.
| Idx | Token | p(slop) | Logits [0, 1] | Margin | Subword |
|---|---|---|---|---|---|
| Run a scan to inspect raw token logits and probabilities. | |||||
At a Glance & Architecture
dempfi/redpen-slop-11m
text-classification
BertForTokenClassification · token-classification
dempfi/redpen-slop-11m was distilled specifically on English fiction and roleplay
sentences labelled against an editorial rubric. Per its model card, it has never seen essays or corporate emails
(so it will not flag essay buzzwords like "delve" or "rich tapestry" — try the
Essay OOD Limit preset above or the Basics: Threshold & Style Lab rung), it can miss
"it's not X, it's Y" in quoted dialogue, and it may over-flag character bios unless raised to 0.90+.
Under the hood, the catalogue classifies manuscripts under text-classification by aggregating the checkpoint's
per-token BertForTokenClassification span probabilities sentence-by-sentence.
Published model-card threshold benchmarks (held-out blind human verdicts)
| Mode | Threshold | Precision | Recall | Clean Left Alone |
|---|
How the API Works
import { TRANSFORMERS_URL } from "../../lib/webai.js"; // shared Transformers.js 3.7.5 pin
const { AutoTokenizer, AutoModelForTokenClassification } = await import(TRANSFORMERS_URL);
const tokenizer = await AutoTokenizer.from_pretrained("dempfi/redpen-slop-11m");
const model = await AutoModelForTokenClassification.from_pretrained("dempfi/redpen-slop-11m", {
device: "wasm",
dtype: "fp32",
});
// Feed one sentence per call (max_length: 128), then softmax logits [clean, slop] per token:
const encoded = tokenizer("She crosses the room and stays there, chest heaving.", {
return_tensors: "pt",
truncation: true,
max_length: 128,
});
const { logits } = await model(encoded); // shape [1, seqLen, 2] -> id2label { 0: "clean", 1: "slop" }
Show the code · worker.js — analyzeText() (sentence-level WASM fp32 logits & NaN checks)
Show the code · redpen-core.mjs — extractSlopSpans() (0 ms threshold span grouping)
Why It Matters
- Beyond naive word banlists: Blocking words like "shiver" or "gaze" causes false flags on clean craft ("watching your hands") while missing structural synonyms. A 4-layer contextual encoder sees the full sentence clause.
- Millisecond CPU WASM speed: At 11.1M parameters, Redpen scores multi-paragraph manuscripts in tens of milliseconds on a laptop CPU — fast enough to run live inside a local writing studio or copy-desk queue without WebGPU.
- Zero-egress manuscript privacy: Unpublished chapters, fiction drafts, and editorial submissions stay 100% inside the browser Web Worker with zero third-party API transmission.
Explore the Redpen Slop 11M Use-Case Ladder
Basics · Threshold & Style Comparator
Sweep sensitivity thresholds at 0 ms and compare Human Craft Prose, LLM Fiction Slop, and Academic Jargon side-by-side.
Practical · Batch Copy Desk Auditor
Audit multi-paragraph chapters, CSV submissions, or JSONL feeds with Pause/Resume/Cancel and OWASP-safe .MD/.CSV/.JSON reports.
Wild · Style-Rewrite Stress Matrix
Stress-test 5 adversarial rewrites (synonym swap, Markdown bullets, em-dash removal, passive voice, code/prose mix) against Redpen.
Multi-model · Slop → DistilBERT Tone Audit
Chain Redpen Slop 11M (45.2 MB) with built DistilBERT SST-2 (68.3 MB q8) to diagnose melodramatic slop vs. restrained human prose.