ParseEng: StrandRelSlash as variant of RelSlash.

This commit is contained in:
bjorn
2008-11-03 12:28:40 +00:00
parent 830bb7e9b0
commit e2fb4aa24d

View File

@@ -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 } ;