Commit | Line | Data |
---|---|---|
d05bb22f S |
1 | // Copyright 2012 Google Inc. All Rights Reserved. |
2 | // | |
3 | // Grammar used for disambiguation of results and for confirming or | |
4 | // canceling a call. | |
5 | ||
6 | tag-semantics <literal>; | |
7 | ||
8 | $root = /0.15/ $COMMAND | /0.85/ $OTHER; | |
9 | ||
10 | $COMMAND = cancel {_cancel} | okay {_okay} | $DISAMBIG; | |
11 | ||
12 | $DISAMBIG = select $digit; | |
13 | $digit = $digit1 | $digit2 | $digit3; | |
14 | $digit1 = 1 {_select_1}; | |
15 | $digit2 = 2 {_select_2}; | |
16 | $digit3 = 3 {_select_3}; | |
17 | ||
18 | $OTHER = ($OTHER_WORDS<1->) {_other}; | |
19 | $OTHER_WORDS = | |
20 | the | | |
21 | be | | |
22 | to | | |
23 | of | | |
24 | and | | |
25 | a | | |
26 | in | | |
27 | that | | |
28 | have | | |
29 | i | | |
30 | it | | |
31 | for | | |
32 | not | | |
33 | on | | |
34 | with | | |
35 | he | | |
36 | as | | |
37 | you | | |
38 | do | | |
39 | at | | |
40 | this | | |
41 | but | | |
42 | his | | |
43 | by | | |
44 | from | | |
45 | they | | |
46 | we | | |
47 | say | | |
48 | her | | |
49 | she | | |
50 | or | | |
51 | an | | |
52 | will | | |
53 | my | | |
54 | all | | |
55 | would | | |
56 | there | | |
57 | their | | |
58 | what | | |
59 | so | | |
60 | up | | |
61 | out | | |
62 | if | | |
63 | about | | |
64 | who | | |
65 | get | | |
66 | which | | |
67 | go | | |
68 | me | | |
69 | when | | |
70 | make | | |
71 | can | | |
72 | like | | |
73 | time | | |
74 | no | | |
75 | just | | |
76 | him | | |
77 | know | | |
78 | take | | |
79 | person | | |
80 | into | | |
81 | year | | |
82 | your | | |
83 | good | | |
84 | some | | |
85 | could | | |
86 | them | | |
87 | see | | |
88 | other | | |
89 | than | | |
90 | then | | |
91 | now | | |
92 | look | | |
93 | only | | |
94 | come | | |
95 | its | | |
96 | over | | |
97 | think | | |
98 | also | | |
99 | back | | |
100 | after | | |
101 | use | | |
102 | how | | |
103 | our | | |
104 | work | | |
105 | first | | |
106 | well | | |
107 | way | | |
108 | even | | |
109 | new | | |
110 | want | | |
111 | because | | |
112 | any | | |
113 | these | | |
114 | give | | |
115 | day | | |
116 | most | | |
117 | us | |
118 | ; |