Andrew Fribush
fig. 2.38.2 · the detector prompt’s seven exclusions: each a word the replacer would blank if the model returned it.
THE DETECTOR PROMPT RULES OUT SEVEN THINGS, EACH A WORD THE REPLACER WOULDBLANKONE ROW IS ONE EXCLUSION IN THE PROMPT. A RETURNED WORD BECOMES [NAME] AT EVERYWHOLE-WORD MATCH, ANY CASE. ACCENT: WHAT IT WOULD BLANK.MUST NOT RETURNIF RETURNED, BECOMES [NAME]PLAN SAYS KEEP[NAME] tokensprompt line 133every [NAME] token—titles (Dr., Mr., Ms.)prompt line 133every “Dr.”, “Mr.” and “Ms.”—job titles (consultant,attending, resident, nurse,etc.)prompt line 134every “resident”“his handoff to the [NAME] wasclean”TRAININGLEVELSplace namesprompt line 135every match of the placeLOCATIONSdepartment namesprompt line 135every “nursing”“before Katie on [NAME] flaggedit”LOCATIONSmedical instrumentsprompt line 135every match of the instrumentMEDICALTERMINOLOGYnon-person entitiesprompt line 135every “potassium”“caught the missed [NAME] before”MEDICALTERMINOLOGY

source: Client repo: services/anonymize.py lines 131-135 (exclusions), 182 and 200-202 (replacer); docs/comment-sanitization-plan.md line 92 (preserve list); examples are the essay’s made-up comment run through replace_identified_names() · detectorNotRewriter.data.ts

View in context: Use the LLM as a Detector, Not a Rewriter → · All figures

Andrew Fribush, software and computer engineer in Austin. I build consequential systems where software meets institutions: finance, healthcare, commerce, government data, and the mechanisms that govern AI agents. Taking new engagements: hello@andrewfribush.com.