mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 01:32:50 -06:00
Latvian: if ~object~ is a Pron and is not modified by a RCl, it is more natural/neutral if it precedes the verb. For this, the lin types of NP and Adv are extended with a boolean field isPron (in addition to the previously introduced isRel field that indicates whether a CN or NP is modified by a RCl).
This commit is contained in:
@@ -14,17 +14,22 @@ lin
|
||||
|
||||
ConjS = conjunctDistrSS ;
|
||||
|
||||
ConjAdv = conjunctDistrSS ;
|
||||
|
||||
ConjNP conj ss = conjunctDistrTable Case conj ss ** {
|
||||
agr = toAgr (fromAgr ss.agr).pers (conjNumber (fromAgr ss.agr).num conj.num) (fromAgr ss.agr).gend;
|
||||
pol = Pos ;
|
||||
isRel = False
|
||||
} ;
|
||||
ConjRS conj ss = conjunctDistrTable Agreement conj ss ;
|
||||
|
||||
ConjAP conj ss = conjunctDistrTable4 Definiteness Gender Number Case conj ss ;
|
||||
|
||||
ConjRS conj ss = conjunctDistrTable Agreement conj ss ;
|
||||
-- Conj -> [NP] -> NP
|
||||
-- e.g. "she or we"
|
||||
ConjNP conj ss = conjunctDistrTable Case conj ss ** {
|
||||
agr = toAgr (fromAgr ss.agr).pers (conjNumber (fromAgr ss.agr).num conj.num) (fromAgr ss.agr).gend;
|
||||
pol = Pos ;
|
||||
isRel = False ;
|
||||
isPron = False
|
||||
} ;
|
||||
|
||||
-- Conj -> [Adv] -> Adv
|
||||
-- e.g. "here or there"
|
||||
ConjAdv or xs = (conjunctDistrSS or xs) ** {isPron = False};
|
||||
|
||||
-- These fun's are generated from the list cat's:
|
||||
BaseS = twoSS ;
|
||||
@@ -43,10 +48,13 @@ lin
|
||||
|
||||
lincat
|
||||
|
||||
[S] = { s1, s2 : Str } ;
|
||||
[Adv] = { s1, s2 : Str } ;
|
||||
[NP] = { s1, s2 : Case => Str ; agr : Agreement } ;
|
||||
[AP] = { s1, s2 : Definiteness => Gender => Number => Case => Str } ;
|
||||
[RS] = { s1, s2 : Agreement => Str } ;
|
||||
[S] = {s1, s2 : Str} ;
|
||||
[RS] = {s1, s2 : Agreement => Str} ;
|
||||
[NP] = {s1, s2 : Case => Str ; agr : Agreement} ;
|
||||
[AP] = {s1, s2 : Definiteness => Gender => Number => Case => Str} ;
|
||||
[Adv] = {s1, s2 : Str} ;
|
||||
-- TODO: [AdV]{2}
|
||||
-- TODO: [IAdv]{2}
|
||||
-- TODO: [CN] {2}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user