← All models · Stanford De-identifier · Wild

wild · token-classification · WASM · ~105 MB

Hide in plain sight

Stanford's paper doesn't just blank identifiers — it replaces them with realistic fake values, “hiding in plain sight” so the note stays fluent, readable, and machine-usable while the real patient is invisible. This page does exactly that: every detected span is swapped for a synthetic surrogate that fits its category.

Run it

The de-identified note will appear here.

Why replace instead of blank?

A redacted note full of [REDACTED] is hard to read and unnatural for downstream models — “The patient [REDACTED] was seen at [REDACTED] on [REDACTED]” loses grammar and context. Replacing spans with plausible same-category values keeps the text fluent: “The patient Jamie Rivera was seen at St. Mary's General on 02/14/2023.” That is precisely the trick Stanford used to build large realistic synthetic datasets for training more de-identifiers.

The surrogates here are randomly generated placeholders from fixed fictional pools — they never correspond to a real person. “New surrogates” re-shuffles them with a different seed. As always: an automated first pass, not a certified compliance tool.