Phrase Algebra as of Today

Diagram of Sharpee’s post-turn text emission in seven steps. An action runs and changes the world but writes no text. The turn result carries a message ID and parameters, and producers bind p
Sharpee Phrase Algebra as of Oct 19, 2026

Four months after Phrase Algebra and Sharpee 2.0, the algebra has grown from 13 kinds to 16. Two of my June examples were never valid syntax, and the Optional and Choice examples contradicted ADR-196, accepted the same day: those two are built in code, never written in a template. This is where things stand in Sharpee 5.4.1.

The 16 kinds

The union is still closed and still grows only by adding kinds, as planned in June. The three new kinds all came out of making room descriptions and dialogue read naturally.

Kind Member Role Description
literalLiteralAtomRaw author text
nounNounPhraseAtomArticle + adjectives + noun
listPhraseListCombinatorSerial-comma list
seqSequenceCombinatorOrdered join
emptyEmptyAtomNothing, with no dangling comma
verbVerbAtomVerb agreed with its subject
pronounPronounAtomit, them, his, and so on
numberNumeralAtomDigits, words, or ordinal
verbatimVerbatimAtomText passed through untouched
contentsContentsCombinatorAn entity's contents as a list
slotSlotCombinatorNamed target others add to
optionalOptionalModifierPhrase or nothing, set in code
choiceChoiceModifierOne of several variants
splicedSplicedWrapperSnippet joined where it's spliced in
sentenceSentenceAtomCapitalized, punctuated sentence
quoteQuoteAtomQuoted speech

I'd add that this was one of my theoretical inventions that required evidence. Had I been unable to prove that post-turn emission was not only possible, but had logical fidelity for author-control, it would have been a sizable failure for Sharpee. But the results are in and it works as I imagined it might.

The arguments many have against using AI to build things should take into account that although someone may have done this by hand, no one thought to try for the entire 50 years of text adventure platform development. For my own efforts, I leaned heavily on to Claude to discern the correct architecture, but it only wrote the code...it is 100% my invention.

Subscribe to The Sharpee Blog

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe