1
0
forked from GitHub/gf-rgl
This commit is contained in:
Inari Listenmaa
2019-02-11 14:31:46 +01:00
8 changed files with 28 additions and 7 deletions

View File

@@ -206,6 +206,8 @@ abstract Extend = Cat ** {
DetNPMasc : Det -> NP ; DetNPMasc : Det -> NP ;
DetNPFem : Det -> NP ; DetNPFem : Det -> NP ;
UseComp_estar : Comp -> VP ; -- (Cat, Spa, Por) "está cheio" instead of "é cheio"
iFem_Pron : Pron ; -- I (Fem) iFem_Pron : Pron ; -- I (Fem)
youFem_Pron : Pron ; -- you (Fem) youFem_Pron : Pron ; -- you (Fem)
weFem_Pron : Pron ; -- we (Fem) weFem_Pron : Pron ; -- we (Fem)

View File

@@ -76,7 +76,7 @@ lin
Cons_nr_RNP = variants {} ; -- NP -> RNPList -> RNPList ; -- John, my family, myself Cons_nr_RNP = variants {} ; -- NP -> RNPList -> RNPList ; -- John, my family, myself
ComplGenVV = variants {} ; -- VV -> Ant -> Pol -> VP -> VP ; -- want not to have slept ComplGenVV = variants {} ; -- VV -> Ant -> Pol -> VP -> VP ; -- want not to have slept
ComplSlashPartLast = ComplSlash ; ComplSlashPartLast = ComplSlash ;
SlashV2V = variants {} ; -- V2V -> Ant -> Pol -> VPS -> VPSlash ; -- force (her) not to have slept --SlashV2V = variants {} ; -- V2V -> Ant -> Pol -> VPS -> VPSlash ; -- force (her) not to have slept
CompoundN = variants {} ; -- N -> N -> N ; -- control system / controls system / control-system CompoundN = variants {} ; -- N -> N -> N ; -- control system / controls system / control-system
CompoundAP = variants {} ; -- N -> A -> AP ; -- language independent / language-independent CompoundAP = variants {} ; -- N -> A -> AP ; -- language independent / language-independent
GerundCN = variants {} ; -- VP -> CN ; -- publishing of the document (can get a determiner) GerundCN = variants {} ; -- VP -> CN ; -- publishing of the document (can get a determiner)
@@ -96,6 +96,7 @@ lin
DetNPMasc = DetNP ; DetNPMasc = DetNP ;
DetNPFem = DetNP ; DetNPFem = DetNP ;
UseComp_estar = UseComp ; -- DEFAULT UseComp
iFem_Pron = i_Pron ; -- DEFAULT I (masc) iFem_Pron = i_Pron ; -- DEFAULT I (masc)
youFem_Pron = youSg_Pron ; -- DEFAULT you (masc) youFem_Pron = youSg_Pron ; -- DEFAULT you (masc)
weFem_Pron = we_Pron ; -- DEFAULT we (masc) weFem_Pron = we_Pron ; -- DEFAULT we (masc)

View File

@@ -1,6 +1,6 @@
--# -path=.:../romance:../abstract:../common:../prelude --# -path=.:../romance:../abstract:../common:../prelude
instance DiffPor of DiffRomance - [chooseTA,partAgr,vpAgrSubj,vpAgrClits] = open CommonRomance, PhonoPor, BeschPor, Prelude in { instance DiffPor of DiffRomance - [iAdvQuestionInv,chooseTA,otherInv,partAgr,vpAgrSubj,vpAgrClits] = open CommonRomance, PhonoPor, BeschPor, Prelude in {
flags optimize=noexpand ; flags optimize=noexpand ;
coding=utf8 ; coding=utf8 ;
@@ -96,6 +96,10 @@ instance DiffPor of DiffRomance - [chooseTA,partAgr,vpAgrSubj,vpAgrClits] = open
estarCopula = EstarCop ; estarCopula = EstarCop ;
ficarCopula = FicarCop ; ficarCopula = FicarCop ;
oper
iAdvQuestionInv : Direct = DDir ;
otherInv : Direct = DDir ;
oper oper
-- the other Cases are defined in ResRomance -- the other Cases are defined in ResRomance
dative : Case = CPrep P_a ; dative : Case = CPrep P_a ;

View File

@@ -40,6 +40,7 @@ concrete ExtendPor of Extend =
PresPartAP, PresPartAP,
ProDrop, ProDrop,
PurposeVP, PurposeVP,
UseComp_estar,
VPS, VPS,
iFem_Pron, iFem_Pron,
theyFem_Pron, theyFem_Pron,
@@ -273,7 +274,11 @@ concrete ExtendPor of Extend =
gerundStr vp = gerVP vp (Ag Masc Sg P3) ; gerundStr vp = gerVP vp (Ag Masc Sg P3) ;
lin lin
UncontractedNeg = {s = [] ; p = RNeg False} ;
-- Romance -- Romance
UseComp_estar comp = insertComplement comp.s (predV estar_V) ;
iFem_Pron = pronAgr S.i_Pron Fem Sg P1 ; iFem_Pron = pronAgr S.i_Pron Fem Sg P1 ;
weFem_Pron = pronAgr S.we_Pron Fem Pl P1 ; weFem_Pron = pronAgr S.we_Pron Fem Pl P1 ;
youFem_Pron = pronAgr S.youSg_Pron Fem Sg P3 ; youFem_Pron = pronAgr S.youSg_Pron Fem Sg P3 ;

View File

@@ -63,6 +63,10 @@ interface DiffRomance = open CommonRomance, Prelude in {
oper iAdvQuestionInv : Direct = DInv ; -- except Fre oper iAdvQuestionInv : Direct = DInv ; -- except Fre
oper iCompQuestionInv : Direct = DInv ; -- for Cat,Por,Spa where otherInv will be DDir
oper otherInv : Direct = DInv ; -- except Cat, Por, Spa
--2 Constants that must derivatively depend on language --2 Constants that must derivatively depend on language
param NPForm = Ton Case | Aton Case | Poss {g : Gender ; n : Number} ; --- AAgr param NPForm = Ton Case | Aton Case | Poss {g : Gender ; n : Number} ; --- AAgr

View File

@@ -29,7 +29,7 @@ incomplete concrete QuestionRomance of Question =
\d -> slash.s ! ip.a ! d ! t ! a ! p ! Indic ; \d -> slash.s ! ip.a ! d ! t ! a ! p ! Indic ;
who = slash.c2.s ++ ip.s ! slash.c2.c who = slash.c2.s ++ ip.s ! slash.c2.c
in table { in table {
QDir => who ++ cls DInv ; QDir => who ++ cls otherInv ;
QIndir => who ++ cls DDir QIndir => who ++ cls DDir
} }
} ; } ;
@@ -51,7 +51,7 @@ incomplete concrete QuestionRomance of Question =
let let
vp = predV (selectCopula icomp.cop) ; vp = predV (selectCopula icomp.cop) ;
cls = (mkClause (np.s ! Nom).comp np.hasClit np.isPol np.a vp).s ! cls = (mkClause (np.s ! Nom).comp np.hasClit np.isPol np.a vp).s !
DInv ! t ! a ! p ! Indic ; iCompQuestionInv ! t ! a ! p ! Indic ;
why = icomp.s ! complAgr np.a ; why = icomp.s ! complAgr np.a ;
in why ++ cls in why ++ cls
} ; } ;

View File

@@ -1,6 +1,6 @@
--# -path=.:../romance:../abstract:../common:prelude --# -path=.:../romance:../abstract:../common:prelude
instance DiffSpa of DiffRomance - [partAgr,vpAgrSubj,vpAgrClits,contractInf] = open CommonRomance, PhonoSpa, BeschSpa, Prelude in { instance DiffSpa of DiffRomance - [iAdvQuestionInv,otherInv,partAgr,vpAgrSubj,vpAgrClits,contractInf] = open CommonRomance, PhonoSpa, BeschSpa, Prelude in {
flags optimize=noexpand ; flags optimize=noexpand ;
coding=utf8 ; coding=utf8 ;
@@ -139,6 +139,9 @@ instance DiffSpa of DiffRomance - [partAgr,vpAgrSubj,vpAgrClits,contractInf] = o
serCopula = False ; serCopula = False ;
estarCopula = True ; estarCopula = True ;
iAdvQuestionInv : Direct = DDir ;
otherInv : Direct = DDir ;
negation : RPolarity => (Str * Str) = table { negation : RPolarity => (Str * Str) = table {
RPos => <[],[]> ; RPos => <[],[]> ;
RNeg _ => <"no",[]> RNeg _ => <"no",[]>

View File

@@ -18,6 +18,8 @@ concrete ExtendSpa of Extend =
-- put your own definitions here -- put your own definitions here
lin lin
UseComp_estar comp = insertComplement comp.s (predV estar_V) ;
iFem_Pron = mkPronoun iFem_Pron = mkPronoun
"yo" "me" "me" "mí" "yo" "me" "me" "mí"
"mi" "mi" "mis" "mis" "mi" "mi" "mis" "mis"