diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-09-22 12:24:28 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-09-22 12:24:28 +0000 |
| commit | 766852a64c9816f073100ff720cf7bafab39c043 (patch) | |
| tree | 8aedd62fb0d8b24d84f2640087b2e958c1ced043 /next-lib/src/german/SentenceGer.gf | |
| parent | 69b96e87ee361b1f95b8de566ef98c3789c53705 (diff) | |
adapted German to 1.5
Diffstat (limited to 'next-lib/src/german/SentenceGer.gf')
| -rw-r--r-- | next-lib/src/german/SentenceGer.gf | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/next-lib/src/german/SentenceGer.gf b/next-lib/src/german/SentenceGer.gf new file mode 100644 index 000000000..b79938b1c --- /dev/null +++ b/next-lib/src/german/SentenceGer.gf @@ -0,0 +1,67 @@ +concrete SentenceGer of Sentence = CatGer ** open ResGer, Prelude in { + + flags optimize=all_subs ; + + lin + + PredVP np vp = mkClause (np.s ! Nom) 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.m ! t.t ! t.a ! p.p ! o + } ; + UseQCl t p cl = { + s = \\q => t.s ++ p.s ++ cl.s ! t.m ! 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" + +} |
