Debian Codegraph @

apertium-nno-1.4.0/apertium-nno.nno.seg.rlx

raw
1 # -*- cg-pre-pipe: "apertium -d . nno-morph-cg" -*-
2 # GPL-2
3
4 SOFT-DELIMITERS = "<,>" cm ;
5 DELIMITERS = "<.>" "<:>" "<!>" "<?>" "<|>" "<$.>" "<$:>" "<$!>" "<$?>" "<$|>" sent ;
6
7 LIST <<< = <<< ;
8 LIST >>> = >>> ;
9
10 LIST sent = sent ;
11 LIST storbokstav = "<\\p{Lu}.*>"r ;
12 LIST ord = ord ;
13 LIST clb = clb ;
14
15 LIST sg = sg ;
16 LIST def = def ;
17 LIST cmp = cmp ;
18 LIST det-kvant = (det qnt) ;
19
20 TEMPLATE prevWordCrossSent = (-1 (*)) OR (-1 (>>>) LINK *-2< (<<<) BARRIER (<<<)) ;
21 TEMPLATE nextWordCrossSent = (1 (*)) OR (0 (<<<) LINK *1> (>>>) BARRIER (>>>) LINK 1 (*)) ;
22
23 BEFORE-SECTIONS
24
25
26 SELECT:EOF sent IF
27 (0 ord)
28 (T:nextWordCrossSent LINK 0 <<<)
29 ;
30
31 SELECT:klokka-14. sent IF
32 (-1 ("klokke") + sg + def)
33 (0 ord)
34 ;
35
36 SELECT:1.000-kroneseddel cmp IF # This cohort is "<1.>" and the next one is "<000-kroneseddel>"
37 (0 ord)
38 (0 ("[0-9]+[.]"r))
39 (T:nextWordCrossSent LINK 0 ("<[0-9]+-.*>"r))
40 ;
41
42 SELECT:hans-14.bursdag ord IF
43 (0 sent)
44 (NEGATE T:nextWordCrossSent LINK 0 storbokstav)
45 ;
46
47 SELECT:blir-14.-Det sent IF
48 (0 ord)
49 (T:nextWordCrossSent LINK 0 storbokstav)
50 ;
51
52 SELECT:over_30._Men clb IF
53 (0/1 det-kvant)
54 (0 <<<)
55 (T:nextWordCrossSent LINK 0 storbokstav)
56 ;
57