Files
gf-core/lib/src/interlingua/AdjectiveIna.gf
2010-12-14 09:52:39 +00:00

59 lines
1.3 KiB
Plaintext

concrete AdjectiveIna of Adjective = CatIna ** open ResIna, Prelude in {
lin
PositA a = {
s = \\_ => a.s ! AAdj Posit ;
-- isPre = a.isPre -- TODO: support adjectives that can be optionally placed before.
isPre = False
} ;
ComparA a np = {
s = \\_ => a.s ! AAdj Compar ++ "que" ++ np.s ! Nom ;
isPre = False
} ;
UseComparA a = {
s = \\_ => a.s ! AAdj Compar ;
isPre = False
} ;
AdjOrd ord = {
s = \\_ => ord.s ;
isPre = False
} ;
CAdvAP ad ap np = {
s = \\a => ad.s ++ ap.s ! a ++ ad.p ++ np.s ! Nom ;
isPre = False
} ;
-- $SuperlA$ belongs to determiner syntax in $Noun$.
ComplA2 a np = {
s = \\_ => a.s ! AAdj Posit ++ a.c2 ++ np.s ! Acc ;
isPre = False
} ;
ReflA2 a = {
s = \\ag => a.s ! AAdj Posit ++ a.c2 ++ reflPron ! ag ;
isPre = False
} ;
SentAP ap sc = {
s = \\a => ap.s ! a++ sc.s ;
isPre = False
} ;
AdAP ada ap = {
s = \\a => ada.s ++ ap.s ! a;
isPre = ap.isPre
} ;
UseA2 a = {
s = \\_ => a.s ! AAdj Posit ;
-- isPre = a.isPre -- TODO: support adjectives that can be optionally placed before.
isPre = False
} ;
}