Repository: hedyorg/hedy

Issue:
Keywords Forward and Turn can be handled better whenever misspelled
Level: 1
Code:
`forwardd 50
turn left`
![image](https://user-images.githubusercontent.com/33595265/134551035-18ba991d-8a69-43c0-965b-9e9d08139d36.png)

Level: 1
Code:
`forward 50
turnn left`
![image](https://user-images.githubusercontent.com/33595265/134551199-de7ddd42-95a2-42ff-9388-332e5ab38449.png)



Discussion:

Resolving patch:
diff --git a/hedy.py b/hedy.py
--- a/hedy.py
+++ b/hedy.py
@@ -15,28 +15,28 @@
 reserved_words = ['and', 'except', 'lambda', 'with', 'as', 'finally', 'nonlocal', 'while', 'assert', 'False', 'None', 'yield', 'break', 'for', 'not', 'class', 'from', 'or', 'continue', 'global', 'pass', 'def', 'if', 'raise', 'del', 'import', 'return', 'elif', 'in', 'True', 'else', 'is', 'try']
 
 # Commands per Hedy level which are used to suggest the closest command when kids make a mistake
-commands_per_level = {1: ['print', 'ask', 'echo'] ,
-                      2: ['print', 'ask', 'echo', 'is'],
-                      3: ['print', 'ask', 'is'],
-                      4: ['print', 'ask', 'is', 'if'],
-                      5: ['print', 'ask', 'is', 'if', 'repeat'],
-                      6: ['print', 'ask', 'is', 'if', 'repeat'],
-                      7: ['print', 'ask', 'is', 'if', 'repeat'],
-                      8: ['print', 'ask', 'is', 'if', 'for'],
-                      9: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      10: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      11: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      12: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      13: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      14: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      15: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      16: ['print', 'ask', 'is', 'if', 'for', 'elif'],
-                      17: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while'],
-                      18: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while'],
-                      19: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while'],
-                      20: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while'],
-                      21: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while'],
-                      22: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while']
+commands_per_level = {1: ['print', 'ask', 'echo', 'turn', 'forward'] ,
+                      2: ['print', 'ask', 'echo', 'is', 'turn', 'forward'],
+                      3: ['print', 'ask', 'is', 'turn', 'forward'],
+                      4: ['print', 'ask', 'is', 'if', 'turn', 'forward'],
+                      5: ['print', 'ask', 'is', 'if', 'repeat', 'turn', 'forward'],
+                      6: ['print', 'ask', 'is', 'if', 'repeat', 'turn', 'forward'],
+                      7: ['print', 'ask', 'is', 'if', 'repeat', 'turn', 'forward'],
+                      8: ['print', 'ask', 'is', 'if', 'for', 'turn', 'forward'],
+                      9: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      10: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      11: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      12: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      13: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      14: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      15: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      16: ['print', 'ask', 'is', 'if', 'for', 'elif', 'turn', 'forward'],
+                      17: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while', 'turn', 'forward'],
+                      18: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while', 'turn', 'forward'],
+                      19: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while', 'turn', 'forward'],
+                      20: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while', 'turn', 'forward'],
+                      21: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while', 'turn', 'forward'],
+                      22: ['print', 'ask', 'is', 'if', 'for', 'elif', 'while', 'turn', 'forward']
                       }
 
 # we generate Python strings with ' always, so ' needs to be escaped but " works fine


Test patch: