-
Notifications
You must be signed in to change notification settings - Fork 10
/
ParseExtendCat.gf
34 lines (25 loc) · 1.14 KB
/
ParseExtendCat.gf
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
concrete ParseExtendCat of ParseExtend =
ExtendCat - [iFem_Pron, youPolFem_Pron, weFem_Pron, youPlFem_Pron, theyFem_Pron, GenNP, DetNPMasc, DetNPFem, FocusAP, N2VPSlash, A2VPSlash,
CompVP, InOrderToVP, PurposeVP, ComplGenVV, ReflRNP, ReflA2RNP, UncontractedNeg, AdvIsNPAP, ExistCN, NominalizeVPSlashNP,
PiedPipingQuestSlash, PiedPipingRelSlash], NumeralCat - [num], PunctuationX **
open Prelude, CommonRomance, ResCat, GrammarCat, ExtendCat in {
lin UttAP p ap = {s = ap.s ! (genNum2Aform p.a.g p.a.n)} ;
UttVPS p vps= {s = vps.s ! Indic ! p.a ! True} ;
PhrUttMark pconj utt voc mark = {s = pconj.s ++ utt.s ++ voc.s ++ SOFT_BIND ++ mark.s} ;
lin
EmbedVP ant pol p vp = {
s = \\c => prepCase c ++ ant.s ++ pol.s ++ infVP vp pol.p p.a
} ;
CompVP ant pol p vp = {
s = \\agr => ant.s ++ pol.s ++ "de" ++ infVP vp pol.p p.a ;
cop = serCopula
} ;
UttVP ant pol p vp = {
s = ant.s ++ pol.s ++ infVP vp pol.p p.a
} ;
ReflVPSlash = ExtendCat.ReflRNP ;
lin num x = x ;
lin RelNP = GrammarCat.RelNP ;
ExtRelNP = GrammarCat.RelNP ;
lin BareN2 n = n ;
}