diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-09-22 11:49:15 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-09-22 11:49:15 +0000 |
| commit | 98665df78b8018af30051cb4a9a31f845e0ba19d (patch) | |
| tree | 67ba30b09e2b9590a00a4b193bf7611caa935af8 /next-lib/src/finnish/RelativeFin.gf | |
| parent | 4862018f140a1bdcc7961d445ed9aa92facd742f (diff) | |
moved lib/next-resource to next-lib/src, to enable linking with next-lib as value of GF_LIB_PATH
Diffstat (limited to 'next-lib/src/finnish/RelativeFin.gf')
| -rw-r--r-- | next-lib/src/finnish/RelativeFin.gf | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/next-lib/src/finnish/RelativeFin.gf b/next-lib/src/finnish/RelativeFin.gf new file mode 100644 index 000000000..9aab4e869 --- /dev/null +++ b/next-lib/src/finnish/RelativeFin.gf @@ -0,0 +1,50 @@ +concrete RelativeFin of Relative = CatFin ** open Prelude, ResFin, MorphoFin in { + + flags optimize=all_subs ; + + lin + + RelCl cl = { + s = \\t,a,p,_ => "siten" ++ "että" ++ cl.s ! t ! a ! p ! SDecl ; + ---- sellainen + c = NPCase Nom + } ; + + RelVP rp vp = { + s = \\t,ant,b,ag => + let + agr = case rp.a of { + RNoAg => ag ; + RAg a => a + } ; + cl = mkClause + (subjForm {s = rp.s ! agr.n ; + a = agr ; isPron = False} vp.sc) agr vp + in + cl.s ! t ! ant ! b ! SDecl ; + c = NPCase Nom + } ; + + RelSlash rp slash = { + s = \\t,a,p,ag => + let + cls = slash.s ! t ! a ! p ; + who = appCompl True p slash.c2 (rp2np ag.n rp) + in + who ++ cls ; + c = slash.c2.c + } ; + + FunRP p np rp = { + s = \\n,c => appCompl True Pos p (rp2np n rp) ++ np.s ! c ; --- is c OK? + a = RAg np.a + } ; + + IdRP = { + s = \\n,c => relPron ! n ! npform2case n c ; + a = RNoAg + } ; + + + +} |
