Skip to content
Snippets Groups Projects
Commit b804b367 authored by gminareci's avatar gminareci
Browse files

grammars looked over

parent 120ea281
No related branches found
No related tags found
No related merge requests found
...@@ -4,4 +4,4 @@ public <task> = [tobi] [please] <command> [please] [tobi]; ...@@ -4,4 +4,4 @@ public <task> = [tobi] [please] <command> [please] [tobi];
<command> = <cleanUp>; <command> = <cleanUp>;
<cleanUp> = (clean | tidy) [up] [the] <rooms>; <cleanUp> = (clean | tidy) [up] [the] <rooms>;
<rooms> = kitchen | hallway | bedroom | living_room; <rooms> = kitchen | hallway | bedroom | (living room);
...@@ -3,7 +3,7 @@ grammar ToBI_object; ...@@ -3,7 +3,7 @@ grammar ToBI_object;
public <statement> = <objectPhrase>; public <statement> = <objectPhrase>;
<objectPhrase> = [<verb>] [<personal_pronoun>] [<article>] <objects>; <objectPhrase> = [<verb>] [<personal_pronoun>] [<article>] <objects>;
<objects> = (apple) | (hair gel) | (cookies) | (coffee) | (beer); <objects> = (orange juice) | beer | cola | (chocolate milk) | (energy drink) | (grape juice) | milk | water;
<personal_pronoun> = me; <personal_pronoun> = me;
<verb> = bring | carry | retrieve | fetch | get | give; <verb> = bring | carry | retrieve | fetch | get | give;
......
...@@ -3,11 +3,11 @@ grammar ToBI_shellgame; ...@@ -3,11 +3,11 @@ grammar ToBI_shellgame;
public <statement> = [tobi] [please] <command> [please] [tobi]; public <statement> = [tobi] [please] <command> [please] [tobi];
<command> = <introduce> | <abilities> | <play> | <follow> | <door> | <leave> | <finish> | <observe>; <command> = <introduce> | <abilities> | <play> | <follow> | <door> | <leave> | <finish> | <observe>;
<introduce> = introduce [yourself]; <introduce> = (introduce [yourself]);
<abilities> = tell your abilities | list your abilities; <abilities> = (tell your abilities) | (list your abilities);
<play> = let us play | lets play; <play> = (let us play) | (lets play);
<follow> = follow [me]; <follow> = (follow [me]);
<door> = recognize [a] door; <door> = (recognize [a] door);
<leave> = leave | go back | we are done; <leave> = leave | (go back) | (we are done);
<finish> = lets call it a day; <finish> = (lets call it a day);
<observe> = (observe | start observing ); <observe> = (observe) | (start observing );
...@@ -5,6 +5,6 @@ public <confirm> = <confirm_yes> | <confirm_no>; ...@@ -5,6 +5,6 @@ public <confirm> = <confirm_yes> | <confirm_no>;
<confirm_yes> = <robot> <yes_words>; <confirm_yes> = <robot> <yes_words>;
<confirm_no> = <robot> <no_words>; <confirm_no> = <robot> <no_words>;
<yes_words> = (yes | confirmed); <yes_words> = (yes) | (confirmed);
<no_words> = (no); <no_words> = (no);
<robot> = (tobi | robot | biron); <robot> = (tobi) | (robot) | (biron);
#JSGF V1.0; #JSGF V1.0;
grammar ToBI_confirm; grammar ToBI_confirm;
public <confirm> = [tobi] (<confirm_yes> | <confirm_no>) [tobi]; public <confirm> = [tobi] (<confirm_yes> | <confirm_no>) [tobi];
<confirm_yes> = follow me |([please] yes [please]); <confirm_yes> = follow me | ([please] yes [please]);
<confirm_no> = no [thanks]; <confirm_no> = no [thanks];
...@@ -6,14 +6,14 @@ public <task> = [<robot_name>] [(would | could) you] [please] <command> [please] ...@@ -6,14 +6,14 @@ public <task> = [<robot_name>] [(would | could) you] [please] <command> [please]
<command> = <bring_command> | <goto_command> | <find_command> | <follow_command> | <cleanup_command> | <show_command> | <pointat_command>; <command> = <bring_command> | <goto_command> | <find_command> | <follow_command> | <cleanup_command> | <show_command> | <pointat_command>;
<bring_command> = (<bringVerb> [<person>] [<article>] <grab_object> [<preposition> [<article>] <location>] [(to|into) [<article>] <second_location>]) | (<bringVerb> [<article>] <person> <preposition> <article> <location>); <bring_command> = (<bringVerb> [<person>] [<article>] <grab_object> [<preposition> [<article>] <location>] [((to|into) [<article>] <second_location>)]) | (<bringVerb> [<article>] <person> <preposition> <article> <location>);
<goto_command> = <gotoVerb> <preposition> ([<article>] <location>); <goto_command> = (<gotoVerb> <preposition> ([<article>] <location>));
<follow_command> = <followVerb> <person>; <follow_command> = (<followVerb> <person>);
<find_command> = <findVerb> [<article>] (<grab_object> | <person>) [in [<article>] <location>]; <find_command> = (<findVerb> [<article>] (<grab_object> | <person>) [in [<article>] <location>]);
<pointat_command> = <pointatVerb> [<article>] <location>; <pointat_command> = (<pointatVerb> [<article>] <location>);
<learn_command> = <learnVerb> [<article>] (<person> | <location>); <learn_command> = (<learnVerb> [<article>] (<person> | <location>));
<cleanup_command> = <cleanupVerb> [<article> <room_class>]; <cleanup_command> = (<cleanupVerb> [<article> <room_class>]);
<show_command> = <showVerb> [<person>] (([<article>] <grab_object>) | ([the (path|way) to] [<article>] <location>)); <show_command> = (<showVerb> [<person>] (([<article>] <grab_object>)) | (([the (path|way) to] [<article>] <location>)));
<bringVerb> = bring | carry | retrieve | fetch | get | give | put | attend | deliver | convey | gather | (pick up) | take | lead | grasp; <bringVerb> = bring | carry | retrieve | fetch | get | give | put | attend | deliver | convey | gather | (pick up) | take | lead | grasp;
<findVerb> = detect | find | (search [for]) | (check [for]) | acquire | attain | obtain | (look for); <findVerb> = detect | find | (search [for]) | (check [for]) | acquire | attain | obtain | (look for);
...@@ -30,19 +30,19 @@ public <task> = [<robot_name>] [(would | could) you] [please] <command> [please] ...@@ -30,19 +30,19 @@ public <task> = [<robot_name>] [(would | could) you] [please] <command> [please]
<grab_object> = <cleaning_class> | <drink_class> | <snack_class> | <food_class> | tool | (bathroom stuff) | cleaning_stuff | drinks | drink | snacks | snack | object | food | something | stuff | item | beverage | things; <grab_object> = <cleaning_class> | <drink_class> | <snack_class> | <food_class> | tool | (bathroom stuff) | cleaning_stuff | drinks | drink | snacks | snack | object | food | something | stuff | item | beverage | things;
<cleaning_class> = brush | detergent | shampoo | sponge | toothpaste; <cleaning_class> = brush | detergent | shampoo | sponge | toothpaste;
<drink_class> = (orange juice) | beer | cola | chocolate_milk | energy_drink | grape_juice | milk | water; <drink_class> = (orange juice) | beer | cola | (chocolate milk) | (energy drink) | (grape juice) | milk | water;
<snack_class> = chocolate_cookies | chips | biscuits | bread | pringles | (strawberry cookies); <snack_class> = (chocolate cookies) | chips | biscuits | bread | pringles | (strawberry cookies);
<food_class> = baby_food | crackers | coffee | yeast | noodles | beans; <food_class> = (baby food) | crackers | coffee | yeast | noodles | beans;
<location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <door_class> | <exit_class> | exit | door | seating | utensil | location | room | appliance | shelf | seat | table | somewhere | apartment | furniture; <location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <door_class> | <exit_class> | exit | door | seating | utensil | location | room | appliance | shelf | seat | table | somewhere | apartment | furniture;
<second_location> = <appliance_class> | <shelf_class> | <seat_class> | <room_class> | <table_class> | <door_class> | door | seating | utensil | location | room | appliance | shelf | seat | table | somewhere | apartment | furniture; <second_location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <door_class> | door | seating | utensil | location | room | appliance | shelf | seat | table | somewhere | apartment | furniture;
<appliance_class> = waste_bin | fridge | stove; <appliance_class> = waste_bin | fridge | stove;
<shelf_class> = bar | side_board | (right side_table) | (left side_table); <shelf_class> = bar | side_board | (right side_table) | (left side_table);
<seat_class> = <seating_class>; <seat_class> = <seating_class>;
<seating_class> = sofa | armchair | bed; <seating_class> = sofa | armchair | bed;
<table_class> = kitchen_table | hallway_table | dinner_table | couch_table ; <table_class> = (kitchen table) | hallway_table | dinner_table | couch_table ;
<door_class> = (room door); <door_class> = (room door);
<room_class> = kitchen | living_room | bedroom | hallway; <room_class> = kitchen | living_room | bedroom | hallway;
<exit_class> = (exit door) | (entry door); <exit_class> = (exit door) | (entry door);
......
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
grammar ToBI_location; grammar ToBI_location;
public <statement> = <locationPhrase> [please]; public <statement> = <locationPhrase> [please];
<locationPhrase> = [<verb>] [<preposition>] [the | this] <location>; <locationPhrase> = ([<verb>] [<preposition>]) [(the | this)] <location>;
<verb> = go | search | learn | remember | memorize; <verb> = go | search | learn | remember | memorize;
<location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <door_class> | <exit_class> | <everywhere_class>; <location> = <appliance_class> | <shelf_class> | <seat_class> | <table_class> | <room_class> | <door_class> | <exit_class> | <everywhere_class>;
<appliance_class> = waste_bin | fridge | stove; <appliance_class> = (waste bin) | fridge | stove;
<shelf_class> = bar | side_board | (right side_table) | (left side_table); <shelf_class> = bar | (side board) | (right sidetable | (left sidetable);
<seat_class> = <seating_class>; <seat_class> = <seating_class>;
<seating_class> = sofa | armchair | bed; <seating_class> = sofa | armchair | bed;
<table_class> = kitchen_table | hallway_table | dinner_table | couch_table ; <table_class> = (kitchen table) | (hallway table) | (dinner table) | (couch table) ;
<door_class> = (room door); <door_class> = (room door);
<utensil_class> = trash_bin; <utensil_class> = (trash bin);
<exit_class> = (exit door) | (entry door); <exit_class> = (exit door) | (entry door);
<everywhere_class> = everywhere; <everywhere_class> = everywhere;
<room_class> = kitchen | living_room | bedroom | hallway; <room_class> = kitchen | (living room) | bedroom | hallway;
<preposition> = into | (on [top of]) | in | ([next] to) | at | near | in | from; <preposition> = into | (on [top of]) | in | ([next] to) | at | near | in | from;
...@@ -3,11 +3,11 @@ grammar ToBI_object; ...@@ -3,11 +3,11 @@ grammar ToBI_object;
public <statement> = [<verb>] [<article>] <object> [please]; public <statement> = [<verb>] [<article>] <object> [please];
<object> = <grab_object>; <object> = <grab_object>;
<grab_object> = <cleaning_class> | <drink_class> | <snack_class> | <food_class> | tool | (bathroom stuff) | cleaning_stuff | drinks | snacks | object | food | something | stuff | item | beverage | things; <grab_object> = <cleaning_class> | <drink_class> | <snack_class> | <food_class> | tool | (bathroom stuff) | (cleaning stuff) | drinks | snacks | object | food | something | stuff | item | beverage | things;
<cleaning_class> = brush | detergent | shampoo | sponge | toothpaste; <cleaning_class> = brush | detergent | shampoo | sponge | toothpaste;
<drink_class> = (orange juice) | beer | cola | chocolate_milk | energy_drink | grape_juice | milk | water; <drink_class> = (orange juice) | beer | cola | (chocolate milk) | (energy drink) | (grape juice) | milk | water;
<snack_class> = chocolate_cookies | chips | biscuits | bread | pringles | (strawberry cookies); <snack_class> = (chocolate cookies) | chips | biscuits | bread | pringles | (strawberry cookies);
<food_class> = baby_food | crackers | coffee | yeast | noodles | beans; <food_class> = (baby food) | crackers | coffee | yeast | noodles | beans;
......
...@@ -9,5 +9,5 @@ public <restaurant> = [tobi] [please] bring <objects> to <deliveryLocations>; ...@@ -9,5 +9,5 @@ public <restaurant> = [tobi] [please] bring <objects> to <deliveryLocations>;
<objects> = <drinks> | <snacks>; <objects> = <drinks> | <snacks>;
<drinks> = (orange juice) | beer | cola | chocolate_milk | energy_drink | grape_juice | milk | water; <drinks> = (orange juice) | beer | cola | (chocolate milk) | (energy drink) | (grape juice) | milk | water;
<snacks> = chocolate_cookies | chips | biscuits | bread | pringles | (strawberry cookies); <snacks> = (chocolate cookies) | chips | biscuits | bread | pringles | (strawberry cookies);
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
grammar restaurant_save_command; grammar restaurant_save_command;
public <restaurant> = [tobi] [please] (<followMe> | <stop> | <ordering> | <save>); public <restaurant> = [tobi] [please] (<followMe> | <stop> | <ordering> | <save>);
<save> = save [[the | a] location]; <save> = save [([the | a]) location];
<followMe> = (follow me) | (come [(with me) | here]) | (keep up); <followMe> = (follow me) | (come [(with me) | here]) | (keep up);
<ordering> = ordering; <ordering> = ordering;
<stop> = stop [this]; <stop> = stop [this];
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
grammar ToBI_room; grammar ToBI_room;
public <statement> = <rooms>; public <statement> = <rooms>;
<rooms> = [the] (living_room | bedroom | hallway | kitchen); <rooms> = [the] ((living room) | bedroom | hallway | kitchen);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment