AiQAI Qualitatively

A field log from a qualitative research team

Cleaning transcripts

The more we entrust our transcription to AI, the more important cleaning those interviews becomes, to make sure our data is accurate and aligns with what subjects are saying.

The most common mistakes

The most common mistakes we find are speaker misattributions, misspelled names, both of our subjects and of the groups and places they talk about, and smoothing our subjects' vernacular into something more standard.

Sensitive data: a program cleans it, not an AI

When our data is sensitive, we do not let AI models clean it for us. Instead, we run a program on our own computer. The program fixes the mistakes we can anticipate. We built a mapping of the words that matter most in our context, the ones transcription tends to get wrong, so that anything that sounds like one of them is corrected to it. The program removes what is not part of the interview, like timestamps and small talk, and logs every one of the changes it makes.

What is the program?

A Python script. It runs on our own computer, so the transcript is never sent anywhere.

The script holds a dictionary, a list of the correct spellings of the names, groups and places that come up in our interviews. It compares every word in the transcript against that list with fuzzy matching, which scores how close two spellings are. A word that scores close to a dictionary term is replaced with the term. A few mistakes are common enough that we wrote them in as fixed rules.

The script also deletes timestamps and writes a log with one line per change, showing the original text and what replaced it. Fuzzy matching can miss a word that looks wrong but is real, which is why the read-through below still happens.

To build your own, install Python, clean two or three transcripts by hand, and write down every word the transcription got wrong. That list is your dictionary. Then ask an LLM to write a script that applies it and logs each change. We wrote ours that way.

Then we do the part the program cannot. We listen to each recording and edit the whole transcript against it until the text matches what we hear. By the end, the transcript is as close to the recording as we can get it.

Want to know more? Which data an AI is allowed to read

Other data: an AI suggests changes, and we accept or decline them

When the transcript does not contain sensitive data, we do clean it with the use of AI. We created a Claude skill, a set of very specific written instructions on the particular things we want it to clean. For example, we want the grammar checked. We want it to make sure sentences are not cut up and divided between speakers, and we want it to make sure the sentences actually make sense in our context.

What is a Claude skill?

A skill is a folder with a text file in it called SKILL.md. The file has a name, a one-line description of when to use it, and then the instructions in plain English. Claude reads the description of every skill you have installed, and when a task matches one, it loads the full instructions and follows them.

Ours lists what to fix (grammar, sentences split between speakers, sentences that make no sense in context), what to leave alone (how our subjects speak), and how to hand back the result (a Word doc with every change as a suggestion).

To write your own, create the folder, write the file, and save it in the skills folder of Claude Code or upload it in the Claude app. Anthropic's guide to skills has the exact format.

We have it create a Word doc where each of the corrections is added as a suggestion, so we can see everything it wants to change. We can then go into the Word doc and accept the changes that we think are good and decline the changes we do not like.

A cleaning review document in Word, with three tracked suggestions in the margin
The suggestions as they arrive, as tracked changes we accept or decline one at a time. The third one here is the model trying to turn "we was coming up out the projects" into standard English, which is the kind we decline. Fabricated transcript, real tracked changes.

The AI never reads the identified transcript

A program on our own computer then applies the changes we accepted to our identified transcript. So the AI never has to read that version. The program works by mirroring the changes by location on the page.

Want to know more? How we de-identify transcripts