File: apertium-pol.pol.rlx

package info (click to toggle)
apertium-pol 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,520 kB
  • sloc: makefile: 57; xml: 38; sh: 24
file content (79 lines) | stat: -rw-r--r-- 1,228 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
DELIMITERS = "<.>" ;
LIST Case = (n s) (n p) ;
LIST NOUN = n;
LIST ADJ = adj;
LIST ADV = adv;
LIST VERB = vblex;
LIST MIEC = vbhaver;
LIST BYC = vbser;
LIST MOC = vaux;
LIST DET = det;
LIST PRN = prn;
LIST PREP = pr;
SECTION

#1
REMOVE (n) OR (v) IF (1 (n s)) ;
SELECT $$Case IF (1 (cnjcoo) LINK 1C $$Case) ;

#2
REMOVE VERB IF
        (0 VERB)
        (0 PRN)
        (1 VERB) ;

#3
REMOVE VERB IF
        (0 VERB)
        (0 PRN)
        (1 MIEC) ;

#4
REMOVE VERB IF
        (0 VERB)
        (0 PRN)
        (1 BYC) ;

#5
REMOVE VERB IF
        (0 VERB)
        (0 PRN)
        (1 MOC) ;

#6
REMOVE NOUN IF
        (0 NOUN)
        (0 MIEC)
        (1 NOUN) ;

#7
REMOVE NOUN IF
        (0 NOUN)
        (0 MIEC)
        (1 PRN) ;

#8
REMOVE NOUN IF
        (0 NOUN)
        (0 MIEC)
        (1 PREP) ;

#9
REMOVE NOUN IF
        (0 NOUN)
        (0 MIEC)
        (1 ADJ) ;

#10
REMOVE NOUN IF
        (0 NOUN)
        (0 MIEC)
        (1 ADV) ;

# Resources:
# http://visl.sdu.dk/cg3.html
# http://groups.google.com/group/constraint-grammar
# http://kevindonnelly.org.uk/2010/05/constraint-grammar-tutorial/
# http://wiki.apertium.org/wiki/Constraint_Grammar
# http://wiki.apertium.org/wiki/Apertium_and_Constraint_Grammar