mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 01:18:57 -06:00
AnaphPron produces a pronoun from a noun phrase
This commit is contained in:
@@ -267,6 +267,7 @@ abstract Extend = Cat ** {
|
|||||||
weFem_Pron : Pron ; -- we (Fem)
|
weFem_Pron : Pron ; -- we (Fem)
|
||||||
youPlFem_Pron : Pron ; -- you plural (Fem)
|
youPlFem_Pron : Pron ; -- you plural (Fem)
|
||||||
theyFem_Pron : Pron ; -- they (Fem)
|
theyFem_Pron : Pron ; -- they (Fem)
|
||||||
|
theyNeutr_Pron : Pron ; -- they (Neutr)
|
||||||
youPolFem_Pron : Pron ; -- you polite (Fem)
|
youPolFem_Pron : Pron ; -- you polite (Fem)
|
||||||
youPolPl_Pron : Pron ; -- you polite plural (Masc)
|
youPolPl_Pron : Pron ; -- you polite plural (Masc)
|
||||||
youPolPlFem_Pron : Pron ; -- you polite plural (Fem)
|
youPolPlFem_Pron : Pron ; -- you polite plural (Fem)
|
||||||
@@ -298,4 +299,7 @@ fun
|
|||||||
PlSurname : SN -> PN ;
|
PlSurname : SN -> PN ;
|
||||||
FullName : GN -> SN -> PN ;
|
FullName : GN -> SN -> PN ;
|
||||||
|
|
||||||
|
fun
|
||||||
|
AnaphPron : NP -> Pron ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ lin
|
|||||||
weFem_Pron = we_Pron ; -- DEFAULT we (masc)
|
weFem_Pron = we_Pron ; -- DEFAULT we (masc)
|
||||||
youPlFem_Pron = youPl_Pron ; -- DEFAULT you plural (masc)
|
youPlFem_Pron = youPl_Pron ; -- DEFAULT you plural (masc)
|
||||||
theyFem_Pron = they_Pron ; -- DEFAULT they (masc)
|
theyFem_Pron = they_Pron ; -- DEFAULT they (masc)
|
||||||
|
theyNeutr_Pron = they_Pron ; -- DEFAULT they (masc)
|
||||||
youPolFem_Pron = youPol_Pron ; -- DEFAULT you polite (masc)
|
youPolFem_Pron = youPol_Pron ; -- DEFAULT you polite (masc)
|
||||||
youPolPl_Pron = youPl_Pron ; -- DEFAULT you plural (masc)
|
youPolPl_Pron = youPl_Pron ; -- DEFAULT you plural (masc)
|
||||||
youPolPlFem_Pron = youPl_Pron ; -- DEFAULT you plural (masc)
|
youPolPlFem_Pron = youPl_Pron ; -- DEFAULT you plural (masc)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ concrete ExtendEng of Extend =
|
|||||||
PassAgentVPSlash, PassVPSlash, ProgrVPSlash, PastPartAP, PastPartAgentAP, PositAdVAdj, PredVPSVV, PredetRNP, PrepCN,
|
PassAgentVPSlash, PassVPSlash, ProgrVPSlash, PastPartAP, PastPartAgentAP, PositAdVAdj, PredVPSVV, PredetRNP, PrepCN,
|
||||||
EmbedSSlash, PredIAdvVP, PresPartAP, PurposeVP, ReflPoss, ReflPron, ReflRNP, SlashBareV2S, SlashV2V, StrandQuestSlash, StrandRelSlash,
|
EmbedSSlash, PredIAdvVP, PresPartAP, PurposeVP, ReflPoss, ReflPron, ReflRNP, SlashBareV2S, SlashV2V, StrandQuestSlash, StrandRelSlash,
|
||||||
UncontractedNeg, UttAccIP, UttAccNP, UttAdV, UttDatIP, UttDatNP, UttVPShort, WithoutVP, A2VPSlash, N2VPSlash,
|
UncontractedNeg, UttAccIP, UttAccNP, UttAdV, UttDatIP, UttDatNP, UttVPShort, WithoutVP, A2VPSlash, N2VPSlash,
|
||||||
CardCNCard, ProDrop
|
CardCNCard, ProDrop, theyFem_Pron, theyNeutr_Pron
|
||||||
]
|
]
|
||||||
with
|
with
|
||||||
(Grammar = GrammarEng) **
|
(Grammar = GrammarEng) **
|
||||||
@@ -471,6 +471,9 @@ lin UseDAPFem dap = {
|
|||||||
lin CardCNCard card cn =
|
lin CardCNCard card cn =
|
||||||
{s,sp = \\d,c => card.s ! d ! Nom ++ cn.s ! card.n ! c ; n = Pl} ;
|
{s,sp = \\d,c => card.s ! d ! Nom ++ cn.s ! card.n ! c ; n = Pl} ;
|
||||||
|
|
||||||
|
lin theyFem_Pron = mkPron "they" "them" "their" "theirs" plural P3 feminine ;
|
||||||
|
lin theyNeutr_Pron = mkPron "they" "them" "their" "theirs" plural P3 nonhuman ;
|
||||||
|
|
||||||
lin GivenName gn = gn ;
|
lin GivenName gn = gn ;
|
||||||
lin MaleSurname, FemaleSurname = \sn -> sn ;
|
lin MaleSurname, FemaleSurname = \sn -> sn ;
|
||||||
lin FullName gn sn = {
|
lin FullName gn sn = {
|
||||||
@@ -478,4 +481,18 @@ lin FullName gn sn = {
|
|||||||
g = gn.g
|
g = gn.g
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
lin AnaphPron np =
|
||||||
|
case np.a of {
|
||||||
|
AgP1 Sg => i_Pron ;
|
||||||
|
AgP1 Pl => we_Pron ;
|
||||||
|
AgP2 Sg => youSg_Pron ;
|
||||||
|
AgP2 Pl => youPl_Pron ;
|
||||||
|
AgP3Sg Masc => he_Pron ;
|
||||||
|
AgP3Sg Fem => she_Pron ;
|
||||||
|
AgP3Sg Neutr => it_Pron ;
|
||||||
|
AgP3Pl Masc => they_Pron ;
|
||||||
|
AgP3Pl Fem => theyFem_Pron ;
|
||||||
|
AgP3Pl Neutr => theyNeutr_Pron
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user