mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 02:38:55 -06:00
added the nominal possessive form NPNomPoss to NPCase in Eng (covering mine, yours, etc)
This commit is contained in:
@@ -36,6 +36,7 @@ resource MorphoEng = open Prelude, (Predef=Predef), ResEng in {
|
|||||||
s = table {
|
s = table {
|
||||||
NCase Nom => i ;
|
NCase Nom => i ;
|
||||||
NPAcc => me ;
|
NPAcc => me ;
|
||||||
|
NPNomPoss => mine ;
|
||||||
NCase Gen => my
|
NCase Gen => my
|
||||||
} ;
|
} ;
|
||||||
a = toAgr n p g ;
|
a = toAgr n p g ;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ concrete NounEng of Noun = CatEng ** open MorphoEng, ResEng, Prelude in {
|
|||||||
s = \\hasCard,n => artDef ;
|
s = \\hasCard,n => artDef ;
|
||||||
sp = \\hasCard,n => case <n,hasCard> of {
|
sp = \\hasCard,n => case <n,hasCard> of {
|
||||||
<Sg,False> => table { NCase Gen => "its"; _ => "it" } ;
|
<Sg,False> => table { NCase Gen => "its"; _ => "it" } ;
|
||||||
<Pl,False> => table { NCase Nom => "they"; NPAcc => "them"; NCase Gen => "theirs" } ;
|
<Pl,False> => table { NCase Nom => "they"; NPAcc => "them"; _ => "theirs" } ;
|
||||||
_ => \\c => artDef
|
_ => \\c => artDef
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ concrete RelativeEng of Relative = CatEng ** open ResEng in {
|
|||||||
|
|
||||||
IdRP =
|
IdRP =
|
||||||
{ s = table {
|
{ s = table {
|
||||||
RC _ (NCase Gen) => "whose" ;
|
RC _ (NCase Gen) | RC _ NPNomPoss => "whose" ;
|
||||||
RC Neutr _ => "which" ;
|
RC Neutr _ => "which" ;
|
||||||
RC _ NPAcc => "whom" ;
|
RC _ NPAcc => "whom" ;
|
||||||
RC _ (NCase Nom) => "who" ;
|
RC _ (NCase Nom) => "who" ;
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ resource ResEng = ParamX ** open Prelude in {
|
|||||||
param
|
param
|
||||||
Case = Nom | Gen ;
|
Case = Nom | Gen ;
|
||||||
|
|
||||||
-- This is the worst-case $Case$ needed for pronouns.
|
-- This is the worst-case $Case$ needed for pronouns: I, me, my, mine
|
||||||
|
|
||||||
NPCase = NCase Case | NPAcc ;
|
NPCase = NCase Case | NPAcc | NPNomPoss ;
|
||||||
|
|
||||||
-- Useful macros and conversions:
|
-- Useful macros and conversions:
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ resource ResEng = ParamX ** open Prelude in {
|
|||||||
{ s = table {
|
{ s = table {
|
||||||
NCase Nom => i ;
|
NCase Nom => i ;
|
||||||
NPAcc => me ;
|
NPAcc => me ;
|
||||||
NCase Gen => my
|
NCase Gen | NPNomPoss => my -- works for normal genitives, "whose", etc.
|
||||||
} ;
|
} ;
|
||||||
a = toAgr n p g ;
|
a = toAgr n p g ;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user