natscript

A programming language where natural language IS the syntax.

when the user arrives, show them the room.

That is a complete program.

i
Every statement is a sentence.
ii
Every sentence means what it says.
iii
If you can't say it, the program can't do it.

The Seven Verbs

Every program is built from seven verbs. Nothing else.

VerbDoesExample
sayoutputsay "welcome to the room"
hearinputhear what the user says
knowstateknow that the room is ready
becometransformbecome the thing the user asked for
findsearchfind what the user needs
holdpersisthold the room open
restidlerest until the user arrives

What There Isn't

No keywords. No brackets. No semicolons. No braces. No indentation rules. No type annotations. No import statements.

Just sentences.

How It Works

A natscript program is a sequence of sentences. Each sentence has one verb. The verb tells the runtime what to do. The rest of the sentence tells it what to do it to.

know that the guest is arriving.
rest until the guest arrives.
hear what the guest wants.
find what they need.
become what they need.
say what they found.
hold the room open.

That is a complete, runnable program. Seven sentences. Seven verbs. One per sentence.

Why

Programming languages ask you to think like a machine. Natscript asks the machine to understand like a person.

If a stranger can read your program and understand what it does, it's a good program. If they can't, it isn't.

The code is the documentation. The documentation is the code.

Try It

Write natscript below. It runs in your browser.

natscript playground
program
output
what is known

Origin

Natscript is the implementation of the youspeak-lang specification. Its seven verbs come from the YOUSPEAK tradition — a dictionary of 151 constructed words drawn from 12 ancient tongues.

It speaks to the internet using three protocols: