summaryrefslogtreecommitdiff
path: root/next-lib
diff options
context:
space:
mode:
authorbjorn <bjorn@bringert.net>2008-11-03 12:28:40 +0000
committerbjorn <bjorn@bringert.net>2008-11-03 12:28:40 +0000
commit759d648de9972072057fada49ede2281e772be30 (patch)
tree56886fd7ed1f30248d8d089357bc038aa72f4b81 /next-lib
parent0c1f5cf9f2ae21490af5c5ff3eddabf193c02578 (diff)
ParseEng: StrandRelSlash as variant of RelSlash.
Diffstat (limited to 'next-lib')
-rw-r--r--next-lib/src/parsing/ParseEng.gf17
1 files changed, 13 insertions, 4 deletions
diff --git a/next-lib/src/parsing/ParseEng.gf b/next-lib/src/parsing/ParseEng.gf
index e16a790d0..889aa0dc2 100644
--- a/next-lib/src/parsing/ParseEng.gf
+++ b/next-lib/src/parsing/ParseEng.gf
@@ -8,7 +8,7 @@ concrete ParseEng of ParseEngAbs =
NumeralEng,
SentenceEng - [UseCl, UseQCl, UseRCl],
QuestionEng,
- RelativeEng - [IdRP],
+ RelativeEng - [IdRP, RelSlash],
ConjunctionEng,
PhraseEng - [UttImpSg, UttImpPl],
TextX,
@@ -16,9 +16,9 @@ concrete ParseEng of ParseEngAbs =
IdiomEng,
ExtraEng - [
- -- Don't include the uncontracted clauses. Instead
- -- use them as variants of the contracted ones.
- UncNegCl, UncNegQCl, UncNegRCl, UncNegImpSg, UncNegImpPl
+ UncNegCl, UncNegQCl, UncNegRCl, UncNegImpSg, UncNegImpPl,
+ StrandRelSlash,
+ that_RP
],
LexiconEng [N3, distance_N3,
@@ -72,6 +72,15 @@ lin UttImpPl p i =
Neg => variants { PhraseEng.UttImpPl p i ; UncNegImpPl p i }
} ;
+-- Two different forms of relative clauses:
+-- Pied piping: "at which we are looking".
+-- Stranding: "that he looks at"
+-- EmptyRelSlash is not used here, since it would give
+-- a meta-variable for the RP.
+
+lin RelSlash rp slash = variants { RelativeEng.RelSlash rp slash; StrandRelSlash rp slash } ;
+
+
-- Allow both "who"/"which" and "that"
-- FIXME: allow both "who" and "which" for all genders
lin IdRP = variants { RelativeEng.IdRP; that_RP } ;