mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
ParseEng: StrandRelSlash as variant of RelSlash.
This commit is contained in:
@@ -8,7 +8,7 @@ concrete ParseEng of ParseEngAbs =
|
|||||||
NumeralEng,
|
NumeralEng,
|
||||||
SentenceEng - [UseCl, UseQCl, UseRCl],
|
SentenceEng - [UseCl, UseQCl, UseRCl],
|
||||||
QuestionEng,
|
QuestionEng,
|
||||||
RelativeEng - [IdRP],
|
RelativeEng - [IdRP, RelSlash],
|
||||||
ConjunctionEng,
|
ConjunctionEng,
|
||||||
PhraseEng - [UttImpSg, UttImpPl],
|
PhraseEng - [UttImpSg, UttImpPl],
|
||||||
TextX,
|
TextX,
|
||||||
@@ -16,9 +16,9 @@ concrete ParseEng of ParseEngAbs =
|
|||||||
IdiomEng,
|
IdiomEng,
|
||||||
|
|
||||||
ExtraEng - [
|
ExtraEng - [
|
||||||
-- Don't include the uncontracted clauses. Instead
|
UncNegCl, UncNegQCl, UncNegRCl, UncNegImpSg, UncNegImpPl,
|
||||||
-- use them as variants of the contracted ones.
|
StrandRelSlash,
|
||||||
UncNegCl, UncNegQCl, UncNegRCl, UncNegImpSg, UncNegImpPl
|
that_RP
|
||||||
],
|
],
|
||||||
|
|
||||||
LexiconEng [N3, distance_N3,
|
LexiconEng [N3, distance_N3,
|
||||||
@@ -72,6 +72,15 @@ lin UttImpPl p i =
|
|||||||
Neg => variants { PhraseEng.UttImpPl p i ; UncNegImpPl 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"
|
-- Allow both "who"/"which" and "that"
|
||||||
-- FIXME: allow both "who" and "which" for all genders
|
-- FIXME: allow both "who" and "which" for all genders
|
||||||
lin IdRP = variants { RelativeEng.IdRP; that_RP } ;
|
lin IdRP = variants { RelativeEng.IdRP; that_RP } ;
|
||||||
|
|||||||
Reference in New Issue
Block a user