blob: 273f6c6ba246529ac797112775287c8cae3a9080 (
plain)
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
|
concrete SimpleSwe of SimpleAbs = open SimpleSweRes in {
lincat
S = {s : Str};
VP = {s : Str};
NP = {s : Str};
V = {s : Str};
N = {s : Num => Str ; g : Gen};
D = {s : Gen => Str ; n : Num};
PP = {s : Str};
P = {s : Str};
lin
-- cyclic x = x;
mkS x y = {s = x.s ++ y.s};
mkVP x y = {s = x.s ++ y.s};
mkNP1 x y = {s = x.s ! y.g ++ y.s ! x.n};
mkNP2 x = {s = x.s ! Pl};
mkNP3 x y = {s = x.s ++ y.s};
mkPP x y = {s = y.s ++ x.s};
robin = {s = "Robin"};
dog = {s = table {Sg => "hund" ; Pl => "hundar"} ; g = Utr};
child = {s = table {_ => "barn"} ; g = Neu};
love = {s = "älskar"};
hate = {s = variants{"hatar"; "avskyr"}};
one = {s = variants{table {Utr => "en" ; Neu => "ett"};
table {Utr => "någon" ; Neu => "något"}} ; n = Sg};
all = {s = table {_ => "alla"} ; n = Pl};
inside = {s = variants{"i"; "inuti"}};
}
|