mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-07 02:02:51 -06:00
first compilable LangDut
This commit is contained in:
69
lib/src/dutch/SentenceDut.gf
Normal file
69
lib/src/dutch/SentenceDut.gf
Normal file
@@ -0,0 +1,69 @@
|
||||
concrete SentenceDut of Sentence = CatDut ** open ResDut, Prelude in {
|
||||
|
||||
flags optimize=all_subs ;
|
||||
|
||||
lin
|
||||
|
||||
PredVP np vp = mkClause (np.s ! NPNom) np.a vp ;
|
||||
--
|
||||
-- PredSCVP sc vp = mkClause sc.s (agrP3 Sg) vp ;
|
||||
--
|
||||
-- ImpVP vp = let vps = useVP vp in {
|
||||
-- s = \\pol,n =>
|
||||
-- let
|
||||
-- ps = case n of {
|
||||
-- ImpF _ True => <P3,"Sie",True> ; -- setzen Sie sich
|
||||
-- _ => <P2,[],False>
|
||||
-- } ;
|
||||
-- agr = {g = Fem ; n = numImp n ; p = ps.p1} ; --- g does not matter
|
||||
-- verb = vps.s ! False ! agr ! VPImperat ps.p3 ;
|
||||
-- inf = vp.inf ++ verb.inf ;
|
||||
-- in
|
||||
-- verb.fin ++ ps.p2 ++
|
||||
-- vp.n2 ! agr ++ vp.a1 ! pol ++ vp.a2 ++ inf ++ vp.ext
|
||||
-- } ;
|
||||
--
|
||||
-- SlashVP np vp =
|
||||
-- mkClause
|
||||
-- (np.s ! Nom) np.a
|
||||
-- vp **
|
||||
-- {c2 = vp.c2} ;
|
||||
--
|
||||
-- AdvSlash slash adv = {
|
||||
-- s = \\m,t,a,b,o => slash.s ! m ! t ! a ! b ! o ++ adv.s ;
|
||||
-- c2 = slash.c2
|
||||
-- } ;
|
||||
--
|
||||
-- SlashPrep cl prep = cl ** {c2 = prep} ;
|
||||
--
|
||||
-- SlashVS np vs slash =
|
||||
-- mkClause (np.s ! Nom) np.a
|
||||
-- (insertExtrapos (conjThat ++ slash.s ! Sub) (predV vs)) **
|
||||
-- {c2 = slash.c2} ;
|
||||
--
|
||||
-- EmbedS s = {s = conjThat ++ s.s ! Sub} ;
|
||||
-- EmbedQS qs = {s = qs.s ! QIndir} ;
|
||||
-- EmbedVP vp = {s = useInfVP False vp} ;
|
||||
|
||||
UseCl t p cl = {
|
||||
s = \\o => t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p ! o
|
||||
} ;
|
||||
UseQCl t p cl = {
|
||||
s = \\q => t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p ! q
|
||||
} ;
|
||||
-- UseRCl t p cl = {
|
||||
-- s = \\r => t.s ++ p.s ++ cl.s ! t.m ! t.t ! t.a ! p.p ! r ;
|
||||
-- c = cl.c
|
||||
-- } ;
|
||||
-- UseSlash t p cl = {
|
||||
-- s = \\o => t.s ++ p.s ++ cl.s ! t.m ! t.t ! t.a ! p.p ! o ;
|
||||
-- c2 = cl.c2
|
||||
-- } ;
|
||||
--
|
||||
-- AdvS a s = {s = \\o => a.s ++ s.s ! Inv} ;
|
||||
--
|
||||
-- RelS s r = {s = \\o => s.s ! o ++ "," ++ r.s ! gennum Neutr Sg} ; --- "welches"
|
||||
--
|
||||
--}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user