spw.quest

A small language for the shape of a thought.

Spw is plain text with a few marks. A mark in front of a word says what the word is doing, and braces say what belongs together. A note stays readable as a note, and a tool can still find it, check it and follow its links.

Five files, written in Spw

mildew.spw

A question that says what would answer it, so it can be tested instead of argued.

Try Delete the !probe line, and the check beside it changes.

Twelve marks, four braces#

Each mark has a reader's name, which is how you think with it, and a runtime behavior, which is what the interpreter does today. They are kept separate on purpose: a name is not a promise about evaluation. The numbers under a mark are the panels in Learn that use it.

Read together, the braces make a sentence: <concept>(scene)[mode]{definition}, what it is about, where, through which lens, and what belongs inside. Marks and braces compose: #[…] is a set, .{…} is a property sheet.

Ways in#

Learn it a mark at a time

Seven panels, one line each, from plain words to a question that carries its own probe. Each line is read again as you change it.

Take one line apart

Change the mark, the scene, or what the braces hold, and the rest of the line holds still.

!bake<sourdough>(kitchen)[overnight]{flour, water, salt, starter}

Keep it in a repository

The workbench mounts at .spw/_workbench with a parser, a CLI and an editor language server. Setup stops before any commit.

The shape it came from#

The difficulty was not having language for what I was thinking about, so I could not tell when a thought was ready to set down. Spw gives a thought somewhere to land: one character says what a word is doing, braces say what belongs together, and a thought can be set down whole instead of chased.

It started in 2017, alongside reading about how people learn from text and helping with research in an adult learning lab. Part of it was wanting language to share what I was learning, in a place where I could keep learning what I wanted to. The question it keeps asking is about cognition: where do two understandings stop sharing ground, and what would help them share more?

And it wonders about geometry: how a mind represents the thoughts it holds, what shape a circuit of thought might take on a page, and how findings from different fields could sit side by side in one form you can read.

It is not built for anyone in particular. It has been designed with care, and it has turned out to be useful, most of all toward a culture where media literacy can grow across generations.

Recipe for agents · quest.json · Source · What was hard to follow