TypeGlish documentation
TypeGlish compiles plain-English prompts into structured, testable programs — a real type system for English, a checker that proves contradictions before you ship, and tests that live beside the rules they guard.
Start here
Quickstart
Run the CLI with npx, review your first prompt, watch the checker prove a contradiction, and pin the fix with a test — in five minutes.
The language
Statements, modality, types, control flow — how English becomes checkable clauses.
✓Diagnostics
What typeglish check proves — every code, its severity, and the other end it cites; --explain <code> spells any of them out.
CLI reference
Every command and flag — review, check, score, test, build, --fix, --explain — with the outputs you should expect.
Why a compiler for English
Raw prompts are sand: fast to build with, quick to crumble under weight. TypeGlish gives prompts load-bearing structure — the same prompt, graded and proven:
// before: vibes Be helpful and always try to resolve things quickly, but never promise anything specific. // after: a policy # Constraints - SHOULD resolve a request in one reply. - NEVER state a delivery date; share a tracking link instead.
npx typeglish check prompt.md reads plain English as-is — start from the notes it gives you.