Language Reference

Strings

Work with text using natural checks, prefixes, and readable concatenation.

String tools

  • Use quotes for literals.
  • Concatenate with +.
  • Check prefixes and suffixes.

String literals

Wrap text in quotes. Use descriptive variable names to keep intent clear.

strings.pln
set title to "Plain Language"
set message to "Hello, " + title

Say and tell shortcuts

say treats plain words as text, so you can speak quickly without extra quotes.

say.pln
say hello there
say "System online"
print total
say value of total

String checks

Use readable checks for empty strings, prefixes, and suffixes.

checks.pln
if name is empty then return "Missing name"
if filename ends with ".json" then print "JSON file"
if slug starts with "api-" then print "API route"

Readable formatting

  • Prefer explicit concatenation to keep behavior clear.
  • Store reusable phrases in variables for consistency.
  • Use str() when mixing non-string values.