-
Notifications
You must be signed in to change notification settings - Fork 3
/
apertium-nob.nob.seg.rlx
63 lines (48 loc) · 1.41 KB
/
apertium-nob.nob.seg.rlx
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
# -*- cg-pre-pipe: "apertium -d . nob-morph-cg" -*-
# GPL-2
SOFT-DELIMITERS = "<,>" cm ;
DELIMITERS = "<.>" "<:>" "<!>" "<?>" "<|>" "<$.>" "<$:>" "<$!>" "<$?>" "<$|>" sent ;
LIST <<< = <<< ;
LIST >>> = >>> ;
LIST sent = sent ;
LIST storbokstav = "<\\p{Lu}.*>"r ;
LIST ord = ord ;
LIST clb = clb ;
LIST sg = sg ;
LIST def = def ;
LIST cmp = cmp ;
LIST det-kvant = (det qnt) ;
TEMPLATE prevWordCrossSent = (-1 (*)) OR (-1 (>>>) LINK *-2< (<<<) BARRIER (<<<)) ;
TEMPLATE nextWordCrossSent = (1 (*)) OR (0 (<<<) LINK *1> (>>>) BARRIER (>>>) LINK 1 (*)) ;
BEFORE-SECTIONS
SELECT:EOF sent IF
(0 ord)
(T:nextWordCrossSent LINK 0 <<<)
;
SELECT:klokka-14. sent IF
(-1 ("klokke") + sg + def)
(0 ord)
;
SELECT:1.000-kroneseddel cmp IF # This cohort is "<1.>" and the next one is "<000-kroneseddel>"
(0 ord)
(0 ("[0-9]+[.]"r))
(T:nextWordCrossSent LINK 0 ("<[0-9]+-.*>"r))
;
REMOVE:1945.-. cmp IF
(0 sent OR ord)
(0 ("[0-9]+[.]"r))
(NEGATE T:nextWordCrossSent LINK 0 ("<[0-9]+-.*>"r))
;
SELECT:hans-14.bursdag ord IF
(0 sent)
(NEGATE T:nextWordCrossSent LINK 0 storbokstav)
;
SELECT:blir-14.-Det sent IF
(0 ord)
(T:nextWordCrossSent LINK 0 storbokstav)
;
SELECT:over_30._Men clb IF
(0/1 det-kvant)
(0 <<<)
(T:nextWordCrossSent LINK 0 storbokstav)
;