forked from GitHub/gf-rgl
(Som) Split polar questions and wh-questions to separate types
This commit is contained in:
@@ -6,30 +6,31 @@ concrete QuestionSom of Question = CatSom ** open
|
||||
|
||||
lin
|
||||
-- : Cl -> QCl ;
|
||||
QuestCl = cl2qcl True;
|
||||
QuestCl = cl2qcl PolarQuestion True;
|
||||
|
||||
-- : IP -> VP -> QCl ;
|
||||
QuestVP ip vp = -- TODO: if we want to contract baa + subj. pronoun, change ResSom.predVP
|
||||
let cls : ClSlash = predVP ip vp ;
|
||||
baan : Str = case ip.contractSTM of {True => "aan" ; _ => "baa aan"} ;
|
||||
cl : ClSlash = cls ** {
|
||||
stm = modSTM "baa" cls.stm
|
||||
stm = modSTM "baa" baan cls.stm
|
||||
} ;
|
||||
in cl2qcl (notB ip.contractSTM) cl ;
|
||||
in cl2qcl PolarQuestion (notB ip.contractSTM) cl ;
|
||||
|
||||
-- : IP -> ClSlash -> QCl ; -- whom does John love
|
||||
QuestSlash ip cls =
|
||||
let clsIPFocus = cls ** {
|
||||
let baan : Str = case ip.contractSTM of {True => "aan" ; _ => "baa aan"} ;
|
||||
clsIPFocus = cls ** {
|
||||
subj = cls.subj ** { -- keep old subject pronoun,
|
||||
noun = ip.s ! Nom -- and place IP first.
|
||||
} ;
|
||||
obj2 = cls.obj2 ** { -- move old subject noun before object.
|
||||
s = cls.subj.noun ++ cls.obj2.s
|
||||
} ;
|
||||
stm = modSTM "baa" cls.stm
|
||||
stm = modSTM "baa" baan cls.stm
|
||||
} ;
|
||||
in cl2qclslash (notB ip.contractSTM) clsIPFocus ;
|
||||
|
||||
|
||||
-- : IAdv -> Cl -> QCl ; -- why does John walk
|
||||
QuestIAdv iadv cls =
|
||||
let clRaw : ClSlash = insertIAdv iadv cls ;
|
||||
@@ -40,17 +41,12 @@ concrete QuestionSom of Question = CatSom ** open
|
||||
<_,Pos> => case iadv.contractSTM of {
|
||||
True => [] ; _ => "baa"}
|
||||
++ sbj.pron ++ sbj.noun ;
|
||||
-- TODO how do negative questions work
|
||||
-- Information questions are not commonly used in negative forms. When they occur they have the same forms as negative declaratives with focus (7.4.1). There is however a strong tendency to use positive forms, for example by subordinating the clause under a verb with an inherently negative meaning:
|
||||
-- Maxaad u tegi weydey?
|
||||
-- what+FOC+you for go:INF failed
|
||||
-- 'Why didn't you go?' (lit. 'Why did you fail to go?')
|
||||
_ => case iadv.contractSTM of {
|
||||
True => [] ; _ => clRaw.stm ! Question ! p}
|
||||
True => [] ; _ => clRaw.stm ! WhQuestion ! p}
|
||||
++ sbj.pron ++ sbj.noun } ;
|
||||
subj = sbj ** {noun, pron = []} -- to force subject after baa
|
||||
} ;
|
||||
in cl2qcl True cl ; -- True because we handle STM placement in cl.stm
|
||||
in cl2qcl WhQuestion True cl ; -- True because we handle STM placement in cl.stm
|
||||
|
||||
-- : IComp -> NP -> QCl ; -- where is John?
|
||||
QuestIComp icomp np =
|
||||
|
||||
Reference in New Issue
Block a user