summaryrefslogtreecommitdiff
path: root/old-lib/resource/finnish/RelativeFin.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
committeraarne <aarne@chalmers.se>2009-06-22 15:39:08 +0000
commite89fdae2fa1626348d8025824a7469252fa85e42 (patch)
treec7d46bbd0494043b4bd6f917a25a7687517d0547 /old-lib/resource/finnish/RelativeFin.gf
parent3049b59b35b25381a7c6787444165c200d66e08b (diff)
next-lib renamed to lib, lib to old-lib
Diffstat (limited to 'old-lib/resource/finnish/RelativeFin.gf')
-rw-r--r--old-lib/resource/finnish/RelativeFin.gf50
1 files changed, 50 insertions, 0 deletions
diff --git a/old-lib/resource/finnish/RelativeFin.gf b/old-lib/resource/finnish/RelativeFin.gf
new file mode 100644
index 000000000..9aab4e869
--- /dev/null
+++ b/old-lib/resource/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
+ } ;
+
+
+
+}