-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-sme-nob.sme-nob.t3x
5175 lines (5004 loc) · 188 KB
/
apertium-sme-nob.sme-nob.t3x
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is the third pass. Responsibilities of this file include:
* V2 Movement etc., rules which involve verb, adverb and/or noun chunks
* See rule: V2-trigger SN FV
* Inserting dropped pronouns
* Overridden by rules matching the maybe-[LR]SUBJ categories; these include
unknowns and should just be passed through unchanged.
* See macro: set_pro
* Inserting adverbs to indicate modality
* See macro: set_adv
* Correct definiteness using the larger context (eg. verb animacy / number / temps)
* See macro: set_defnes2
* Change perfect participle of non-finites to preterite when following the negation verb
* See rules with FV.neg
* Using verb animacy/number to guess GD/ND subject gender/number
* See macro modify_GD_ND_subj3
* Only regards pre-verbal GD/ND subjects, post-verbal are handled in t2x
TODO
* Using verb animacy/number to guess GD/ND subject gender/number
* See macro modify_GD_ND_subj3
DEF-CAT NAMING SCHEME:
chunklemma-CHUNKTAG_SYNTAG.tag.tag
where the SYNTAG part may have an l or r before or after to signify the arrow
(where l corresponds to ← and r to →).
So "det-SN_rOBJ.nom" would include chunks like det<SN><@→OBJ><p1><mf><du><nom>{...}
-->
<interchunk>
<section-def-cats>
<def-cat n="default">
<cat-item lemma="default" tags="*"/>
</def-cat>
<def-cat n="vdic">
<cat-item lemma="verb" tags="SV.*.←vdic→.*"/>
</def-cat>
<def-cat n="rquot">
<cat-item lemma="rquot" tags="*"/>
</def-cat>
<def-cat n="SN">
<cat-item tags="SN"/>
<cat-item tags="SN.*"/>
</def-cat>
<def-cat n="SA">
<cat-item tags="SA"/>
<cat-item tags="SA.*"/>
</def-cat>
<def-cat n="PR">
<cat-item tags="PR"/>
<cat-item tags="PR.*"/>
</def-cat>
<def-cat n="FOC-PCLE">
<cat-item tags="FOC"/>
<cat-item tags="FOC.*"/>
<cat-item tags="@PCLE"/>
</def-cat>
<def-cat n="PCLE">
<cat-item tags="@PCLE"/>
</def-cat>
<def-cat n="SUBJr">
<cat-item tags="SN.@SUBJ→.*"/>
<cat-item tags="SV.@SUBJ→.*"/>
<cat-item tags="SR.@SUBJ→.*"/>
<cat-item tags="SA.@SUBJ→.*"/>
</def-cat>
<def-cat n="lAPPnom">
<cat-item tags="SN.@APP-N←.*.nom.*"/>
</def-cat>
<def-cat n="maybe-SUBJr" c="not relatives, use rel-SUBJr for those">
<cat-item tags="unknown"/>
<cat-item tags="SN.@SUBJ→.*"/>
<cat-item tags="SV.@SUBJ→.*"/>
<cat-item tags="SA.@SUBJ→.*"/>
<cat-item tags="SN.@X.*"/>
</def-cat>
<def-cat n="fmainv_pot">
<cat-item lemma="verb" tags="SV.@+FMAINV.pot.*"/>
</def-cat>
<def-cat n="rel-SUBJr">
<cat-item lemma="rel" tags="*.@ADVLhab→.*"/>
<cat-item lemma="rel" tags="*.@SUBJ→.*"/>
<cat-item lemma="rel" tags="*.@SUBJ→"/>
<cat-item lemma="rel" tags="@SUBJ→.*"/>
</def-cat>
<def-cat n="rel-OBJ_ADVr">
<cat-item lemma="rel" tags="*.@OBJ→.*"/>
<cat-item lemma="rel" tags="*.@OBJ→"/>
<cat-item lemma="rel" tags="@OBJ→.*"/>
<cat-item lemma="adv" tags="ADV.@ADVLrel-ine→.*"/>
<cat-item lemma="prn" tags="*.@OBJ→.prn.itg.*"/>
</def-cat>
<def-cat n="lSUBJext">
<cat-item tags="*.@←SUBJext.*"/>
<cat-item tags="*.@←SUBJext"/>
</def-cat>
<def-cat n="ADVLhabr">
<cat-item tags="SN.@ADVLhab→.*"/>
<cat-item tags="SN.@ADVLhab→"/>
<cat-item tags="SA.@ADVLhab→.*"/>
<cat-item tags="SA.@ADVLhab→"/>
</def-cat>
<def-cat n="lADVLhab">
<cat-item tags="*.@←ADVLhab.*"/>
<cat-item tags="*.@←ADVLhab"/>
</def-cat>
<def-cat n="ADVLsadv">
<cat-item tags="*.@ADVL-ine→.*.sadv"/>
<cat-item tags="*.@ADVL-ela→.*.sadv"/>
<cat-item tags="*.@ADVL→.*.sadv"/>
<cat-item tags="*.@ADVL-ine→.sadv"/>
<cat-item tags="*.@ADVL-ela→.sadv"/>
<cat-item tags="*.@ADVL→.sadv"/>
</def-cat>
<def-cat n="ADVLcs">
<cat-item tags="*.@ADVLcs-ela→"/>
<cat-item tags="*.@ADVLcs-ine→"/>
<cat-item tags="*.@ADVLcs-ela→.*"/>
<cat-item tags="*.@ADVLcs-ine→.*"/>
</def-cat>
<def-cat n="lSUBJgen">
<cat-item tags="SN.@←SUBJ.*"/>
<cat-item tags="SN.@←SUBJ"/>
<cat-item tags="SN.@←SUBJext.*"/>
<cat-item tags="SN.@←SUBJext"/>
</def-cat>
<def-cat n="maybe-lSUBJ">
<cat-item lemma="unknown" tags="unknown"/>
<cat-item tags="SV.@←SUBJ.*"/>
<cat-item tags="SN.@←SUBJ.*"/>
<cat-item tags="SA.@←SUBJ.*"/>
<cat-item tags="SV.@←SUBJ"/>
<cat-item tags="SN.@←SUBJ"/>
<cat-item tags="SA.@←SUBJ"/>
<!-- also @SUBJ→, for avoiding pro-insertion with @+FAUXV @SUBJ→ @-FMAINV -->
<cat-item tags="SV.@SUBJ→.*"/>
<cat-item tags="SN.@SUBJ→.*"/>
<cat-item tags="SA.@SUBJ→.*"/>
<cat-item tags="SN.@X.*"/>
</def-cat>
<def-cat n="lSUBJ">
<cat-item lemma="unknown" tags="unknown"/>
<cat-item tags="SV.@←SUBJ.*"/>
<cat-item tags="SN.@←SUBJ.*"/>
<cat-item tags="SA.@←SUBJ.*"/>
<cat-item tags="SV.@←SUBJ"/>
<cat-item tags="SN.@←SUBJ"/>
<cat-item tags="SA.@←SUBJ"/>
<cat-item tags="SN.@X.*"/>
</def-cat>
<def-cat n="lSPRED_GD_pers">
<cat-item tags="SA.@←SPRED.*.GD_pers.*"/>
</def-cat>
<def-cat n="lSPRED">
<cat-item tags="SV.@←SPRED.*"/>
<cat-item tags="SN.@←SPRED.*"/>
<cat-item tags="SA.@←SPRED.*"/>
</def-cat>
<def-cat n="SA_ADVLr">
<cat-item tags="SA.@ADVL→"/>
<cat-item tags="SA.@ADVL-ela→"/>
<cat-item tags="SA.@ADVL-ine→"/>
<cat-item tags="SA.@ADVL→.*"/>
<cat-item tags="SA.@ADVL-ela→.*"/>
<cat-item tags="SA.@ADVL-ine→.*"/>
</def-cat>
<def-cat n="ill.ADVLr">
<cat-item tags="SN.@ADVL→.*.ill.*"/>
<cat-item tags="SN.@ADVL-ela→.*.ill.*"/>
<cat-item tags="SN.@ADVL-ine→.*.ill.*"/>
<cat-item tags="SN.@ADVL→.*.ill"/>
<cat-item tags="SN.@ADVL-ela→.*.ill"/>
<cat-item tags="SN.@ADVL-ine→.*.ill"/>
</def-cat>
<def-cat n="ITGnom">
<cat-item tags="SN.*.itg.*.nom"/>
<cat-item tags="SN.*.itg.*.nom.*"/>
</def-cat>
<def-cat n="ITG">
<cat-item tags="SN.*.itg.*"/>
<cat-item lemma="Adv" tags="ADV.@ADVLrel-ine→.*"/>
<cat-item lemma="Adv" tags="ADV.@ADVLrel-ela→.*"/>
<cat-item lemma="Adv" tags="ADV.@ADVLrel→.*"/>
<cat-item lemma="adv" tags="ADV.@ADVLrel-ine→.*"/>
</def-cat>
<def-cat n="SPREDr">
<cat-item tags="*.@SPRED→.*"/>
<cat-item tags="*.@SPRED→"/>
</def-cat>
<def-cat n="ADVLr">
<cat-item tags="*.@ADVL→.*"/>
<cat-item tags="*.@ADVL-ela→.*"/>
<cat-item tags="*.@ADVL-ine→.*"/>
<cat-item tags="*.@ADVL→"/>
<cat-item tags="*.@ADVL-ela→"/>
<cat-item tags="*.@ADVL-ine→"/>
</def-cat>
<def-cat n="adv-lADVL">
<cat-item tags="ADV.@←ADVL"/>
<cat-item tags="ADV.@←ADVL-ela"/>
<cat-item tags="ADV.@←ADVL-ine"/>
<cat-item tags="ADV.@←ADVL.*"/>
<cat-item tags="ADV.@←ADVL-ela.*"/>
<cat-item tags="ADV.@←ADVL-ine.*"/>
</def-cat>
<def-cat n="adv1-lADVL" c="single-word adv's only (light/more movable)">
<cat-item lemma="adv" tags="ADV.@←ADVL"/>
<cat-item lemma="adv" tags="ADV.@←ADVL-ela"/>
<cat-item lemma="adv" tags="ADV.@←ADVL-ine"/>
<cat-item lemma="adv" tags="ADV.@←ADVL.*"/>
<cat-item lemma="adv" tags="ADV.@←ADVL-ela.*"/>
<cat-item lemma="adv" tags="ADV.@←ADVL-ine.*"/>
</def-cat>
<def-cat n="ADVLrOBJr">
<cat-item tags="SN.@OBJ→"/>
<cat-item tags="SN.@OBJ→.*"/>
<cat-item tags="SN.@ADVL→"/>
<cat-item tags="SN.@ADVL→.*"/>
<cat-item tags="SN.@ADVL-ela→"/>
<cat-item tags="SN.@ADVL-ela→.*"/>
<cat-item tags="SN.@ADVL-ine→"/>
<cat-item tags="SN.@ADVL-ine→.*"/>
<cat-item tags="SA.@OBJ→"/>
<cat-item tags="SA.@OBJ→.*"/>
<cat-item tags="SA.@ADVL→"/>
<cat-item tags="SA.@ADVL→.*"/>
<cat-item tags="SA.@ADVL-ela→"/>
<cat-item tags="SA.@ADVL-ela→.*"/>
<cat-item tags="SA.@ADVL-ine→"/>
<cat-item tags="SA.@ADVL-ine→.*"/>
</def-cat>
<def-cat n="OBJr">
<cat-item tags="SN.@OBJ→"/>
<cat-item tags="SN.@OBJ→.*"/>
</def-cat>
<def-cat n="COMPL">
<cat-item tags="SN.@N←"/>
<cat-item tags="SN.@N←.*"/>
<cat-item tags="SN.@A←"/>
<cat-item tags="SN.@A←.*"/>
</def-cat>
<def-cat n="ADVr">
<cat-item tags="ADV.@→N.*"/>
<cat-item tags="ADV.@→N"/>
</def-cat>
<def-cat n="ADVLrsent">
<cat-item tags="ADV.@ADVL→.*"/>
<cat-item tags="ADV.@ADVL-ela→.*"/>
<cat-item tags="ADV.@ADVL-ine→.*"/>
<cat-item tags="ADV.@ADVL→"/>
<cat-item tags="ADV.@ADVL-ela→"/>
<cat-item tags="ADV.@ADVL-ine→"/>
</def-cat>
<def-cat n="lOPRED">
<cat-item tags="SV.@←OPRED.*"/>
<cat-item tags="SN.@←OPRED.*"/>
<cat-item tags="SA.@←OPRED.*"/>
</def-cat>
<def-cat n="lOPREDacc">
<cat-item tags="SN.@←OPRED.*.acc"/>
<cat-item tags="SA.@←OPRED.*.acc"/>
</def-cat>
<def-cat n="lOBJref">
<cat-item lemma="prn" tags="SN.@←OBJ.ref.*"/>
</def-cat>
<def-cat n="lOBJ">
<cat-item tags="SV.@←OBJ.*"/>
<cat-item tags="SN.@←OBJ.*"/>
<cat-item tags="SA.@←OBJ.*"/>
</def-cat>
<def-cat n="lOBJ_lOPRED">
<cat-item tags="SV.@←OBJ.*"/>
<cat-item tags="SN.@←OBJ.*"/>
<cat-item tags="SA.@←OBJ.*"/>
<cat-item tags="SV.@←OPRED.*"/>
<cat-item tags="SN.@←OPRED.*"/>
<cat-item tags="SA.@←OPRED.*"/>
</def-cat>
<def-cat n="ISUBJr" c="subject of infinite verb (setningstilsvar). @-FOBJ should not be here, was a CG error">
<cat-item tags="SN.@-FSUBJ→.*"/>
<cat-item tags="SV.@-FSUBJ→.*"/>
</def-cat>
<def-cat n="SV_lOBJ-tilsvar">
<cat-item tags="SV.@-F←OBJ.*"/>
<cat-item tags="SV.@←OBJ.*"/>
</def-cat>
<def-cat n="sent">
<cat-item lemma="sent" tags="SENT.*"/>
<cat-item lemma="sent" tags="SENT"/>
</def-cat>
<def-cat n="comma">
<cat-item lemma="comma" tags="SENT.*"/>
<cat-item lemma="comma" tags="SENT"/>
</def-cat>
<def-cat n="sentbord">
<cat-item lemma="conj" tags="@CVP.cnjcoo"/>
</def-cat>
<def-cat n="CS">
<cat-item lemma="conj" tags="@CVP.cnjsub"/>
<cat-item lemma="conj" tags="@CNP.cnjsub"/>
<cat-item lemma="adv" tags="ADV.@ADVL-ine→.cnjsub.*"/>
<cat-item tags="*.@ADVLcs-ela→"/>
<cat-item tags="*.@ADVLcs-ine→"/>
<cat-item tags="*.@ADVLcs-ela→.*"/>
<cat-item tags="*.@ADVLcs-ine→.*"/>
</def-cat>
<def-cat n="ADVL-PCLE">
<cat-item lemma="adv" tags="@PCLE"/>
<cat-item tags="ADV.@PCLE"/>
<cat-item tags="ADV.@ADVL"/>
<cat-item tags="ADV.@ADVL.*"/>
<cat-item tags="ADV.@ADVL-ela.*"/>
<cat-item tags="ADV.@ADVL-ine.*"/>
<cat-item tags="SN.@ADVL"/>
<cat-item tags="SN.@ADVL-ela"/>
<cat-item tags="SN.@ADVL-ine"/>
<cat-item tags="SN.@ADVL.*"/>
<cat-item tags="SN.@ADVL-ela.*"/>
<cat-item tags="SN.@ADVL-ine.*"/>
<cat-item tags="SA.@ADVL"/>
<cat-item tags="SA.@ADVL-ela"/>
<cat-item tags="SA.@ADVL-ine"/>
<cat-item tags="SA.@ADVL.*"/>
<cat-item tags="SA.@ADVL-ine.*"/>
<cat-item tags="SA.@ADVL-ela.*"/>
<cat-item tags="ADV.@←ADVL"/>
<cat-item tags="ADV.@←ADVL.*"/>
<cat-item tags="ADV.@←ADVL-ela"/>
<cat-item tags="ADV.@←ADVL-ela.*"/>
<cat-item tags="ADV.@←ADVL-ine"/>
<cat-item tags="ADV.@←ADVL-ine.*"/>
<cat-item tags="SN.@←ADVL"/>
<cat-item tags="SN.@←ADVL.*"/>
<cat-item tags="SN.@←ADVL-ela"/>
<cat-item tags="SN.@←ADVL-ela.*"/>
<cat-item tags="SN.@←ADVL-ine"/>
<cat-item tags="SN.@←ADVL-ine.*"/>
<cat-item tags="SA.@←ADVL"/>
<cat-item tags="SA.@←ADVL.*"/>
<cat-item tags="SA.@←ADVL-ela"/>
<cat-item tags="SA.@←ADVL-ela.*"/>
<cat-item tags="SA.@←ADVL-ine"/>
<cat-item tags="SA.@←ADVL-ine.*"/>
<cat-item tags="ADV.@ADVL→"/>
<cat-item tags="ADV.@ADVL→.*"/>
<cat-item tags="ADV.@ADVL-ela→"/>
<cat-item tags="ADV.@ADVL-ela→.*"/>
<cat-item tags="ADV.@ADVL-ine→"/>
<cat-item tags="ADV.@ADVL-ine→.*"/>
<cat-item tags="SN.@ADVL→"/>
<cat-item tags="SN.@ADVL→.*"/>
<cat-item tags="SN.@ADVL-ine→"/>
<cat-item tags="SN.@ADVL-ine→.*"/>
<cat-item tags="SN.@ADVL-ela→"/>
<cat-item tags="SN.@ADVL-ela→.*"/>
<cat-item tags="SA.@ADVL→"/>
<cat-item tags="SA.@ADVL→.*"/>
<cat-item tags="SA.@ADVL-ela→"/>
<cat-item tags="SA.@ADVL-ela→.*"/>
<cat-item tags="SA.@ADVL-ine→"/>
<cat-item tags="SA.@ADVL-ine→.*"/>
</def-cat>
<def-cat n="ADVL">
<cat-item tags="ADV.@PCLE"/>
<cat-item tags="ADV.@ADVL"/>
<cat-item tags="ADV.@ADVL.*"/>
<cat-item tags="ADV.@ADVL-ela.*"/>
<cat-item tags="ADV.@ADVL-ine.*"/>
<cat-item tags="SN.@ADVL"/>
<cat-item tags="SN.@ADVL-ela"/>
<cat-item tags="SN.@ADVL-ine"/>
<cat-item tags="SN.@ADVL.*"/>
<cat-item tags="SN.@ADVL-ela.*"/>
<cat-item tags="SN.@ADVL-ine.*"/>
<cat-item tags="SA.@ADVL"/>
<cat-item tags="SA.@ADVL-ela"/>
<cat-item tags="SA.@ADVL-ine"/>
<cat-item tags="SA.@ADVL.*"/>
<cat-item tags="SA.@ADVL-ine.*"/>
<cat-item tags="SA.@ADVL-ela.*"/>
<cat-item tags="ADV.@←ADVL"/>
<cat-item tags="ADV.@←ADVL.*"/>
<cat-item tags="ADV.@←ADVL-ela"/>
<cat-item tags="ADV.@←ADVL-ela.*"/>
<cat-item tags="ADV.@←ADVL-ine"/>
<cat-item tags="ADV.@←ADVL-ine.*"/>
<cat-item tags="SN.@←ADVL"/>
<cat-item tags="SN.@←ADVL.*"/>
<cat-item tags="SN.@←ADVL-ela"/>
<cat-item tags="SN.@←ADVL-ela.*"/>
<cat-item tags="SN.@←ADVL-ine"/>
<cat-item tags="SN.@←ADVL-ine.*"/>
<cat-item tags="SA.@←ADVL"/>
<cat-item tags="SA.@←ADVL.*"/>
<cat-item tags="SA.@←ADVL-ela"/>
<cat-item tags="SA.@←ADVL-ela.*"/>
<cat-item tags="SA.@←ADVL-ine"/>
<cat-item tags="SA.@←ADVL-ine.*"/>
<cat-item tags="ADV.@ADVL→"/>
<cat-item tags="ADV.@ADVL→.*"/>
<cat-item tags="ADV.@ADVL-ela→"/>
<cat-item tags="ADV.@ADVL-ela→.*"/>
<cat-item tags="ADV.@ADVL-ine→"/>
<cat-item tags="ADV.@ADVL-ine→.*"/>
<cat-item tags="SN.@ADVL→"/>
<cat-item tags="SN.@ADVL→.*"/>
<cat-item tags="SN.@ADVL-ine→"/>
<cat-item tags="SN.@ADVL-ine→.*"/>
<cat-item tags="SN.@ADVL-ela→"/>
<cat-item tags="SN.@ADVL-ela→.*"/>
<cat-item tags="SA.@ADVL→"/>
<cat-item tags="SA.@ADVL→.*"/>
<cat-item tags="SA.@ADVL-ela→"/>
<cat-item tags="SA.@ADVL-ela→.*"/>
<cat-item tags="SA.@ADVL-ine→"/>
<cat-item tags="SA.@ADVL-ine→.*"/>
</def-cat>
<def-cat n="adv-FV-imp">
<cat-item lemma="adv" tags="SV.@+FAUXV.neg.imp.*"/>
</def-cat>
<def-cat n="adv-FV">
<cat-item lemma="adv" tags="SV.@+FAUXV.neg.indic.*"/>
<cat-item lemma="adv" tags="SV.@+FAUXV.adv.*"/>
</def-cat>
<def-cat n="adv-FV-added">
<cat-item lemma="adv" tags="SV.@+FAUXV"/> <!-- i ferd med -->
</def-cat>
<def-cat n="adv-FV.neg.qst">
<cat-item lemma="adv" tags="SV.@+FAUXV.neg.qst.*"/>
</def-cat>
<def-cat n="FV.qst">
<cat-item tags="SV.@+FMAINV.qst.*"/>
<cat-item tags="SV.@+FAUXV.qst.*"/>
<cat-item lemma="adv" tags="SV.@+FAUXV.neg.qst.*"/>
</def-cat>
<def-cat n="MAINV.qst">
<cat-item tags="SV.@+FMAINV.qst.*"/>
</def-cat>
<def-cat n="FV_alsoNeg">
<cat-item tags="SV.@+FMAINV"/>
<cat-item tags="SV.@+FMAINV.*"/>
<cat-item tags="SV.@+FAUXV"/>
<cat-item tags="SV.@+FAUXV.*"/>
</def-cat>
<def-cat n="FV">
<cat-item tags="SV.@+FMAINV"/>
<cat-item tags="SV.@+FMAINV.*"/>
<cat-item tags="SV.@+FAUXV"/>
<cat-item lemma="verb" tags="SV.@+FAUXV.*"/>
<cat-item lemma="vcop" tags="SV.@+FAUXV.*"/>
</def-cat>
<def-cat n="FVcopmain">
<cat-item lemma="vcop" tags="SV.@+FMAINV"/>
<cat-item lemma="vcop" tags="SV.@+FMAINV.*"/>
</def-cat>
<def-cat n="MAIN-V">
<cat-item tags="SV.@+FMAINV"/>
<cat-item tags="SV.@+FMAINV.*"/>
<cat-item tags="SV.@-FMAINV"/>
<cat-item tags="SV.@-FMAINV.*"/>
<cat-item tags="SV.@N←.*"/>
</def-cat>
<def-cat n="FAUXV-man">
<cat-item tags="SV.@+FAUXV.*.p3.sg.pers-pro.*"/>
<cat-item tags="SV.@+FAUXV.*.p3.sg.pers-pro"/>
</def-cat>
<def-cat n="FV-esubj">
<cat-item tags="SV.@+FMAINV.*.p3.*.esubj"/>
<cat-item tags="SV.@+FMAINV.*.p3.*.esubj.*"/>
<cat-item tags="SV.@+FAUXV.*.p3.*.esubj"/>
<cat-item tags="SV.@+FAUXV.*.p3.*.esubj.*"/>
</def-cat>
<def-cat n="adv-IV">
<cat-item lemma="adv" tags="SV.@-FMAINV"/>
<cat-item lemma="adv" tags="SV.@-FMAINV.*"/>
<cat-item lemma="adv" tags="SV.@-FAUXV"/>
<cat-item lemma="adv" tags="SV.@-FAUXV.*"/>
</def-cat>
<def-cat n="adj-IV">
<cat-item lemma="adj" tags="SA.@-FMAINV"/>
<cat-item lemma="adj" tags="SA.@-FMAINV.*"/>
</def-cat>
<def-cat n="V">
<cat-item tags="SV.*"/>
</def-cat>
<def-cat n="IV-pasv">
<cat-item tags="SV.@-FMAINV.inf.pasv.*"/>
</def-cat>
<def-cat n="IV">
<cat-item tags="SV.@-FMAINV"/>
<cat-item tags="SV.@-FMAINV.*"/>
<cat-item tags="SV.@-FAUXV"/>
<cat-item tags="SV.@-FAUXV.*"/>
</def-cat>
<def-cat n="IVMAIN-pers"> <!-- no pasv -->
<cat-item tags="SV.@-FMAINV.inf.pers-pro.*"/>
<cat-item tags="SV.@-FMAINV.inf.pers-pro"/>
<cat-item tags="SV.@-FMAINV.*.inf.pers-pro.*"/>
<cat-item tags="SV.@-FMAINV.*.inf.pers-pro"/>
<cat-item tags="SV.@-FMAINV.pp.pers-pro.*"/>
<cat-item tags="SV.@-FMAINV.pp.pers-pro"/>
</def-cat>
<def-cat n="lemq">
<cat-item tags="lemq"/>
<cat-item tags="lemq.*"/>
</def-cat>
<def-cat n="lemq-obj">
<cat-item tags="lemq.lemq-obj"/>
<cat-item tags="lemq.lemq-obj.*"/>
</def-cat>
<def-cat n="V2-trigger" c="'Specifiyer', sort of... rather diffuse category here, including regular cnjsub (+CS)
and longer chunks like «Etter min oppfatning»">
<cat-item tags="SA.@OBJ→"/>
<cat-item tags="SA.@OBJ→.*"/>
<cat-item tags="SN.@OBJ→"/>
<cat-item tags="SN.@OBJ→.*"/>
<cat-item tags="ADV.@PCLE"/> <!-- TODO check -->
<cat-item tags="ADV.@ADVLqst-ine→."/>
<cat-item tags="ADV.@ADVLqst-ine→.*"/>
<!-- <cat-item tags="*.@ADVL"/> -->
<!-- <cat-item tags="*.@ADVL.*"/> -->
<cat-item tags="ADV.@ADVL→.*"/>
<cat-item tags="ADV.@ADVL→"/>
<cat-item tags="ADV.@ADVL-ela.*"/>
<cat-item tags="ADV.@ADVL-ela→.*"/>
<cat-item tags="ADV.@ADVL-ela→"/>
<cat-item tags="ADV.@ADVL-ine.*"/>
<cat-item tags="ADV.@ADVL-ine→.*"/>
<cat-item tags="ADV.@ADVL-ine→"/>
<cat-item tags="SN.@ADVL→.*"/>
<cat-item tags="SN.@ADVL→"/>
<cat-item tags="SN.@ADVL-ela.*"/>
<cat-item tags="SN.@ADVL-ela→.*"/>
<cat-item tags="SN.@ADVL-ela→"/>
<cat-item tags="SN.@ADVL-ine.*"/>
<cat-item tags="SN.@ADVL-ine→.*"/>
<cat-item tags="SN.@ADVL-ine→"/>
<cat-item tags="SN.@→P.*"/>
<cat-item tags="SN.@→P"/> <!-- object of postposition, moved by t2x -->
<cat-item tags="SN.@SPRED→.*"/>
<cat-item tags="SN.@SPRED→"/>
<cat-item tags="SN.@X.*"/>
<cat-item tags="SN.@X"/>
</def-cat>
<def-cat n="Pcomplr">
<cat-item tags="SN.@→P.*"/>
<cat-item tags="SN.@→P"/>
<cat-item tags="*.@ADVL-ela→.*"/>
<cat-item tags="*.@ADVL-ela→"/>
<cat-item tags="*.@ADVL-ine→.*"/>
<cat-item tags="*.@ADVL-ine→"/>
</def-cat>
<def-cat n="SUBJr.qst">
<cat-item tags="SN.@SUBJ→.*.qst.*"/>
</def-cat>
<def-cat n="PR.ADVLr">
<cat-item tags="PR.@ADVL→.*"/>
<cat-item tags="PR.@ADVL→"/>
<cat-item tags="PR.@ADVL-ela→.*"/>
<cat-item tags="PR.@ADVL-ela→"/>
<cat-item tags="PR.@ADVL-ine→.*"/>
<cat-item tags="PR.@ADVL-ine→"/>
</def-cat>
<def-cat n="SN.Pl">
<cat-item tags="SN.@P←"/>
<cat-item tags="SN.@P←.*"/>
</def-cat>
<def-cat n="SADV">
<cat-item tags="@SADV"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="a_sintagma">
<attr-item tags="SN"/>
<attr-item tags="SV"/>
<attr-item tags="SA"/>
</def-attr>
<def-attr n="case">
<attr-item tags="Ill"/>
<attr-item tags="Loc"/>
<attr-item tags="Ine"/>
<attr-item tags="Ela"/>
<attr-item tags="nom"/>
<attr-item tags="acc"/>
<attr-item tags="gen"/>
<attr-item tags="com"/>
<attr-item tags="ess"/>
<attr-item tags="ill"/>
<attr-item tags="loc"/>
<attr-item tags="ine"/>
<attr-item tags="ela"/>
</def-attr>
<def-attr n="pers">
<attr-item tags="p1"/>
<attr-item tags="p2"/>
<attr-item tags="p3"/>
</def-attr>
<def-attr n="gen">
<attr-item tags="m"/>
<attr-item tags="f"/>
<attr-item tags="mf"/>
<attr-item tags="nt"/>
<attr-item tags="GD"/>
<attr-item tags="GD_pers"/>
</def-attr>
<def-attr n="nbr">
<attr-item tags="Sg"/>
<attr-item tags="Du"/>
<attr-item tags="Pl"/>
<attr-item tags="sg"/>
<attr-item tags="du"/>
<attr-item tags="pl"/>
<attr-item tags="ND"/>
<attr-item tags="sp"/>
<!-- the bidix pardef __verb should split these: -->
<attr-item tags="Sg1"/>
<attr-item tags="Du1"/>
<attr-item tags="Pl1"/>
<attr-item tags="Sg2"/>
<attr-item tags="Du2"/>
<attr-item tags="Pl2"/>
<attr-item tags="Sg3"/>
<attr-item tags="Du3"/>
<attr-item tags="Pl3"/>
</def-attr>
<def-attr n="temps">
<attr-item tags="Prs"/>
<attr-item tags="Prt"/>
<attr-item tags="pres"/>
<attr-item tags="pret"/>
<attr-item tags="Inf"/>
<attr-item tags="inf"/>
<attr-item tags="Imprt"/>
<attr-item tags="imp"/>
<attr-item tags="PrfPrc"/>
<attr-item tags="pp"/>
<attr-item tags="TD"/>
</def-attr>
<def-attr n="neg">
<attr-item tags="conneg"/>
<attr-item tags="neg"/>
</def-attr>
<def-attr n="mode">
<attr-item tags="qst"/>
</def-attr>
<def-attr n="esubj">
<attr-item tags="esubj"/>
</def-attr>
<def-attr n="modality">
<attr-item tags="indic"/>
<attr-item tags="cond"/>
<attr-item tags="cond-ville"/>
<attr-item tags="cond-skulle"/>
<attr-item tags="cond-kunne"/>
<attr-item tags="pot"/>
</def-attr>
<def-attr n="voice">
<attr-item tags="pasv"/>
</def-attr>
<def-attr n="animacy">
<attr-item tags="pers"/>
<attr-item tags="agreem-pro"/>
<attr-item tags="pers-pro"/>
<attr-item tags="incongr-pro"/>
</def-attr>
<def-attr n="hab">
<attr-item tags="←hab→"/>
</def-attr>
<def-attr n="syn_label">
<attr-item tags="@→A"/>
<attr-item tags="@A←"/>
<attr-item tags="@←ADVL"/>
<attr-item tags="@←ADVL-ela"/>
<attr-item tags="@←ADVL-ine"/>
<attr-item tags="@→ADVL"/>
<attr-item tags="@ADVL"/>
<attr-item tags="@ADVL←"/>
<attr-item tags="@ADVL→"/>
<attr-item tags="@ADVL-ela→"/>
<attr-item tags="@ADVL-ine→"/>
<attr-item tags="@ADVL→CS"/>
<attr-item tags="@ADVL←OBJ"/>
<attr-item tags="@ADVL→SUBJ"/>
<attr-item tags="@APP"/>
<attr-item tags="@APP-ADVL←"/>
<attr-item tags="@APP-N←"/>
<attr-item tags="@APP-Num←"/>
<attr-item tags="@APP-Pron←"/>
<attr-item tags="@APP→Pron"/>
<attr-item tags="@→CC"/>
<attr-item tags="@CNP"/>
<attr-item tags="@COMP-CS←"/>
<attr-item tags="@CVP"/>
<attr-item tags="@-F←ADVL"/>
<attr-item tags="@-F←ADVL-ine"/>
<attr-item tags="@-F←ADVL-ela"/>
<attr-item tags="@-FADVL"/>
<attr-item tags="@-FADVL→"/>
<attr-item tags="@-FADVL-ine→"/>
<attr-item tags="@-FADVL-ela→"/>
<attr-item tags="@-FAUXV"/>
<attr-item tags="@\+FAUXV"/>
<attr-item tags="@+FAUXV"/>
<attr-item tags="@-FMAINV"/>
<attr-item tags="@\+FMAINV"/>
<attr-item tags="@+FMAINV"/>
<attr-item tags="@-F←OBJ"/>
<attr-item tags="@-FOBJ"/>
<attr-item tags="@-FOBJ→"/>
<attr-item tags="@-F←OPRED"/>
<attr-item tags="@-FOPRED→"/>
<attr-item tags="@-F←SPRED"/>
<attr-item tags="@-FSPRED→"/>
<attr-item tags="@-FSUBJ→"/>
<attr-item tags="@HNOUN"/>
<attr-item tags="@INTERJ"/>
<attr-item tags="@→N"/>
<attr-item tags="@N←"/>
<attr-item tags="@N"/>
<attr-item tags="@→Num;"/>
<attr-item tags="@→Num"/>
<attr-item tags="@Num←"/>
<attr-item tags="@←OBJ"/>
<attr-item tags="@OBJ"/>
<attr-item tags="@OBJ→"/>
<attr-item tags="@OBJ→SPRED"/>
<attr-item tags="@-OPRED→"/>
<attr-item tags="@←OPRED"/>
<attr-item tags="@OPRED"/>
<attr-item tags="@OPRED→"/>
<attr-item tags="@→P"/>
<attr-item tags="@P←"/>
<attr-item tags="@PCLE"/>
<attr-item tags="@←PPRED"/>
<attr-item tags="@PPRED"/>
<attr-item tags="@→Pron"/>
<attr-item tags="@Pron←"/>
<attr-item tags="@-SPRED→"/>
<attr-item tags="@←SPRED"/>
<attr-item tags="@SPRED"/>
<attr-item tags="@SPRED→"/>
<attr-item tags="@SPRED←OBJ"/>
<attr-item tags="@←SUBJ"/>
<attr-item tags="@SUBJ"/>
<attr-item tags="@SUBJ→"/>
<attr-item tags="@SUBJ←ADVL"/>
<attr-item tags="@SUBJ←OBJ"/>
<attr-item tags="@VOC"/>
<attr-item tags="@X"/>
</def-attr>
<def-attr n="a_prn">
<attr-item tags="prn"/>
<attr-item tags="prn.rel"/>
<attr-item tags="prn.res"/>
<attr-item tags="prn.ind"/>
<attr-item tags="prn.dem"/>
<attr-item tags="prn.pers"/>
<attr-item tags="prn"/>
<attr-item tags="prn.itg"/>
<attr-item tags="prn.ref"/>
</def-attr>
<def-attr n="a_det">
<attr-item tags="det"/>
<attr-item tags="det.emph"/>
<attr-item tags="det.dem"/>
<attr-item tags="det.itg"/>
<attr-item tags="det.qnt"/>
<attr-item tags="det.pos"/>
</def-attr>
<def-attr n="art">
<attr-item tags="def"/>
<attr-item tags="ind"/>
<attr-item tags="DD"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="tmpcase" c="tmp variable for switch_cases"/>
<def-var n="case-switch" c="should set_pro 'switch' cases of pro and verb chunk?"/>
<def-var n="subj-gender"/>
<def-var n="gender"/>
<def-var n="seen-hab" c="seen a habitive in this sentence" v="no"/>
<def-var n="seen-spred" c="seen a spred in this sentence" v="no"/>
<def-var n="seen-rel" c="seen a rel in this sentence" v="no"/>
<def-var n="pro" c="in case it was dropped"/>
<def-var n="pro-blank" c="one space if there's a pro, else nothing"/>
<def-var n="adv" c="potensialis 'kanskje'; see set_adv"/>
<def-var n="adv-blank" c="one space if there's an adv, else nothing; see set_adv"/>
</section-def-vars>
<section-def-macros>
<def-macro n="switch_cases" npar="2"
c="Simply switch the typographic cases (upper/lower/capital) of the two arguments.">
<let><var n="tmpcase"/><get-case-from pos="1"><clip pos="1" part="lemh"/></get-case-from></let>
<let><clip pos="1" part="lemh"/><get-case-from pos="2"><clip pos="1" part="lemh"/></get-case-from></let>
<modify-case><clip pos="2" part="lemh"/><var n="tmpcase"/></modify-case>
</def-macro>
<def-macro n="gender_pro_concord" npar="2"
c="arg.1: det/adj, arg.2: verb
-----
Assumes set_pro has been called!
Ensure that if we inserted a pro and had a copula and SA, the gender agrees.
Apply verb gen/nbr to GD/ND subjects (eg. those that weren't handled in t2x).
TODO: this should probably be called in more places.
TODO: gender_non-pro_concord macro to make sure we get alt.nt from 'blod' in 'Buot lei varran', prpers.m from 'lærer' in 'Son lea oahpaheaddjin' and similar vcop constructions.">
<choose><when>
<test><and>
<equal><clip pos="1" part="a_sintagma"/><lit-tag v="SA"/></equal>
<equal caseless="yes"><clip pos="2" part="lemh"/><lit v="vcop"/></equal>
<not><equal><var n="pro"/><lit v=""/></equal></not>
</and></test>
<let><clip pos="1" part="gen"/><var n="gender"/></let>
</when></choose>
</def-macro>
<def-macro n="set_defnes2" npar="2"
c="arg.1: SN, arg.2: verb (the one with nbr, if there's a choice)
Does nothing if arg.1 is relative prn.
-----
TODO: parts of this should only be used when loc/ill is in 'first position', check syn_label?
Indefinite:
o lokativ/(illativ) in first position + leat
o habitiv tag
o advl
Definite:
o lokativ not in first position + leat
o subjects of dual verbforms">
<choose><when>
<test><not><equal caseless="yes"><clip pos="1" part="lemh"/><lit v="rel"/></equal></not></test>
<!-- Set defnes: -->
<choose><when>
<test>
<and>
<equal caseless="yes"><clip pos="2" part="lemh"/><lit v="verb"/></equal>
<or>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@ADVL"/></equal>
<equal><clip pos="1" part="case"/><lit-tag v="Loc"/></equal>
<equal><clip pos="1" part="case"/><lit-tag v="Ill"/></equal>
<!-- <equal><clip pos="1" part="hab"/><lit-tag v="←hab→"/></equal> -->
<and> <!-- «mus lea» now tagged like this: -->
<or>
<begins-with><clip pos="1" part="a_prn"/><lit-tag v="prn"/></begins-with>
<equal><clip pos="1" part="a_det"/><lit-tag v="det.dem"/></equal>
</or>
<equal><clip pos="1" part="case"/><lit-tag v="nom"/></equal> <!--loc→nom from t1x-->
<or>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@ADVL→"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@←ADVL"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@ADVL-ela→"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@←ADVL-ela"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@ADVL-ine→"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@←ADVL-ine"/></equal>
</or>
</and>
</or>
</and>
</test>
<let><clip pos="1" part="art"/><lit-tag v="ind"/></let>
</when></choose>
<choose>
<when>
<test>
<and>
<equal caseless="yes"><clip pos="2" part="lemh"/><lit v="verb"/></equal>
<equal><clip pos="2" part="nbr"/><lit-tag v="du"/></equal>
<or>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@SUBJ→"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@←SUBJ"/></equal>
</or>
</and>
</test>
<let><clip pos="1" part="art"/><lit-tag v="def"/></let>
</when>
</choose>
<choose>
<when>
<test><and>
<equal caseless="yes"><clip pos="2" part="lemh"/><lit v="verb"/></equal>
<equal><clip pos="2" part="temps"/><lit-tag v="imp"/></equal>
<equal><clip pos="1" part="syn_label"/><lit-tag v="@←OBJ"/></equal>
</and></test>
<let><clip pos="1" part="art"/><lit-tag v="def"/></let>
</when>
</choose>
</when></choose>
</def-macro>
<def-macro n="guess_gender_p3sg" npar="1"
c="arg.1: verb chunk that is _known to be p3.sg_
-----
- default: nt (since we use this as default elsewhere too)
- if animacy is impersonal (marked in bidix): nt
- else if chunk gender was set by t2x: chunk gender
- else if animacy is personal: m
So an impersonal verb animacy will override the gender found on earlier subjects by t2x.
Don't call this directly, use guess_gender1 or guess_gender2!
">
<choose>
<when>
<test><equal><clip pos="1" part="animacy"/><lit-tag v="incongr-pro"/></equal></test>
<let><var n="gender"/><lit-tag v="nt"/></let>
</when>
<when>
<test><equal><clip pos="1" part="animacy"/><lit-tag v="agreem-pro"/></equal></test>
<let><var n="gender"/><lit-tag v="nt"/></let>
</when>
<when>
<test><equal><clip pos="1" part="voice"/><lit-tag v="pasv"/></equal></test>
<let><var n="gender"/><lit-tag v="nt"/></let>
</when>
<when>
<test><and><equal><clip pos="1" part="animacy"/><lit-tag v="pers-pro"/></equal>
<not><equal><var n="subj-gender"/><lit v=""/></equal></not></and></test>
<let><var n="gender"/><var n="subj-gender"/></let>
</when>
<when>
<test><equal><clip pos="1" part="animacy"/><lit-tag v="pers-pro"/></equal></test>
<let><var n="gender"/><lit-tag v="GD_pers"/></let>
</when>
<when>
<test><not><equal><clip pos="1" part="gen"/><lit v=""/></equal></not></test>
<let><var n="gender"/><clip pos="1" part="gen"/></let>
</when>
<otherwise>
<let><var n="gender"/><lit-tag v="nt"/></let>
</otherwise>
</choose>
</def-macro>
<def-macro n="guess_gender1" npar="1"
c="arg.1: verb chunk
Heuristics:
o default: mf
o p3 + sg
- default: nt (since we use this as default elsewhere too)
- if animacy is impersonal (marked in bidix): nt
- else if chunk gender was set by t2x: chunk gender
- else if animacy is personal: m
So an impersonal verb animacy will override the gender found on earlier subjects by t2x.
">
<choose>
<when>
<test><and>
<equal><clip pos="1" part="pers"/><lit-tag v="p3"/></equal>
<equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
</and></test>
<call-macro n="guess_gender_p3sg"><with-param pos="1"/></call-macro>
</when>
<otherwise>
<let><var n="gender"/><lit-tag v="mf"/></let>
</otherwise>
</choose>
</def-macro>
<def-macro n="guess_gender2" npar="2"
c="arg.1: possibly finite verb chunk, arg.2: content verb chunk">
<choose>
<when>
<test><and>
<equal><clip pos="1" part="pers"/><lit-tag v="p3"/></equal>
<equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
</and></test>
<choose>
<when c="Infinitives are typically the head/main content verbs.">
<test><or>
<equal><clip pos="2" part="temps"/><lit-tag v="inf"/></equal>
<equal><clip pos="2" part="temps"/><lit-tag v="pres"/></equal>
<equal><clip pos="2" part="temps"/><lit-tag v="pret"/></equal>
</or></test>
<call-macro n="guess_gender_p3sg"><with-param pos="2"/></call-macro>
</when>
<otherwise c="Participles etc. are less likely to decide gender of subject.">
<call-macro n="guess_gender_p3sg"><with-param pos="1"/></call-macro>
</otherwise>
</choose>
</when>
<otherwise>
<let><var n="gender"/><lit-tag v="mf"/></let>
</otherwise>
</choose>
</def-macro>
<def-macro n="modify_GD_ND_subj3" npar="3"
c="arg.1: det/adj, arg.2: verb with number, arg.3: verb with animacy (main verb)
----
Apply verb gen/nbr to GD/ND non-pro left-subjects
(ie. those that weren't handled in t2x since they appear before the verb).">
<call-macro n="guess_gender1"><with-param pos="3"/></call-macro>
<choose><when>
<test><equal><clip pos="1" part="gen"/><lit-tag v="GD"/></equal></test>
<let><clip pos="1" part="gen"/><var n="gender"/></let>