1
0
forked from GitHub/gf-rgl

Latvian: finally handles PassV2 clauses in a more or less adequate way

Extends the previously introduced support for specifying the verb valence (verb-dependent subject and object cases), involving functions up to PredVP and RelVP.

In Latvian, the passive voice is not used if the agent (subject) is known; to preserve the information structure (i.e. the word order), a clause like 'A is <done> by B' is linearized in the active voice ('A <does> B') where A has the object case (e.g. Acc), and B - the subject case (e.g. Nom). Thus, the verb valence patterns are swapped on-the-fly.

This is still a rather quick & dirty implementation: parameters and linearization types have to be optimized (VerbLav), the use of PassV2 in AdvVP is problematic as it doesn't apply VPSlashPrep / ComplSlash, etc.
This commit is contained in:
normundsg
2013-05-01 03:33:58 +00:00
parent af208a2300
commit 4994be6e89
12 changed files with 234 additions and 151 deletions
+6 -4
View File
@@ -1,9 +1,9 @@
--# -path=.:../abstract:../common:../prelude
--# -path=.:abstract:common:prelude
concrete LexiconLav of Lexicon = CatLav ** open
ParadigmsLav,
StructuralLav,
ExtraLav,
--(E = ExtraLav),
ResLav,
Prelude
in {
@@ -190,7 +190,7 @@ lin
switch8off_V2 = mkV2 (mkV "izslēgt" "izslēdzu" "izslēdzu") acc_Prep ;
switch8on_V2 = mkV2 (mkV "ieslēgt" "ieslēdzu" "ieslēdzu") acc_Prep ;
table_N = mkN "galds" ;
talk_V3 = mkV3 (mkV "runāt" second_conjugation) to_Prep par_Prep ; -- ar ko, par ko
talk_V3 = mkV3 (mkV "runāt" second_conjugation) with_Prep par_Prep ; -- ar ko, par ko
teacher_N = mkN "skolotājs" ;
teach_V2 = mkV2 (mkV "mācīt" third_conjugation) acc_Prep ;
television_N = mkN "televīzija" ;
@@ -372,6 +372,8 @@ lin
today_Adv = mkAdv "šodien" ;
uncertain_A = mkA "nepārliecināts" ;
--oper par_Prep = mkPrep "par" Acc Dat ;
-- TODO: kāpēc neizdodas ar ExtraLav?
-- Eng arī dara šitā:
oper par_Prep = mkPrep "par" Acc Dat ;
}