mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-29 04:46:30 -06:00
(Pes) Cleanup, refactoring, add comments
This commit is contained in:
+11
-11
@@ -4,20 +4,20 @@ concrete VerbPes of Verb = CatPes ** open ResPes,Prelude in {
|
||||
flags optimize=all_subs ;
|
||||
|
||||
lin
|
||||
UseV v = predV v ;
|
||||
SlashV2a v = predV v ** {c2 = v.c2} ; --{s = v.c2.s ; ra = v.c2.ra ; c = VTrans}} ;
|
||||
Slash2V3 v np = {c2 = {s = [] ; ra = v.c3}} **
|
||||
insertObj (np.s ! Bare ++ v.c2) (predV v) ; -- ** ; c = VTrans}}) ;
|
||||
UseV v = predV v ;
|
||||
SlashV2a v = v ** predV v;
|
||||
Slash2V3 v np = {c2 = v.c3} **
|
||||
complSlash (predV v ** {c2 = v.c2}) np ;
|
||||
|
||||
Slash3V3 v np = {c2 = {s = [] ; ra = v.c2}} **
|
||||
insertObj (v.c3 ++ np.s ! Bare) (predV v) ; -- ** ; c = VTrans}}) ;
|
||||
Slash3V3 v np = {c2 = v.c2} **
|
||||
complSlash (predV v ** {c2 = v.c3}) np ;
|
||||
|
||||
ComplSlash vp np = insertObjPre np vp ;
|
||||
ComplSlash = complSlash ;
|
||||
|
||||
ComplVV v vp = insertVV (infVV v.isAux vp) (predV v) ;
|
||||
ComplVS v s = embComp (conjThat ++ s.s) (predV v) ;
|
||||
ComplVQ v q = embComp (conjThat ++ q.s ! QIndir) (predV v) ;
|
||||
ComplVA v ap = insertComp (\\_ => ap.s ! Bare) (predV v) ; -- check form of adjective
|
||||
ComplVA v ap = insertObj (ap.s ! Bare) (predV v) ; -- check form of adjective
|
||||
SlashV2V v vp = insertVV (infVV v.isAux vp) (predV v) **{c2 = {s = v.c1 ; ra = []}} ;
|
||||
|
||||
SlashV2S v s = v ** embComp (conjThat ++ s.s) (predV v) ;
|
||||
@@ -28,8 +28,8 @@ concrete VerbPes of Verb = CatPes ** open ResPes,Prelude in {
|
||||
|
||||
SlashV2VNP v2v np vps =
|
||||
let vvVP : VPH = insertVV (infVV v2v.isAux vps) (predV v2v) ;
|
||||
vvVPS = vvVP ** {c2={s=v2v.c1 ; ra=v2v.c2}} ;
|
||||
in insertObjPre np vvVPS ** {c2 = vps.c2} ;
|
||||
vvVPS = vvVP ** {c2={s=v2v.c1 ; ra=v2v.c2}} ; -- TODO find out if it's a general rule; only one V2V in the lexicon /IL
|
||||
in complSlash vvVPS np ** {c2 = vps.c2} ;
|
||||
|
||||
|
||||
UseComp comp = insertComp comp.s (predAux auxBe) ;
|
||||
@@ -39,7 +39,7 @@ concrete VerbPes of Verb = CatPes ** open ResPes,Prelude in {
|
||||
AdVVP adv vp = insertAdV adv.s vp ;
|
||||
ReflVP v = insertCompPre reflPron v ;
|
||||
PassV2 v = predV v ; -- need to be fixed
|
||||
CompAP ap ={s = \\_ => ap.s ! Bare} ; -- check form of adjective
|
||||
CompAP ap = {s = \\_ => ap.s ! Bare} ; -- check form of adjective
|
||||
CompAdv adv = {s = \\_ => adv.s } ;
|
||||
|
||||
-- see https://sites.la.utexas.edu/persian_online_resources/nouns/noun-in-a-predicative-position/
|
||||
|
||||
Reference in New Issue
Block a user