mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
(Spa) Implement AForm+related opers in DiffSpa
This commit is contained in:
@@ -70,6 +70,22 @@ instance DiffSpa of DiffRomance - [iAdvQuestionInv,otherInv,partAgr,stare_V,vpAg
|
|||||||
_ => prepCase c ++ artDef g Sg (CPrep P_de)
|
_ => prepCase c ++ artDef g Sg (CPrep P_de)
|
||||||
} ;
|
} ;
|
||||||
-}
|
-}
|
||||||
|
|
||||||
|
-- AForm and comparatives
|
||||||
|
param
|
||||||
|
AFormComplex = AF Gender Number | AAttr Gender | AA ;
|
||||||
|
oper
|
||||||
|
AForm = AFormComplex ;
|
||||||
|
aform2aagr : AForm -> AAgr = \a -> case a of {
|
||||||
|
DiffSpa.AF g n => aagr g n ;
|
||||||
|
_ => aagr Masc Sg -- "le plus lentement"
|
||||||
|
} ;
|
||||||
|
genNum2Aform = \g,n -> DiffSpa.AF g n ;
|
||||||
|
genNumPos2Aform : Gender -> Number -> Bool -> AForm = \g,n,isPre ->
|
||||||
|
case <n,isPre> of {
|
||||||
|
<Sg,True> => AAttr g ;
|
||||||
|
_ => genNum2Aform g n
|
||||||
|
} ;
|
||||||
piuComp = "más" ;
|
piuComp = "más" ;
|
||||||
|
|
||||||
conjunctCase : Case -> Case = \c -> case c of {
|
conjunctCase : Case -> Case = \c -> case c of {
|
||||||
|
|||||||
@@ -60,12 +60,9 @@ oper
|
|||||||
|
|
||||||
mkAdj : (x1,_,_,_,_,_,x7 : Str) -> Adj = \buen,solo,gran,sola,solos,solas,solamente ->
|
mkAdj : (x1,_,_,_,_,_,x7 : Str) -> Adj = \buen,solo,gran,sola,solos,solas,solamente ->
|
||||||
{s = table {
|
{s = table {
|
||||||
ASg Masc AAttr => buen ;
|
AAttr g => genForms buen gran ! g ; -- un buen amigo, una gran idea
|
||||||
ASg Masc APred => solo ;
|
AF g Sg => genForms solo sola ! g ;
|
||||||
ASg Fem AAttr => gran ;
|
AF g Pl => genForms solos solas ! g ;
|
||||||
ASg Fem APred => sola ;
|
|
||||||
APl Masc => solos ;
|
|
||||||
APl Fem => solas ;
|
|
||||||
AA => solamente
|
AA => solamente
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
Reference in New Issue
Block a user