File: ConditionedClips.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 (10 lines) | stat: -rw-r--r-- 210 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
negative = neg ;

v: _;
adv: _;
n: _;
VP: _.negative;
S: _;

VP -> adv v [$negative=(if (1.lem/sl = not) neg else 2.negative)] { 2 } ;
S -> VP n { (if (1.negative = neg) NOPE@bloop else YEP@bloop) _ 2 _1 1 } ;