File: apertium-srd.srd.rlx

package info (click to toggle)
apertium-srd 1.2.0~r82994-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,012 kB
  • sloc: makefile: 72; python: 52; sh: 51; xml: 38
file content (58 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download | duplicates (2)
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
DELIMITERS = "<.>" "<!>" "<?>" "<...>" "<ΒΆ>" ;
SOFT-DELIMITERS = "<,>" ;

SETS

LIST BOS = (>>>) ;
LIST EOS = (<<<) ;

LIST A = adj ;
LIST Adv = adv ;
LIST Pron = prn ;
LIST N = n ;
LIST V = vblex ;
LIST Det = det ;
LIST CC = cnjcoo ;
LIST CS = cnjsub ;
LIST Pos = pos ;
LIST Pr = pr ; 
LIST Interj = ij ;
LIST Num = num ;
LIST Cm = cm ;

LIST Sua = "<sua>"i ;
LIST Si = "<si>"i ;

LIST Interr = itg ;
LIST Ref = ref ;

LIST Sg3 = (p3 sg) ;

# All possible word categories

SET WORD = N | V | A | Pron | Det | Adv | CC | CS | Interj | Num | ("\?") ;

SET PRE-N =  A | Det | Num | (n gen) | (prn gen) | CC ;

SET MARK =  Cm | ("\\") | ("\;") ;

SET WORDMARK = WORD | MARK ;

SET N-MOD = A | Det | Num | (n gen) | (prn gen) ;

# Categories which cannot be part of a noun phrase

SET NPNH = WORDMARK - PRE-N ;
SET NPNHA = WORDMARK - PRE-N - Adv ;
SET NOT-ADV = WORDMARK - Adv ;


# Barriers

SET S-BOUNDARY = CS | Interr | EOS;

SECTION

SELECT Pos IF (-1 N) (0 Sua) (0 Det OR V) ;

SELECT Ref IF (0 Si) (1C V + Sg3) ;