TavernLog records your tabletop sessions, transcribes them, cleans up the transcript and writes up what happened so the whole table can read it. It’s currently in beta, and you can email me if you want access.
This post is about names: how to get a speech-to-text model to spell a campaign’s names right, and the trap I nearly walked into doing it. The code is simple, but the decisions were surprisingly nuanced, and most of them come down to a balance: automation against trust, coverage against noise, cost against accuracy, and the players’ voice against the DM’s authority.
The problem
Speech-to-text hears “Cori” and writes “Corey”. It hears “Curse of Strahd” and writes “curse of straw”. A D&D campaign is wall to wall invented names, so DMs were fixing nearly every summary by hand. If TavernLog can’t get it right most of the time without input, then it’s more trouble than it’s worth.
The good news is we have levers to pull in our dependencies. AssemblyAI, which does the transcription, accepts “key terms”: up to 1,000 words of vocabulary hints per job, for about $0.05 per hour of audio. The obvious move is to send it the campaign’s proper nouns. Easy enough. The real questions are where those names come from, and who gets to say how a name is spelt.
The names are already there
Most campaigns already hold everything we need, written by humans:
- The DM’s campaign notes: free text about the world and its people, which TavernLog already uses as context for its write-ups.
- Uploaded documents: adventure modules, house-rule PDFs, handouts.
- The players: who know how their own character’s name is spelt.
Claude Haiku reads the notes and documents and picks out the names. It’s cheap. About a tenth of a cent for the DM’s notes, and about 3 cents for a 300-page module, done once when the document is uploaded. Existing campaigns got the same treatment through a one-off backfill.
So the DM never types a list. It fills itself from what they’ve already written. That’s my favorite kind of setup: the kind the user has already done.
flowchart TD
notes["DM's campaign notes"] -- "Haiku, about 0.1¢" --> find["Claude Haiku picks out the names"]
docs["Uploaded documents"] -- "Haiku, about 3¢ per 300-page module" --> find
player["Player: my character is spelt..."] -- "typed by the player, no model" --> g1
find -- "candidate names" --> g1{{"In the source letter for letter?"}}
g1 -- "no" --> drop1["Dropped"]
g1 -- "yes" --> g2{{"Only common English words?"}}
g2 -- "yes" --> drop2["Dropped"]
g2 -- "no" --> g3{{"Sounds like an entry from another source?"}}
g3 -- "yes" --> sug["Suggested: maybe a misspelling of X"]
g3 -- "no" --> app["Approved, by whoever wrote it"]
app -- "up to 1,000 words" --> kt["Key terms"]
kt -- "about $0.05 per hour of audio" --> aai["AssemblyAI"]
aai -- "transcribes the session" --> out["A better transcript"]The trap: the AI’s typo loop
The first version also gathered names from TavernLog’s own output: the summaries Claude writes, and its guesses at who’s speaking. That looked like free coverage. It’s a lot of text, and it’s full of names. Originally this was the plan: Just feed all the data we already have into an LLM and see how close it gets us.
Anyone who’s done this kind of work is yelling at the screen already. Once Claude misspells a name in a summary, that spelling becomes a key term. AssemblyAI writes it into the next transcript. The next summary copies it from the transcript. Now the wrong spelling has more evidence behind it than the right one, and it keeps winning. This is a trap many have noticed in many contexts, like comments that coding agents leave: Problems become viral when the output is fed into the next input.
I caught it before any real session was transcribed with those key terms. The gathered list held pairs like “Nikomachas” and “Nicomachus”, “Folon” and “Pholon”, “Tad” and “Tadd”, where the AI-written text had drifted away from what the humans wrote.
In fact, when I tested the transcript clean-up step, it “corrected” Nikomachas to Nicomachus. The list held both spellings, and nothing in the system could tell which one was right.
flowchart LR
subgraph before["Before"]
direction TB
s1["Summary: Claude misspells a name"] -- "gathered as a key term" --> k1["Key terms"]
k1 -- "sent with the next recording" --> t1["Transcript"]
t1 -- "summarized" --> s2["Next summary"]
s2 -- "the misspelling gets stronger" --> k1
end
subgraph after["After"]
direction TB
s3["Summary"] -- "new names only" --> sg["Suggested"]
sg -- "waits for a human" --> dm["DM reviews"]
dm -- "approve" --> ap["Approved"]
dm -- "reject" --> rj["Rejected"]
ap -- "only approved names" --> k2["Key terms"]
end
before ~~~ afterThe rule
So I settled on one rule:
Never send a spelling a human didn’t write or approve.
That rules out summaries the DM has edited, too. It’s easy to miss one misspelt name while you’re fixing three others, and an edited summary looks approved whether or not every name in it was checked.
Here’s how the rule is enforced:
- Letter for letter: Haiku is allowed to find names, but a name is kept only if it appears in its source exactly. Same letters, same case, whole words. The model can point at a name. It can never change how it’s spelt. Case matters on purpose: “tadd” isn’t the DM’s spelling of “Tadd”.
- Three states: every entry is approved, suggested or rejected. Only approved entries go to the transcriber.
- Enforced in the database: Postgres refuses an approved entry that doesn’t name the human who approved it. The rule holds by construction, so nobody has to remember it.
- Humans vouch for their own text: names from the DM’s notes are approved by the DM. Names from a document are approved by whoever uploaded it. They wrote it, so they vouch for it. This is what keeps the list zero effort.
- The AI only suggests: after each session, new names from the summary wait in a “Waiting for you” queue. The DM can approve one, edit it and then approve it, mark it as a misspelling of an existing entry, or say it’s not a name.
The good news is we still get a massive portion of the spellings from the canonical docs and inputs. Context that the DM has put in, the campaign docs they’ve uploaded, etc. We can assume spellings in there are accurate safely, with no need for review. Then the rest comes over time, so they don’t get a flood of terms to approve.
stateDiagram-v2 direction LR [*] --> Suggested: found in AI-written text [*] --> Approved: written by a human Suggested --> Approved: DM approves Suggested --> Rejected: DM says not a name Suggested --> Merged: DM says misspelling of X Approved --> Rejected: DM deletes Rejected --> Approved: DM restores Merged: Merged into another entry
The balances
That’s the mechanism. The rest of the work was a series of trade-offs, and that’s where most of the thinking went.
Automation against trust
Anything a human wrote is approved automatically, as stated above. Anything a machine wrote waits for a human. The DM gets a full list without typing a word, and the AI’s guesses never get in without someone checking them. The checkpoint sits exactly where the loop would otherwise close.
Coverage against noise: “Bear” is not a spelling
The backfill approved a lot of ordinary words: “Bear”, “Wolf”, “Ring of Protection”, “Bracers of Speed”. They ate most of the 1,000-word budget, and they were dangerous too. The clean-up step might “correct” “bare” to “Bear”.
So the rule got sharper. The list is for uncommon words, often-misheard words and unusual spellings. It doesn’t need every proper noun.
The fix is about 80,000 common English words from the SCOWL word lists, embedded in the app (about 210 KB gzipped). A name made only of common words is never a sure spelling, so it’s left out entirely. It doesn’t even become a suggestion, because a queue full of “Wolf?” would bury the names that matter. The cut-off leaves rarer words like “kraken” and “golem” alone. “Staff of Kentimane” and “Tadd” stay. “Golden Lion” and “Grant” go, because a transcriber spells those right anyway.
On one real campaign, that rejected 234 of 529 entries and cut the words sent from 979 to 445. Every invented name stayed.
Catching misspellings without merging real names
When a new suggestion comes in, it’s compared with the approved entries two ways: edit distance, and a simple sound-alike key. In the key, “ph” sounds like “f”; “c”, “ck” and “q” sound like “k”; doubled letters count as one; and a final “ey” or “ie” sounds like “i”. That catches Folon and Pholon, Tad and Tadd, Corey and Cori, and labels each one “maybe a misspelling of”.
Vowels are kept on purpose, so “Cori” and “Cora” stay two different characters. And names from the same source text are never compared with each other. If the DM wrote both, the DM meant both.
The DM’s authority against the players’ voice
Players can add their own character’s spelling, and it’s approved at once. It’s their character. Once the DM has edited that entry, though, the player’s later changes become suggestions. Somebody has to have the final say, and at the table that’s already the DM.
Respecting “no”
A deleted entry is never added back or suggested again, by any source. Nobody should have to reject the same word twice. This is easy to do since we just keep entries for declined spellings.
Precision against recall in clean-up
After transcription, Claude reads the transcript alongside the approved spellings. It returns only corrections: the line, the words heard, the words meant. It never hands back a rewritten transcript, so every line keeps its timestamps.
Every correction is checked in plain code before it’s applied:
- the words heard really are in that line;
- each side is 6 words or fewer;
- the two sound alike;
- the target is an approved spelling;
- a word that’s already approved is never changed.
So “Corey” to “Cori” passes, and so does “curse of straw” to “Curse of Strahd”. “The captain” to “Captain Vey” doesn’t, and neither does “he” to “Strahd”. Those might even be right, but they aren’t spelling fixes, and the clean-up step has no business making them.
There’s one more guard, for speakers. If more than 15% of a part’s lines would change speaker, all of that part’s speaker changes are dropped. That’s too big a change to trust.
Some corrections are given up on purpose. When someone says “Pholon” out loud, the transcript can read “Full on”. That doesn’t get fixed everywhere automatically, because “on” is an ordinary word and touching ordinary words is too risky. I’d rather lose a few corrections than put the rest at risk.
On a real 3-hour session, clean-up changed 0.14% of the words, named every speaker correctly and cost about 17 cents.
flowchart TD
p["Claude's proposed corrections"] -- "one at a time" --> c1{{"Words heard are in that line?"}}
c1 -- "yes" --> c2{{"6 words or fewer on each side?"}}
c2 -- "yes" --> c3{{"The two sound alike?"}}
c3 -- "yes" --> c4{{"Target is an approved spelling?"}}
c4 -- "yes" --> c5{{"Leaves approved words alone?"}}
c5 -- "yes" --> ok["Applied"]
c1 & c2 & c3 & c4 & c5 -- "no" --> no["Discarded"]Good Housekeeping: Never block the session
If picking out names fails, the session is transcribed with the names it already has. If clean-up fails, everything carries on from the original transcript. Better spelling is a bonus, but not a gate.
Telling the DM at the right moment
A queue nobody looks at doesn’t help anyone. The waiting count shows on the Spellings tab, in a banner on the campaign page (“5 new spellings from Session 14 to check. Approving them helps your next transcript.”), and on the upload card, right before the next recording would use them. That last one matters most, because it’s the moment approving a name actually pays off.
What I took away
- LLMs surface things and reduce noise well enough when it’s low stakes, to make the human input a button click most of the time.
- Don’t feed the slop cycle. Any time LLM output feeds back into the loop unfiltered, errors compound quickly. A closed loop of LLMs feeding each other should set off alarms.
- Keep a human’s word and a machine’s guess apart, all the way down to the database. Issues happen, but if you can’t pull apart human intent from LLM guesses, it’s very frustrating for users.
- The best setup is the one the user has already done. Every bit of data they’ve fed you is something you can run with.
Perhaps most of all, it made me realize that the best improvements don’t come from being clever. They just come from good UX applied to agent flows.