A major update to the Latvian resource grammar

The case of the topic part of a clause (~subject) can now depend on the verb, allowing for less frequent agreement.
E.g. "man[Dat] garšo pica[Nom]" ("I like pizza").
The default case for the topic/subject remains the nominative case.
This commit is contained in:
Normunds Gruzitis
2012-08-23 23:05:16 +00:00
parent 8277fe4606
commit 2148d12164
10 changed files with 185 additions and 139 deletions
+14 -14
View File
@@ -13,39 +13,39 @@ flags
lin
ImpersCl vp =
let a = AgP3 Sg Masc
let agr = AgP3 Sg Masc
in {
s = \\mood,pol =>
buildVerb vp.v mood pol a ++ -- Verb
vp.s2 ! a -- Object(s), complements, adverbial modifiers
buildVerb vp.v mood pol agr ++ -- Verb
vp.focus ! agr -- Object(s), complements, adverbial modifiers
} ;
GenericCl vp =
let a = AgP3 Sg Masc
let agr = AgP3 Sg Masc
in {
s = \\mood,pol =>
buildVerb vp.v mood pol a ++
vp.s2 ! a
buildVerb vp.v mood pol agr ++
vp.focus ! agr
} ;
ExistNP np =
let
v = lin V mkVerb_Irreg_Be ;
a = np.a
agr = np.a
in {
s = \\mood,pol =>
buildVerb v mood pol a ++
buildVerb v mood pol agr ++
np.s ! Nom
} ;
ExistIP ip =
let
v = lin V mkVerb_Irreg_Be ;
a = AgP3 ip.n Masc
agr = AgP3 ip.n Masc
in {
s = \\mood,pol =>
ip.s ! Nom ++
buildVerb v mood pol a
buildVerb v mood pol agr
} ;
-- FIXME: needs restriction so that only VerbMood Indicative _ _ Present is allowed;
@@ -53,17 +53,17 @@ lin
ProgrVP v = v ;
ImpPl1 vp =
let a = AgP1 Pl Masc
let agr = AgP1 Pl Masc
in {
s =
vp.v.s ! Pos ! (Indicative P1 Pl Pres) ++ -- Verb
vp.s2 ! a -- Object(s), complements, adverbial modifiers
vp.focus ! agr -- Object(s), complements, adverbial modifiers
}
| { s = vp.v.s ! Pos ! (Indicative P1 Pl Fut) ++ vp.s2 ! a } --# notpresent
| { s = vp.v.s ! Pos ! (Indicative P1 Pl Fut) ++ vp.focus ! agr } --# notpresent
;
ImpP3 np vp = {
s = "lai" ++ np.s ! Nom ++ buildVerb vp.v (Ind Simul Pres) Pos np.a ++ vp.s2 ! np.a ;
s = "lai" ++ np.s ! Nom ++ buildVerb vp.v (Ind Simul Pres) Pos np.a ++ vp.focus ! np.a ;
} ;
-- FIXME: placeholder