mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 06:52:49 -06:00
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
concrete AdjectiveFin of Adjective = CatFin ** open ResFin, Prelude in {
|
|
|
|
flags optimize=all_subs ; -- gfc size from 2864336 to 6786 - i.e. factor 422
|
|
|
|
lin
|
|
|
|
PositA a = {
|
|
s = \\_,nf => a.s ! Posit ! AN nf
|
|
} ;
|
|
ComparA a np = {
|
|
s = \\isMod,af => case isMod of {
|
|
True => np.s ! NPCase Part ++ a.s ! Compar ! AN af ; -- minua isompi
|
|
_ => a.s ! Compar ! AN af ++ "kuin" ++ np.s ! NPCase Nom -- isompi kuin minä
|
|
}
|
|
} ;
|
|
CAdvAP ad ap np = {
|
|
s = \\m,af => ad.s ++ ap.s ! m ! af ++ ad.p ++ np.s ! NPCase Nom
|
|
} ;
|
|
UseComparA a = {
|
|
s = \\_,nf => a.s ! Compar ! AN nf ;
|
|
} ;
|
|
|
|
-- $SuperlA$ belongs to determiner syntax in $Noun$.
|
|
AdjOrd ord = {
|
|
s = \\_ => ord.s
|
|
} ;
|
|
|
|
|
|
ComplA2 adj np = {
|
|
s = \\isMod,af =>
|
|
preOrPost isMod (appCompl True Pos adj.c2 np) (adj.s ! Posit ! AN af)
|
|
} ;
|
|
|
|
ReflA2 adj = {
|
|
s = \\isMod,af =>
|
|
preOrPost isMod
|
|
(appCompl True Pos adj.c2 (reflPron (agrP3 Sg))) (adj.s ! Posit ! AN af)
|
|
} ;
|
|
|
|
SentAP ap sc = {
|
|
s = \\b,a => ap.s ! b ! a ++ sc.s
|
|
} ;
|
|
|
|
AdAP ada ap = {
|
|
s = \\b,af => ada.s ++ ap.s ! b ! af
|
|
} ;
|
|
|
|
UseA2 a = {
|
|
s = \\_,nf => a.s ! Posit ! AN nf
|
|
} ;
|
|
|
|
}
|