Skip to content

text-classification · text · 4-Layer Uncased BERT (11.1M) · Transformers.js 3.7.5 WASM · fp32 · 45.2 MB · CC-BY-NC-4.0

Redpen Slop 11M — AI-Slop Phrase & Cliché Detector

Distilled 11.1M-parameter BERT linter (44.52 MB fp32 ONNX weights, 45.2 MB total CPU WASM download) that underlines LLM fiction and roleplay clichés word-by-word and scores every token locally with zero server uploads.

dempfi/redpen-slop-11m text-classification WASM · fp32 · 45.2 MB CC-BY-NC-4.0

Live Red-Pencil Slop Galley

0 flagged spans
Initialise Redpen Slop 11M above to underline AI-slop clichés inline.
Scored one sentence per call (up to 128 WordPiece tokens per sentence). Click any underlined span above to isolate its token logits.

Initialise 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.

Per-token Redpen Slop 11M probabilities, raw clean/slop logits, logit margins, and subword flags
Idx Token p(slop) Logits [0, 1] Margin Subword
Run a scan to inspect raw token logits and probabilities.

At a Glance & Architecture

Hugging Face Model Card dempfi/redpen-slop-11m
Catalogue Task text-classification
ONNX Head / HF Pipeline Tag BertForTokenClassification · token-classification
Download Size & Dtype 45.2 MB total (44.52 MB / 42.45 MiB fp32 ONNX + 0.71 MB tokenizer)
Encoder Architecture google/bert_uncased_L-4_H-256_A-4 · 4 layers · 4 heads · 256-d · 11.1M
Label Space & Context id2label { 0: clean, 1: slop } · 128 tokens / sentence
Held-Out Eval (Model Card) ROC AUC 0.901 · AP 0.910 · Strict (0.99) 97% precision
License & Runtime CC-BY-NC-4.0 (non-commercial) · Shared Transformers.js 3.7.5 WASM
Honest Domain Scope & Model-Card Limits: 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)
Published dempfi/redpen-slop-11m precision, recall, and clean-sentence preservation per threshold
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

Explore the Redpen Slop 11M Use-Case Ladder