File: TagRewrite.rtx

package info (click to toggle)
apertium-recursive 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,132 kB
  • sloc: cpp: 8,682; python: 178; makefile: 30; sh: 9
file content (19 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
n: _.number;
adj: _.number;
prn: _.<pos>.person.number;
vblex: _.tense.number;
VP: _;
NP: _.poss;

number = (ND sg) sg pl sp ND;
poss = px1sg px2sg px3sg px1pl px2pl px3pl;
person = p1 p2 p3;
tense = past pri pres;

poss > person : px1sg p1, px2sg p2, px3sg p3, px1pl p1, px2pl p2, px3pl p3;
poss > number : px1sg sg, px2sg sg, px3sg sg, px1pl pl, px2pl pl, px3pl pl;
tense > tense : past pri;

NP -> n.$poss prn {2[person=1.poss, number=1.poss] _1 1} |
      n.$poss adj {blah@prn.pos.[1.poss>person].[1.poss>number] _ 2[number=1.number] _1 1};
VP -> NP vblex {1 _1 2[number=1.poss]};