extensions/open-prose/skills/prose/alts/folk.md
This is a skin layer. It requires
prose.mdto be loaded first. All execution semantics, state management, and VM behavior are defined there. This file only provides keyword translations.
An alternative register for OpenProse that leans into literary, theatrical, and folklore terminology. The functional register prioritizes utility and clarity; the folk register prioritizes whimsy and narrative flow.
prose.md first (execution semantics).prose files, accept folk keywords as aliases for functional keywordsDesign constraint: Still aims to be "structured but self-evident" per the language tenets—just self-evident to a different sensibility.
| Functional | Folk | Origin | Connotation |
|---|---|---|---|
agent | sprite | Folklore | Quick, light, ephemeral spirit helper |
session | scene | Theatre | A moment of action, theatrical framing |
parallel | ensemble | Theatre | Everyone performs together |
block | act | Theatre | Reusable unit of dramatic action |
| Functional | Folk | Origin | Connotation |
|---|---|---|---|
use | summon | Folklore | Calling forth from elsewhere |
input | given | Fairy tale | "Given a magic sword..." |
output | yield | Agriculture/magic | What the spell produces |
let | name | Folklore | Naming has power (true names) |
const | seal | Medieval | Unchangeable, wax seal on decree |
context | bearing | Heraldry | What the messenger carries |
| Functional | Folk | Origin | Connotation |
|---|---|---|---|
repeat N | N times | Fairy tale | "Three times she called..." |
for...in | for each...among | Narrative | Slightly more storytelling |
loop | loop | — | Already poetic, unchanged |
until | until | — | Already works, unchanged |
while | while | — | Already works, unchanged |
choice | crossroads | Folklore | Fateful decisions at the crossroads |
option | path | Journey | Which path to take |
if | when | Narrative | "When the moon rises..." |
elif | or when | Narrative | Continued conditional |
else | otherwise | Storytelling | Natural narrative alternative |
| Functional | Folk | Origin | Connotation |
|---|---|---|---|
try | venture | Adventure | Attempting something uncertain |
catch | should it fail | Narrative | Conditional failure handling |
finally | ever after | Fairy tale | "And ever after..." |
throw | cry | Drama | Raising alarm, calling out |
retry | persist | Quest | Keep trying against odds |
| Functional | Folk | Origin | Connotation |
|---|---|---|---|
prompt | charge | Chivalry | Giving a quest or duty |
model | voice | Theatre | Which voice speaks |
These keywords already have poetic quality or are too functional to replace sensibly:
**...** discretion markers — already "breaking the fourth wall"loop, until, while — already work narrativelymap, filter, reduce, pmap — pipeline operators, functional is finemax — constraint modifieras — aliasingsonnet, opus, haiku — already poetic# Functional
use "@alice/research" as research
input topic: "What to investigate"
agent helper:
model: sonnet
let findings = session: helper
prompt: "Research {topic}"
output summary = session "Summarize"
context: findings
# Folk
summon "@alice/research" as research
given topic: "What to investigate"
sprite helper:
voice: sonnet
name findings = scene: helper
charge: "Research {topic}"
yield summary = scene "Summarize"
bearing: findings
# Functional
parallel:
security = session "Check security"
perf = session "Check performance"
style = session "Check style"
session "Synthesize review"
context: { security, perf, style }
# Folk
ensemble:
security = scene "Check security"
perf = scene "Check performance"
style = scene "Check style"
scene "Synthesize review"
bearing: { security, perf, style }
# Functional
loop until **the code is bug-free** (max: 5):
session "Find and fix bugs"
# Folk
loop until **the code is bug-free** (max: 5):
scene "Find and fix bugs"
# Functional
try:
session "Risky operation"
catch as err:
session "Handle error"
context: err
finally:
session "Cleanup"
# Folk
venture:
scene "Risky operation"
should it fail as err:
scene "Handle error"
bearing: err
ever after:
scene "Cleanup"
# Functional
choice **the severity level**:
option "Critical":
session "Escalate immediately"
option "Minor":
session "Log for later"
# Folk
crossroads **the severity level**:
path "Critical":
scene "Escalate immediately"
path "Minor":
scene "Log for later"
# Functional
if **has security issues**:
session "Fix security"
elif **has performance issues**:
session "Optimize"
else:
session "Approve"
# Folk
when **has security issues**:
scene "Fix security"
or when **has performance issues**:
scene "Optimize"
otherwise:
scene "Approve"
# Functional
block review(topic):
session "Research {topic}"
session "Analyze {topic}"
do review("quantum computing")
# Folk
act review(topic):
scene "Research {topic}"
scene "Analyze {topic}"
perform review("quantum computing")
**...** already uses theatre terminology.sprite, scene, crossroads stick in the mind.sonnet, opus, haiku are poetic forms.sprite (ephemeral agent)| Keyword | Origin | Rejected because |
|---|---|---|
spark | English | Good but less folklore |
wisp | English | Too insubstantial |
herald | English | More messenger than worker |
courier | French | Good functional alternative, not literary |
envoy | French | Formal, diplomatic |
shade (persistent agent, if implemented)| Keyword | Origin | Rejected because |
|---|---|---|
daemon | Greek/Unix | Unix "always running" connotation |
oracle | Greek | Too "read-only" feeling |
spirit | Latin | Too close to sprite |
specter | Latin | Negative/spooky connotation |
genius | Roman | Overloaded (smart person) |
ensemble (parallel)| Keyword | Origin | Rejected because |
|---|---|---|
chorus | Greek | Everyone speaks same thing, not different |
troupe | French | Good alternative, slightly less clear |
company | Theatre | Overloaded (business) |
crossroads (choice)| Keyword | Origin | Rejected because |
|---|---|---|
fork | Path | Too technical (git fork) |
branch | Tree | Also too technical |
divergence | Latin | Too abstract |
Preserved for benchmarking against the functional register. The functional register remains the primary path, but folk provides an interesting data point for:
A future experiment could present both registers and measure outcomes.