-
Notifications
You must be signed in to change notification settings - Fork 0
/
wholenumbers.xml
73 lines (71 loc) · 3.03 KB
/
wholenumbers.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="ISO-8859-1"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd"
version="1.0" xml:lang="en-US" mode="voice" root="numbers">
<!-- this grammar translates us-english numbers to their integer representation. Initially just zero through one hundred -->
<!-- Main gramar rule -->
<rule id="numbers" scope="public">
<one-of>
<item> zero <tag>0</tag> </item>
<item> one <tag>1</tag> </item>
<item> two <tag>2</tag> </item>
<item> three <tag>3</tag> </item>
<item> four <tag>4</tag> </item>
<item> five <tag>5</tag> </item>
<item> six <tag>6</tag> </item>
<item> seven <tag>7</tag> </item>
<item> eight <tag>8</tag> </item>
<item> nine <tag>9</tag> </item>
<item> ten <tag>10</tag> </item>
<item> eleven <tag>11</tag> </item>
<item> twelve <tag>12</tag> </item>
<item> thirteen <tag>13</tag> </item>
<item> fourteen <tag>14</tag> </item>
<item> fifteen <tag>15</tag> </item>
<item> sixteen <tag>16</tag> </item>
<item> seventeen <tag>17</tag> </item>
<item> eighteen <tag>18</tag> </item>
<item> nineteen <tag>19</tag> </item>
<item> twenty <tag>20</tag> </item>
<item> twenty one <tag>21</tag> </item>
<item> twenty two <tag>22</tag> </item>
<item> twenty three <tag>23</tag> </item>
<item> twenty four <tag>24</tag> </item>
<item> twenty five <tag>25</tag> </item>
<item> twenty six <tag>26</tag> </item>
<item> twenty seven <tag>27</tag> </item>
<item> twenty eight <tag>28</tag> </item>
<item> twenty nine <tag>29</tag> </item>
<item> thirty <tag>30</tag> </item>
<item> thirty one <tag>31</tag> </item>
<item> thirty two <tag>32</tag> </item>
<item> thirty three <tag>33</tag> </item>
<item> thirty four <tag>34</tag> </item>
<item> thirty five <tag>35</tag> </item>
<item> thirty six <tag>36</tag> </item>
<item> thirty seven <tag>37</tag> </item>
<item> thirty eight <tag>38</tag> </item>
<item> thirty nine <tag>39</tag> </item>
<item> forty <tag>40</tag> </item>
<item> forty one <tag>41</tag> </item>
<item> forty two <tag>42</tag> </item>
<item> forty three <tag>43</tag> </item>
<item> forty four <tag>44</tag> </item>
<item> forty five <tag>45</tag> </item>
<item> forty six <tag>46</tag> </item>
<item> forty seven <tag>47</tag> </item>
<item> forty eight <tag>48</tag> </item>
<item> forty nine <tag>49</tag> </item>
<item> fifty <tag>50</tag> </item>
<item> fifty one <tag>51</tag> </item>
<item> fifty two <tag>52</tag> </item>
<item> fifty three <tag>53</tag> </item>
<item> fifty four <tag>54</tag> </item>
<item> fifty five <tag>55</tag> </item>
<item> fifty six <tag>56</tag> </item>
<item> fifty seven <tag>57</tag> </item>
<item> fifty eight <tag>58</tag> </item>
<item> fifty nine <tag>59</tag> </item>
</one-of>
</rule>
</grammar>