Skip to content
Snippets Groups Projects
Commit 73a84ce3 authored by jkummert's avatar jkummert
Browse files

gpsr: new better faster and stronger grammar

parent 4f7e3495
No related branches found
No related tags found
No related merge requests found
#JSGF V1.0;
grammar speechRecognition;
public <sentence> = ([tobi | biron] <VP> [([and|then] <VP>)] [([and|then] <VP>)]);
<VP> = (<VP_tritrans> | <VP_bitrans> | <VP_trans> );
<VP_repeat> = (and <VP> [<VP_repeat>]) | (then <VP> [<VP_repeat>]) | (<VP> [<VP_repeat>]);
<VP_trans> = <findObj> | <findPrs> | <followPrs> | <gotoLoc> | <speakInfo> | <answer>;
<VP_bitrans> = <deliverObjToLoc> | <deliverObjToPrs> | <findObjInLoc> | <findPrsInLoc> | <followPrsToLoc> | <takeObjFromLoc>;
<VP_tritrans> = <deliverObjToPrsInLoc>;
<findObj> = <V_find> (<NP_object> | <NP_objectpron>);
<findPrs> = <V_find> (<NP_person> | <NP_personalpron>);
<followPrs> = <V_follow> (<NP_person> | <NP_personalpron>);
<gotoLoc> = (<V_goto> <Prep> <NP_place>) | (<V_goto> <NP_place>);
<speakInfo> = <V_speak> <NP_talk>;
<answer> = <V_answer> <NP_answer>;
<deliverObjToLoc> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> <NP_place>;
<deliverObjToPrs> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> (<NP_person> | <NP_personalpron>);
<findObjInLoc> = <V_find> (<NP_object> | <NP_objectpron>) <Prep> <NP_place>;
<findPrsInLoc> = <V_find> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>;
<followPrsToLoc> = <V_follow> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>;
<takeObjFromLoc> = <V_take> (<NP_object> | <NP_objectpron>) <takePrep> <NP_place>;
<deliverObjToPrsInLoc> = <V_deliver> (<NP_object> | <NP_objectpron>) <deliverPrep> (<NP_person> | <NP_personalpron>) <Prep> <NP_place>;
<V_deliver> = (bring | bear | carry | deliver | fetch | transport | take);
<V_find> = (find | (look for) | search);
<V_follow> = (follow);
<V_goto> = ((go) | (navigate) | reach | (get) | (move) | (drive));
<V_take> = (take | grasp | get | pick | grab);
<V_speak> = (tell | say | speak);
<V_answer> = (answer);
<NP_place> = (the <N_place>) | (a <N_place>) | (an <N_place>) | (<N_place>);
<NP_object> = (the <N_object>) | (a <N_object>) | (an <N_object>) | (<N_object>);
<NP_person> = (a <N_names>)|( the <N_names>) | (<N_names>);
<NP_objectpron> = <N_objectpron>;
<NP_personalpron> = <N_personalpron>;
<NP_talk> = <N_talk>;
<NP_answer> = <N_answer>;
<N_place> = (bedroom | chair | bin | bed | (bathroom locker) | bathroom | (dining room) | shelf | (dinner table) | hall | (kitchen table) | kitchen | corridor);
<N_object> = (milk | coke | (orange juice) | beer | apple | banana | orange | pear | lays | crackers | pringles | chocolate | cloth | detergent | sponge | brush);
<Prep> = from | at | (which is in) | (who is in) | in | to | into;
<deliverPrep> = to;
<takePrep> = from | (which is in);
<N_personalpron> = her | him | his | me | them | their;
<N_objectpron> = it;
<N_names> = (anna | beth | carmen | jennifer | jessica | kimberly | kristina | laura | mary | sarah | alfred | charles | daniel | james | john | luis | paul | richard | robert | steve | person |(calling person) );
<N_talk> = (your name) | (the name of your team) | (the time) | (what time is it) | (the date) | (what day is today) | (what day is tomorrow) | (the day of the month) | (the day of the week);
<N_answer> = (a question) | (question);
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