mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 01:18:57 -06:00
Merge pull request #140 from odanoburu/por-cop
(Por) change copula type from bool to sum param
This commit is contained in:
@@ -72,11 +72,20 @@ instance DiffPor of DiffRomance - [chooseTA,partAgr,vpAgrSubj,vpAgrClits] = open
|
|||||||
in
|
in
|
||||||
neg.p1 ++ verb ++ bindIf refl.p2 ++ refl.p1 ++ bindIf clpr.p3 ++ clpr.p1 ++ compl ;
|
neg.p1 ++ verb ++ bindIf refl.p2 ++ refl.p1 ++ bindIf clpr.p3 ++ clpr.p1 ++ compl ;
|
||||||
|
|
||||||
|
param
|
||||||
|
Copula = SerCop | EstarCop | FicarCop ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
CopulaType = Bool ;
|
CopulaType = Copula ;
|
||||||
selectCopula = \isEstar -> case isEstar of {True => estar_V ; False => copula} ;
|
selectCopula coptyp = case coptyp of {
|
||||||
serCopula = False ;
|
SerCop => copula ;
|
||||||
estarCopula = True ;
|
EstarCop => estar_V ;
|
||||||
|
FicarCop => ficar_V
|
||||||
|
} ;
|
||||||
|
|
||||||
|
serCopula = SerCop ;
|
||||||
|
estarCopula = EstarCop ;
|
||||||
|
ficarCopula = FicarCop ;
|
||||||
|
|
||||||
oper
|
oper
|
||||||
-- the other Cases are defined in ResRomance
|
-- the other Cases are defined in ResRomance
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ oper
|
|||||||
mkA : (blanco : A) -> (hueso : Str) -> A -- noninflecting component after the adjective
|
mkA : (blanco : A) -> (hueso : Str) -> A -- noninflecting component after the adjective
|
||||||
= mkNonInflectA ;
|
= mkNonInflectA ;
|
||||||
|
|
||||||
mkA : A -> CopulaType -> A -- force copula type, e.g. "João está doente", "João é doente"
|
mkA : A -> CopulaType -> A -- force copula type, e.g. "João está doente", "João é doente". Choose among ``serCopula``, ``estarCopula``, and ``ficarCopula``
|
||||||
= adjCopula ;
|
= adjCopula ;
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ interface DiffRomance = open CommonRomance, Prelude in {
|
|||||||
|
|
||||||
oper mkImperative : Bool -> Person -> VP -> RPolarity => Gender => Number => Str ;
|
oper mkImperative : Bool -> Person -> VP -> RPolarity => Gender => Number => Str ;
|
||||||
|
|
||||||
-- To render the copula (ser/estar in Spa,Cat)
|
-- To render the copula (ser/estar in Spa,Cat,Por)
|
||||||
|
|
||||||
oper CopulaType : PType ;
|
oper CopulaType : PType ;
|
||||||
oper selectCopula : CopulaType -> Verb ;
|
oper selectCopula : CopulaType -> Verb ;
|
||||||
|
|||||||
Reference in New Issue
Block a user