summaryrefslogtreecommitdiff
path: root/next-lib/src/german/RelativeGer.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-09-22 12:24:28 +0000
committeraarne <aarne@cs.chalmers.se>2008-09-22 12:24:28 +0000
commit766852a64c9816f073100ff720cf7bafab39c043 (patch)
tree8aedd62fb0d8b24d84f2640087b2e958c1ced043 /next-lib/src/german/RelativeGer.gf
parent69b96e87ee361b1f95b8de566ef98c3789c53705 (diff)
adapted German to 1.5
Diffstat (limited to 'next-lib/src/german/RelativeGer.gf')
-rw-r--r--next-lib/src/german/RelativeGer.gf48
1 files changed, 48 insertions, 0 deletions
diff --git a/next-lib/src/german/RelativeGer.gf b/next-lib/src/german/RelativeGer.gf
new file mode 100644
index 000000000..2605ed3a4
--- /dev/null
+++ b/next-lib/src/german/RelativeGer.gf
@@ -0,0 +1,48 @@
+concrete RelativeGer of Relative = CatGer ** open ResGer in {
+
+ flags optimize=all_subs ;
+
+ lin
+
+ RelCl cl = {
+ s = \\m,t,a,b,_ => "derart" ++ conjThat ++ cl.s ! m ! t ! a ! b ! Sub ;
+ c = Nom
+ } ;
+
+ RelVP rp vp = {
+ s = \\m,t,ant,b,gn =>
+ let
+ agr = case rp.a of {
+ RNoAg => agrP3 (numGenNum gn) ;
+ RAg a => a ** {g = Neutr}
+ } ;
+ cl = mkClause (rp.s ! gn ! Nom) agr vp
+ in
+ cl.s ! m ! t ! ant ! b ! Sub ;
+ c = Nom
+ } ;
+
+ RelSlash rp slash = {
+ s = \\m,t,a,p,gn =>
+ appPrep slash.c2 (rp.s ! gn) ++ slash.s ! m ! t ! a ! p ! Sub ;
+ c = slash.c2.c
+ } ;
+
+ FunRP p np rp = {
+ s = \\gn,c => np.s ! c ++ appPrep p (rp.s ! gn) ;
+ a = RAg {n = np.a.n ; p = np.a.p}
+ } ;
+
+ IdRP = {s = relPron ; a = RNoAg} ;
+
+ oper
+ relPron : GenNum => Case => Str = \\gn,c =>
+ case <gn,c> of {
+ <GSg Fem,Gen> => "deren" ;
+ <GSg g,Gen> => "dessen" ;
+ <GPl,Dat> => "denen" ;
+ <GPl,Gen> => "deren" ;
+ _ => artDef ! gn ! c
+ } ;
+
+}