-
Notifications
You must be signed in to change notification settings - Fork 2
/
engnum.lexc
82 lines (71 loc) · 1.63 KB
/
engnum.lexc
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
74
75
76
77
78
79
80
81
82
!!!engnum.lexc!!!
Multichar_Symbols [stem] +Num +Npref+
+Npref1+ +Npref2+ +Npref3+ +Npref4+
+Npref5+ +Npref6+ +Npref7+ +Npref8+
+Npref9+ +Npref1nn+ +Npref1nnn+
+Npref1n+ +Npref2n+ +Npref3n+ +Npref4n+
+Npref5n+ +Npref6n+ +Npref7n+ +Npref8n+
+Npref9n+ +nom +ord
LEXICON Root
NumPref;
LEXICON Num
one NumSuffix;
two NumSuffix;
three NumSuffix;
four NumSuffix;
five NumSuffix;
six NumSuffix;
seven NumSuffix;
eight NumSuffix;
nine NumSuffix;
one[stem]+Num+ord:first #;
two[stem]+Num+ord:second #;
three[stem]+Num+ord:third #;
four[stem]+Num+ord:fourth #;
five[stem]+Num+ord:fifth #;
six[stem]+Num+ord:sixth #;
seven[stem]+Num+ord:seventh #;
eight[stem]+Num+ord:eighth #;
nine[stem]+Num+ord:ninth #;
LEXICON Num1
ten Num1Suffix;
one:eleven Num1Suffix;
two:twelve Num1Suffix;
three:thirteen Num1Suffix;
four:fourteen Num1Suffix;
five:fifteen Num1Suffix;
six:sixteen Num1Suffix;
seven:seventeen Num1Suffix;
eight:eighteen Num1Suffix;
nine:nineteen Num1Suffix;
Num1Suffix;
LEXICON NumPref
zero:zero Num1Suffix;
Num;
+Npref1n+:0 Num1;
+Npref2n+:twenty- Num;
+Npref3n+:thirty- Num;
+Npref4n+:fourty Num;
+Npref5n+:fifty- Num;
+Npref6n+:sixty- Num;
+Npref7n+:seventy- Num;
+Npref8n+:eighty- Num;
+Npref9n+:ninety- Num;
+Npref2n+twenty:twenty Num1Suffix;
+Npref3n+thirty:thirty Num1Suffix;
+Npref4n+fourty:fourty Num1Suffix;
+Npref5n+fifty:fifty Num1Suffix;
+Npref6n+sixty:sixty Num1Suffix;
+Npref7n+seventy:seventy Num1Suffix;
+Npref8n+eighty:eighty Num1Suffix;
+Npref9n+ninety:ninety Num1Suffix;
Lexicon NumSuffix
[stem]+Num:0 Nom;
Lexicon Num1Suffix
two[stem]+Num+ord:twelfth #;
[stem]+Num:^th Ord;
[stem]+Num:0 Nom;
Lexicon Nom
+nom:0 #;
Lexicon Ord
+ord:0 #;