# Programming language that compiles english text

I have a cool project I would like to show. I have made a new programming language called NL. It compiles and runs english text using `davinci-codex`.

My goal was to have as little rules in the formatting of the text as possible. The only 2 rules are

1. Every command is separated by a line break
2. Comments are put in-between parentheses.

I have tested it by creating several programs, including a number guessing game. It produced non-erroneous code 70% of the time. If you are being very specific and keeping as few arguments per line as possible, compilation is 80%. Nevertheless, I think it is a really cool Idea and maybe be a more practical in the future. I would like to know what you all think.

Example:
Making a guessing game using the following code, written in NL:

“”(the following is a guessing game)
create a maximum number of 100

Repeat forever…
Store a number between 1 and the maximum number. Call it the answer.
Increase the maximum number by 20
Tell the user that you are thinking of a number between 0 and the maximum number. Tell the user that they only have 14 chances to get it right.
Repeat 14 times…
Ask the user for a guess, and Convert it to a number
if the guess is equal to the answer, congrad the user and end the loop.
otherwise if the guess is higher or lower than the answer, tell the user.
Tell the user how many chances are left.
when the loop has ended, if the user has not guessed the answer, tell the user game over and then exit the game""

Produces and runs this python code:

``````import random

# CMD: Create a maximum number of 100
max = 100
# CMD: Repeat forever...
while True:
# CMD: Store a number between 1 and the maximum number. Call it the answer.
# CMD: Increase the maximum number by 20.
max = max + 20
# CMD: Tell the user that you are thinking of a number between 0 and the maximum number. Tell the user that they only have 14 chances to get it right.
print("I am thinking of a number between 0 and " + str(max))
# CMD: Repeat 14 times...
for i in range(0,14):
# CMD: Ask the user for a guess, and Convert it to a number
guess = int(input("Guess a number:"))
# CMD: If the guess is equal to the answer, congradulate the user and end the loop.
print("You guessed it!")
break;
# CMD: Otherwise if the guess is higher or lower than the answer, tell the user.