Skip to content

Vocabulary and library authoring ​

The maintained package is the inseparable bundle release/library/vocabulary.json, profile.json, and definitions/. There is no module loader or package manager.

Terms and frames ​

Every vocabulary term declares an ID, canonical phrase, aliases, grammar category, sealed operation, typed participants, and descriptive definition. The grammar chooses a category and unique phrase; familiar English never acquires behavior by itself.

Sealed frames define allowed operation/participant combinations. Concept realization may be composed, which names an ordinary definition and maps roles such as source, parameter, state, and result to formal IDs. Bindings are by typed role, not prose spelling or declaration order. A deferred realization is metadata that execution and Go generation reject.

Browse all installed terms in the searchable vocabulary catalog.

Ordinary definitions ​

An ordinary definition envelope declares typed, access-controlled formals, a result type, and a body file relative to vocabulary.json. Bodies use Stated source and may start with the definition-only scalar Return form.

All bodies are loaded and compiled before the public description, including unused definitions. The compiler rejects missing or escaping body paths, duplicate IDs/forms, sealed-frame violations, bad bindings, result mismatches, invalid access, unsupported dependencies, and dependency cycles.

Every call receives fresh local binders, sequences, accumulators, worklists, tables, and control targets. Read-only formals cannot mutate caller storage. Sequence returns are copied.

Metadata versus proof ​

Source bodies, type frames, bindings, and executable operations are mechanically checked. Descriptive contract prose and a claim that a body satisfies that prose remain trusted documentation; the compiler does not prove them.

The profile selects a composed linear sequence lookup. Its hash/set policy is deliberately deferred and excluded from executable release examples. Installed metadata is therefore broader than the tested executable subset.

Authoring workflow ​

Define reusable named functions in a .st source file and call them with explicit named arguments. The stated compiler resolves the complete file, rejects invalid or cyclic calls, and emits ordinary callable Go functions.

Stated compiles controlled English deterministically. It does not call an LLM at compile time.