mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-27 03:46:29 -06:00
Pes: fixed have_V2 inflection and ra ; fixed SOV in ClSlash
This commit is contained in:
+16
-8
@@ -299,10 +299,22 @@ oper
|
||||
--- Clauses
|
||||
---------------------------
|
||||
Clause : Type = {s : VPHTense => Polarity => Order => Str} ;
|
||||
mkClause : NP -> VPH -> Clause = \np,vp -> {
|
||||
s = \\vt,b,ord =>
|
||||
SlClause : Type = {quest : Order => Str ; subj : Str ; vp : VPHTense => Polarity => Order => Str} ;
|
||||
|
||||
---- AR 18/9/2017 intermediate SClause to preserve SOV in e.g. QuestionPes.QuestSlash
|
||||
|
||||
mkClause : NP -> VPH -> Clause = \np,vp ->
|
||||
let cls = mkSlClause np vp
|
||||
in {s = \\vt,b,ord => cls.quest ! ord ++ cls.subj ++ cls.vp ! vt ! b ! ord} ;
|
||||
|
||||
mkSlClause : NP -> VPH -> SlClause = \np,vp -> {
|
||||
quest = table
|
||||
{ ODir => [];
|
||||
OQuest => "آیا" } ;
|
||||
|
||||
subj = np.s ! NPC bEzafa ;
|
||||
vp = \\vt,b,ord =>
|
||||
let
|
||||
subj = np.s ! NPC bEzafa;
|
||||
agr = np.a ;
|
||||
n = (fromAgr agr).n;
|
||||
p = (fromAgr agr).p;
|
||||
@@ -336,16 +348,12 @@ mkClause : NP -> VPH -> Clause = \np,vp -> {
|
||||
};
|
||||
|
||||
|
||||
quest =
|
||||
case ord of
|
||||
{ ODir => [];
|
||||
OQuest => "آیا" };
|
||||
|
||||
|
||||
|
||||
in
|
||||
|
||||
quest ++ subj ++ vp.ad ++ vp.comp ! np.a ++ vp.obj.s ++ vps.inf ++ vp.vComp ! np.a ++ vp.embComp
|
||||
vp.ad ++ vp.comp ! np.a ++ vp.obj.s ++ vps.inf ++ vp.vComp ! np.a ++ vp.embComp
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user