diff options
| author | aarne <aarne@chalmers.se> | 2009-12-09 09:47:16 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2009-12-09 09:47:16 +0000 |
| commit | c8ceed08efcc0bdc1fcbd89bce643d9f52f0991b (patch) | |
| tree | 5f0b314341c129eba1bc67b8b887fb8a4486fad8 /deprecated/old-lib/resource/scandinavian/RelativeScand.gf | |
| parent | 101df06f6c8380328d4266adadac3ab6d1bac0b3 (diff) | |
moving a few things to deprecated
Diffstat (limited to 'deprecated/old-lib/resource/scandinavian/RelativeScand.gf')
| -rw-r--r-- | deprecated/old-lib/resource/scandinavian/RelativeScand.gf | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/deprecated/old-lib/resource/scandinavian/RelativeScand.gf b/deprecated/old-lib/resource/scandinavian/RelativeScand.gf new file mode 100644 index 000000000..c5c0abc17 --- /dev/null +++ b/deprecated/old-lib/resource/scandinavian/RelativeScand.gf @@ -0,0 +1,52 @@ +incomplete concrete RelativeScand of Relative = + CatScand ** open CommonScand, ResScand, Prelude in { + + flags optimize=all_subs ; + + lin + + RelCl cl = { + s = \\t,a,p,ag => pronSuch ! ag.gn ++ conjThat ++ cl.s ! t ! a ! p ! Sub ; + c = NPAcc + } ; + + RelVP rp vp = { + s = \\t,ant,b,ag => + let + agr = case rp.a of { + RNoAg => ag ; + RAg a => a + } ; + cl = mkClause (rp.s ! ag.gn ! RNom) agr vp + in + cl.s ! t ! ant ! b ! Sub ; + c = NPNom + } ; + +-- This rule uses pied piping ("huset i vilket hon bor") +-- Preposition stranding ("huset som hon bor i") +-- and the empty relative ("huset hon bor i") are defined in $ExtraScand$. + + RelSlash rp slash = { + s = \\t,a,p,ag => + let + agr = case rp.a of { + RNoAg => ag ; + RAg agg => agg + } + in + slash.c2.s ++ rp.s ! ag.gn ! RPrep slash.c2.hasPrep ++ + slash.s ! t ! a ! p ! Sub ++ slash.n3 ! agr ; + c = NPAcc + } ; + +--- The case here could be genitive. + + FunRP p np rp = { + s = \\gn,c => np.s ! nominative ++ p.s ++ rp.s ! gn ! RPrep True ; + a = RAg np.a + } ; + + IdRP = {s = relPron ; a = RNoAg} ; + +} |
