·StoryRoll

The Game Master Kept Its Dashes

On November 18, 2026, we shipped a filter whose whole job is to take punctuation away from our Game Master. It exists because asking nicely did not work.

Some background. The long dash is the most recognizable tic of machine-written prose. Readers spot it the way they spot a laugh track. Our own style guide has banned it from the blog for months, and on November 13 we extended the ban to the story itself: a new WRITE LIKE A PERSON block in the Game Master's prompt. Commas or full stops instead of dashes. No "a testament to". No shivers down anyone's spine. No teaser questions at the end of a scene.

We checked that the rule reached the model on 40 of 40 prompt paths: 25 combinations of turn mode and narration style, 5 openers, 10 world generations. Every one of them carried the sentence.

Then the first real opener after the deploy came back. 227 words, two long dashes. One sat in "warm and familiar", right before "the kind of place". The other split "Starlight Stew" from "the stew people come here for".

Why the rule leaked

The pull request that added the rule had a note at the bottom we should have read twice: about 33 long dashes were still sitting in the turn prompt's own instructions. We were telling the model not to do something while doing it 33 times in the same message.

There was a second leak. Every stored turn gets replayed to the model as history, so each old dash in a campaign was one more example of how this story is written. A rule is one sentence. History is the whole conversation.

The deeper lesson is the boring one. A prompt rule is followed some of the time. If you need it followed all of the time, it belongs in code.

What we wrote instead

convex/lib/undash.ts is one pass over the text that looks at each dash and the characters around it, then decides what it was trying to be.

  • Most become commas.
  • After a sentence ends, one becomes a space, so a dash after "Run!" just leaves "Run! now".
  • A short dash in a range or a sum stays a hyphen, so "3-5" and "AC 15 - 2" keep their meaning.
  • Cut-off speech trails off instead: "I" followed by a dash becomes "I...".
  • Place names are never touched, because our place matcher splits names on a spaced dash and would lose track of where you are.

It runs inside parseClaudeResponse, so it covers the normal turn, the continuation after a roll, and the opener. It also cleans the stored history, so old dashes stop teaching new ones.

The live stream was the hard part. Narration arrives a few words at a time, and a dash at the end of a chunk could become a comma, a space, a hyphen, or nothing, depending on what comes next. So the stream holds back a trailing dash (or a trailing space) until the next words land. The rule we test for: live text only ever grows, and it ends exactly equal to the saved turn.

The numbers

  • 37 rule cases in undash.test.ts, plus a speed guard and a check at every possible cut point in the stream.
  • Two rounds of independent review. The first found 10 real problems, which is why the filter got rewritten as a single pass. The second found 6, all fixed.
  • The real production opener that started this: 2 dashes in, 0 out, and it still reads like a person wrote it.

One trade-off is pinned by a test on purpose. An unspaced short dash used as a pause gets read as a word joiner. We'd rather hyphenate a pause now and then than turn a range into a comma.

What's still open

The filter covers what the Game Master says during play. It does not yet cover quest text, the NPC and place descriptions play fills in, the session recap, or world generation. Those are next.

And there's the question that bothers us more than the dashes did. The dash was easy to catch because you can grep for it. The model reached for it because something in the way it writes wanted a pause right there. We removed the mark. The reflex is still in there.

So which habit is it hiding now that we can no longer see?

S

Written by StoryRoll

Founder of StoryRoll. Building AI-powered tabletop RPGs.

Share:Share on X

Related Posts