GrepBoard/Manuals
605 manuals ·

Interview transcript to article with AI, quotes kept exact

·Tested on Claude Sonnet 5.5 · 2026-10·Test scope ↓·6 steps

Asked to tidy a transcript, AI quietly rewords what people said inside quotation marks. Pin direct quotes to the exact words, then check each one with a script.

The transcript says "I kept, you know, searching in the wrong place." The article the AI wrote has "I kept searching in the wrong place." inside quotation marks. That is a cleaner sentence, and the employee never said it. This is what happens when you ask for a newsletter article from an interview transcript.

The input is a made-up 34-line interview with a new hire (A asks, B answers), fillers and false starts left in.

transcript.en.txt
A: You joined about six months ago. How's it going?B: Um, I think I've, like, settled in now. The first two months were honestly a blur.…B: Yeah. Screen names and what you look up on each one. A page and a half, maybe? It ended up on the team wiki later.

[1] Start with a short request. The transcript goes on top inside <transcript> tags, the instruction below it.

text
Turn this interview transcript into an article for the company newsletter. Write it in clean prose and put the employee's words in double quotation marks.

[2] Run it twice, pull every quoted stretch out of each article and look for it in B's lines (the script is in [4]). Of 16 quotes, 6 were not in the transcript in run 1 and 5 in run 2.

TranscriptInside the quotation marks
I kept, you know, searching in the wrong place.I kept searching in the wrong place.
My team lead saw it by accident and said, oh, let's use this for new-hire training.They said, let's use this for new-hire training.
But now, well, I'm used to that too.But now I'm used to that too.
Oh, and take notes, always.And take notes, always.

Each change is small. The second row is worse than it looks: those are the team lead's words, retold by B, and a "They said," now sits inside the quotation marks as if B had spoken it. Run 1 also invented a lead, saying the notes are "the first thing new hires read on their first day" (the transcript says they spent their first week with them).

[3] The fixed prompt splits instructions from input with tags and spells out what a direct quote may be. Having the model copy its quotes into <quotes> before writing follows Anthropic's long-context advice to quote the relevant parts first. The tags follow the XML tag section of the same guide.

text
</transcript> <instructions>Turn the transcript above (B is the person interviewed) into an interview article for the company newsletter. No subheadings, 6 to 8 paragraphs, clean written English. Quotation rules:- Inside double quotation marks " " put only one unbroken stretch of what B said, copied from the transcript without changing a single character. Do not fix, merge or trim words inside it. Avoid stretches that contain filler ("um,", "uh,", "you know,", "like,"); choose a clean sentence or phrase.- Anything you want to polish goes outside the quotation marks, as the writer's own sentence (indirect speech).- Use 4 to 6 quotations. Do not write anything the transcript does not say.- Do not describe laughter, sighs, expressions or tone ("he laughed", "she sighed"); the transcript does not record them.- Before the article, inside <quotes> tags, copy each quotation you will use from the transcript, one per line. In the article, put only those stretches in quotation marks. Output: <quotes>…</quotes> then <article>…</article>.</instructions>
console
$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" < prompt.txt > out.txt

[4] The checker joins B's lines into one string and looks for each quoted stretch in it, ignoring case and trailing punctuation. It also flags lines you listed in <quotes> that lost their quotation marks in the article.

check.py
#!/usr/bin/env python3import re, sysraw = open(sys.argv[1], encoding="utf-8").read()norm = lambda s: " ".join(s.split())cut = lambda s: norm(s).rstrip(".,?! ").lower()blines = [cut(l[2:]) for l in raw.splitlines() if l.startswith("B:")]out = open(sys.argv[2], encoding="utf-8").read()m = re.search(r"<article>(.*)</article>", out, re.S)art = m.group(1) if m else outquotes = [cut(q) for q in re.findall(r'["“]([^"“”]+)["”]', art)]bad = 0for i, q in enumerate(quotes, 1):    ok = any(q in b for b in blines)    bad += not ok    print(("OK  " if ok else "MISS"), i, q)print(f"{len(quotes)} quotes, {bad} not verbatim")m = re.search(r"<quotes>(.*?)</quotes>", out, re.S)if m:    want = [cut(l) for l in m.group(1).splitlines() if l.strip()]    lost = [w for w in want if w not in quotes]    for w in lost: print("NOT QUOTED", w)    print(f"{len(want)} listed, {len(lost)} not in quotation marks")    bad += len(lost)sys.exit(1 if bad else 0)

[5] Two runs of the fixed prompt. Run 2 passes. Run 1 fails in a way the first prompt never did: it listed six quotes, then wrote them into the article as plain sentences with no quotation marks, so I only wrote it for myself. reads like the writer's own line.

console
$ python3 -I check.py transcript.en.txt out.v3.1.txt | grep -v '^OK'0 quotes, 0 not verbatimNOT QUOTED screen names and what you look up on each oneNOT QUOTED i only wrote it for myselfNOT QUOTED we ship around two hundred orders a day, and the four o'clock cutoff is the busiest partNOT QUOTED before i stick a label on, i read the last four digits of the product code out loudNOT QUOTED ask right away when you don't know somethingNOT QUOTED i just learned that if you write something small down, it turns out to be useful to somebody6 listed, 6 not in quotation marks$ python3 -I check.py transcript.en.txt out.v3.2.txt | tail -25 quotes, 0 not verbatim5 listed, 0 not in quotation marks

Two answers glued into one quotation are caught too. test_merge.en.txt is a hand-made file (not model output) that joins two of B's answers:

console
$ python3 -I check.py transcript.en.txt test_merge.en.txt | tail -2MISS 1 the first two months were honestly a blur. oh, the warehouse system1 quotes, 1 not verbatim

[6] The script reads only what sits inside quotation marks. Indirect speech can still drift: in run 2 the transcript's "I was really self-conscious about it" became "Lunch together felt awkward at first". Read the paraphrased sentences against the transcript yourself.

Do not publish on a pass alone. The check proves the words exist in the transcript, not that the meaning survived. Anything with a name, title or figure goes back to the speaker, and a transcript produced by speech recognition may be wrong before the AI touches it. A similar check for quotes from PDFs is in Check that AI-quoted sentences exist in the PDF with grep.

#interview#newsletter#quotes#claude