LRX21M.vC1O-0
[GitHub/mt8127/ttab-system.git] / system / usr / srec / en-US / contacts.abnf
CommitLineData
d05bb22f
S
1// Copyright 2012 Google Inc. All Rights Reserved.
2//
3// Contact dialing grammar.
4//
5// For completeness. On the client side $CONTACT is added and $VOICE_DIALING
6// and $TARGET are defined either as:
7// 1) $VOICE_DIALING = $CONTACT_AND_DIGIT_DIALING;
8// $TARGET = $CONTACT; or
9// 2) $VOICE_DIALING = $DIGIT_DIALING; // If contact list is not available.
10
11tag-semantics <literal>;
12
13$root = /0.07/ $VOICE_DIALING | /0.93/ $OTHER;
14
15$CONTACT_AND_DIGIT_DIALING = /0.95/ $CONTACT_CALLING | /0.05/ $DIGIT_DIALING;
16
17$CONTACT_CALLING = [please] ((/0.94/ $CONTACT_CALL | /0.03/ dial | /0.02/ phone | /0.01/ get) {_call}) {___<scrub>___} $TARGET {___</scrub>___} $SUFFIX;
18
19$CONTACT_CALL =
20 /0.87/ call |
21 /0.08/ (make a [phone] call to) |
22 /0.05/ (place a [phone] call to);
23
24$SUFFIX = [$MOBILE | $WORK | $HOME];
25
26$HOME = ([at | at $PRON] | [on | on $PRON_THE]) $HOME_BASE [phone];
27$ON_AT = /0.85/ on | /0.15/ at;
28$MOBILE = ([$ON_AT | $ON_AT $PRON] | [$ON_AT | $ON_AT $PRON_THE]) $MOBILE_BASE [phone];
29$WORK = ([at | at $PRON] | [on | on $PRON_THE]) $HOME_BASE [phone];
30
31$PRON = (his | her | their);
32$PRON_THE = $PRON | the;
33$HOME_BASE = (home | house) {_p1};
34$MOBILE_BASE = (mobile | cell | cellular) {_p2};
35$WORK_BASE = (business | work | office) {_p3};
36
37$DIGIT_DIALING = [please] ((/0.7/ $DIGIT_CALL | /0.22/ dial | /0.08/ phone) {_call}) [the number] {___<scrub>___} $LITERAL_NUM {___</scrub>___};
38
39$DIGIT_CALL =
40 /0.75/ call |
41 /0.17/ (make a [phone] call to) |
42 /0.08/ (place a [phone] call to);
43
44$LITERAL_NUM = $digit<7-15>;
45$digit = $digit0 | $digit1 | $digit2 | $digit3 | $digit4 | $digit5 | $digit6 | $digit7 | $digit8 | $digit9;
46$digit0 = (0 {_d0});
47$digit1 = (1 {_d1});
48$digit2 = (2 {_d2});
49$digit3 = (3 {_d3});
50$digit4 = (4 {_d4});
51$digit5 = (5 {_d5});
52$digit6 = (6 {_d6});
53$digit7 = (7 {_d7});
54$digit8 = (8 {_d8});
55$digit9 = (9 {_d9});
56
57$OTHER = ($OTHER_WORDS<1->) {_other};
58$OTHER_WORDS =
59 the |
60 be |
61 to |
62 of |
63 and |
64 a |
65 in |
66 that |
67 have |
68 i |
69 it |
70 for |
71 not |
72 on |
73 with |
74 he |
75 as |
76 you |
77 do |
78 at |
79 this |
80 but |
81 his |
82 by |
83 from |
84 they |
85 we |
86 say |
87 her |
88 she |
89 or |
90 an |
91 will |
92 my |
93 one |
94 all |
95 would |
96 there |
97 their |
98 what |
99 so |
100 up |
101 out |
102 if |
103 about |
104 who |
105 get |
106 which |
107 go |
108 me |
109 when |
110 make |
111 can |
112 like |
113 time |
114 no |
115 just |
116 him |
117 know |
118 take |
119 person |
120 into |
121 year |
122 your |
123 good |
124 some |
125 could |
126 them |
127 see |
128 other |
129 than |
130 then |
131 now |
132 look |
133 only |
134 come |
135 its |
136 over |
137 think |
138 also |
139 back |
140 after |
141 use |
142 two |
143 how |
144 our |
145 work |
146 first |
147 well |
148 way |
149 even |
150 new |
151 want |
152 because |
153 any |
154 these |
155 give |
156 day |
157 most |
158 us
159 ;