-
Notifications
You must be signed in to change notification settings - Fork 10
/
ParseExtendFre.gf
43 lines (34 loc) · 1.46 KB
/
ParseExtendFre.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
35
36
37
38
39
40
41
42
43
concrete ParseExtendFre of ParseExtend =
ExtendFre - [iFem_Pron, youPolFem_Pron, weFem_Pron, youPlFem_Pron, theyFem_Pron, GenNP, DetNPMasc, DetNPFem, FocusAP, N2VPSlash, A2VPSlash,
CompVP, InOrderToVP, PurposeVP, ComplGenVV, ReflRNP, UncontractedNeg, AdvIsNPAP, ExistCN, NominalizeVPSlashNP,
PiedPipingQuestSlash, PiedPipingRelSlash], NumeralFre - [num], PunctuationX **
open Prelude, CommonRomance, ResFre, GrammarFre, ExtendFre in {
lin
UttAP p ap = {s = ap.s ! (genNum2Aform p.a.g p.a.n)} ;
UttVPS p vps = {s = vps.s ! Indic ! p.a ! False} ;
PhrUttMark pconj utt voc mark = {s = SOFT_BIND ++ 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
} ;
ComplVV vv ant pol vp = let
vf : Agr -> Str = \agr -> case ant.a of {
Simul => infVP vp pol.p agr ;
Anter => nominalVP (\_ -> VFin (VPres Indic) agr.n agr.p) vp pol.p agr
}
in
insertComplement (\\a => prepCase vv.c2.c ++ ant.s ++ pol.s ++ vf a) (predV vv) ;
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 = ExtendFre.ReflRNP ;
lin num x = x ;
lin that_RP = IdRP ;
lin RelNP = GrammarFre.RelNP ;
ExtRelNP = GrammarFre.RelNP ;
lin BareN2 n = n ;
}