mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
changed type of ComplV3
This commit is contained in:
@@ -14,6 +14,7 @@ fun
|
||||
SPredV : NP -> V -> Cl ; -- "John walks"
|
||||
SPredPassV : NP -> V -> Cl ; -- "John is seen"
|
||||
SPredV2 : NP -> V2 -> NP -> Cl ; -- "John sees Mary"
|
||||
SPredV3 : NP -> V2 -> NP -> NP -> Cl ; -- "John tells Mary everything"
|
||||
SPredReflV2 : NP -> V2 -> Cl ; -- "John loves himself"
|
||||
SPredVS : NP -> VS -> S -> Cl ; -- "John says that Mary runs"
|
||||
SPredVV : NP -> VV -> VPI -> Cl ; -- "John must walk"
|
||||
|
||||
@@ -9,6 +9,7 @@ incomplete concrete ClauseI of Clause = open Rules, Verbphrase in {
|
||||
SPredV np v = PredVP np (UseV v) ;
|
||||
SPredPassV np v = PredVP np (UsePassV v) ;
|
||||
SPredV2 np v x = PredVP np (ComplV2 v x) ;
|
||||
---- SPredV3 np v x y = PredVP np (ComplV3 v x y) ;
|
||||
SPredReflV2 np v = PredVP np (ComplReflV2 v) ;
|
||||
SPredVS np v x = PredVP np (ComplVS v x) ;
|
||||
SPredVV np v x = PredVP np (ComplVV v x) ;
|
||||
|
||||
@@ -70,7 +70,6 @@ fun
|
||||
-- Partial saturation.
|
||||
|
||||
UseV2 : V2 -> V ; -- "loves"
|
||||
ComplV3 : V3 -> NP -> V2 ; -- "prefers wine (to beer)"
|
||||
|
||||
ComplA2S : A2S -> NP -> AS ; -- "good for John"
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ abstract Verbphrase = Categories ** {
|
||||
UseV : V -> VP ; -- "walks"
|
||||
UsePassV : V -> VP ; -- "is seen"
|
||||
ComplV2 : V2 -> NP -> VP ; -- "sees Mary"
|
||||
ComplV3 : V3 -> NP -> NP -> VP ; -- "tells Mary everything"
|
||||
ComplReflV2 : V2 -> VP ; -- "loves himself"
|
||||
ComplVS : VS -> S -> VP ; -- "says that Mary runs"
|
||||
ComplVV : VV -> VPI -> VP ; -- "must walk"
|
||||
|
||||
@@ -78,7 +78,7 @@ lin
|
||||
-- Partial saturation.
|
||||
|
||||
UseV2 = transAsVerb ;
|
||||
ComplV3 = complDitransVerb ;
|
||||
---- ComplV3 = complDitransVerb ;
|
||||
|
||||
ComplA2S = predAdjSent2 ;
|
||||
|
||||
|
||||
@@ -52,8 +52,6 @@ lin
|
||||
|
||||
UseV2 = transAsVerb ;
|
||||
|
||||
---- ComplV3 = complDitransVerb ;
|
||||
|
||||
ComplA2S = predAdjSent2 ; ---- clitics get lost
|
||||
|
||||
AdjPart = adjPastPart ;
|
||||
@@ -99,9 +97,9 @@ lin
|
||||
--3 Sentences and relative clauses
|
||||
--
|
||||
|
||||
SlashV2 = slashTransVerb ;
|
||||
---- SlashVV2 = slashVerbVerb ;
|
||||
---- SlashAdv cl p = slashAdverb cl p.s ;
|
||||
SlashV2 = slashTransVerb ;
|
||||
SlashVV2 = slashVerbVerb ;
|
||||
SlashAdv = slashAdverb ;
|
||||
|
||||
IdRP = identRelPron ;
|
||||
FunRP = funRelPron ;
|
||||
|
||||
@@ -635,10 +635,15 @@ oper
|
||||
v ** {s2 = p1 ; c = c1 ; s3 = p2 ; c3 = c2} ;
|
||||
|
||||
--- This must be completed to account for the order of the clitics.
|
||||
--- In the rule below, the last argument cannot get cliticized.
|
||||
|
||||
{- ----
|
||||
complDitransVerb :
|
||||
DitransVerb -> NounPhrase -> NounPhrase -> VerbGroup = \donner,jean,vin ->
|
||||
DitransVerb -> NounPhrase -> NounPhrase -> Complemnt = \donner,jean,vin ->
|
||||
complTransVerbGen
|
||||
donner jean
|
||||
(\\_,_,_ => donner.s3 ++ vin.s ! case2pform donner.c3) ;
|
||||
|
||||
{-
|
||||
{s = \\b,g,w =>
|
||||
let
|
||||
adonne = formVerb2 donner g w ;
|
||||
@@ -927,6 +932,17 @@ oper
|
||||
predVerbGroupClause jean (predClauseGroup aimer (complVerb aimer)) **
|
||||
complementOfTransVerb aimer ;
|
||||
|
||||
slashVerbVerb : NounPhrase -> VerbVerb -> TransVerb -> ClauseSlashNounPhrase =
|
||||
\jean,vouloir,aimer ->
|
||||
predVerbGroupClause jean
|
||||
(predClauseGroup aimer (complVerbVerb vouloir
|
||||
(predVerbGroup True {s = [] ; a = Simul} (predClauseGroup aimer (complVerb aimer))))) **
|
||||
complementOfTransVerb aimer ;
|
||||
|
||||
slashAdverb : Clause -> {s : Str ; c : CaseA} -> ClauseSlashNounPhrase =
|
||||
\ilhabite,dans -> ilhabite ** {s2 = dans.s ; c = dans.c} ;
|
||||
|
||||
|
||||
--2 Relative pronouns and relative clauses
|
||||
--
|
||||
-- Relative pronouns are inflected in
|
||||
|
||||
@@ -28,6 +28,7 @@ incomplete concrete VerbphraseRomance of Verbphrase = CategoriesRomance **
|
||||
UseV v = predClauseGroup v (complVerb v) ;
|
||||
UsePassV v = predClauseBeGroup (passVerb v) ;
|
||||
ComplV2 v x = predClauseGroup v (complTransVerb v x) ;
|
||||
ComplV3 v x y = predClauseGroup v (complDitransVerb v x y) ;
|
||||
ComplReflV2 v = predClauseGroup v (reflTransVerb v) ;
|
||||
ComplVS v x = predClauseGroup v (complSentVerb v x) ;
|
||||
ComplVV v x = predClauseGroup v (complVerbVerb v x) ;
|
||||
|
||||
@@ -59,7 +59,7 @@ lin
|
||||
-- Partial saturation.
|
||||
|
||||
UseV2 = transAsVerb ;
|
||||
ComplV3 = complDitransVerb ;
|
||||
---- ComplV3 = complDitransVerb ;
|
||||
|
||||
ComplA2S = predAdjSent2 ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user