1
0
forked from GitHub/gf-rgl

(zul) miscellaneous fixes

This commit is contained in:
Laurette Marais
2022-07-20 12:10:54 +02:00
parent 1b9c4613bf
commit f634af931e
4 changed files with 19 additions and 10 deletions

View File

@@ -160,12 +160,19 @@ concrete ExtraExtZul of ExtraExt =
PossLocNP locn np = {
empty = np.empty ;
s = \\n,nform => locn.s ;
mod = \\num => poss_concord!(C17)!Sg!np.i ++BIND++ (poss_NP np) ;
s = \\n,nform => locn.s ++ poss_concord!(C17)!n!np.i ++BIND++ (poss_NP np);
-- mod = \\num => poss_concord!(C17)!Sg!np.i ++BIND++ (poss_NP np) ;
c = C17 ;
emph = False
} ;
PossNPLoc cn np = {
empty = np.empty ;
s = \\n,nform => cn.s!n!nform ++ poss_concord!cn.c!n!RC ++BIND++"s"++BIND++ (loc_NP np);
c = cn.c ;
emph = False
} ;
InstrNPAdv np =
let
pref = instrPref!(initNP np.isPron np.agr)

View File

@@ -77,6 +77,7 @@ oper
} ;
mkPN = overload {
mkPN : (John : Str) -> N = \n -> lin N (regNoun n C1a_2a) ;
mkPN : (John : Str) -> ClassGender -> N = \n,c -> lin N (regNoun n c) ; -- "thing" nouns
mkPN : (nyaka,onyakeni,eminyakeni : Str) -> ClassGender -> N = \n,ls,lp,c -> lin N (semiRegNoun n ls lp c) ;
mkPN : (iso,amehlo,esweni,emehlweni : Str) -> ClassGender -> N = \ns,np,ls,lp,c -> lin N (mkNoun ns np ls lp c) ;

View File

@@ -960,7 +960,7 @@ resource ResZul = open Prelude,Predef,ParamX in {
_+"wo" => (init root)+"eni" ;
_+"o" => (init root)+"weni" ;
_+"u" => (init root)+"wini" ;
_ => (init root)+"ini"
_ => root+"ini"
} ;
drop_init_vowel : Str -> Str = \s ->
@@ -1154,16 +1154,16 @@ resource ResZul = open Prelude,Predef,ParamX in {
loc_NP : {
empty : Str ;
s : NForm => Str ;
mod : Str ;
dem : Str ;
predet_pre : Str ;
predet_post : Str ;
-- mod : Str ;
-- dem : Str ;
-- predet_pre : Str ;
-- predet_post : Str ;
agr : Agr ;
proDrop : Bool ;
isPron : Bool ;
-- reqLocS : Bool ;
qdef : QuantDef
} -> Str = \np -> np.s!NLoc ++ np.dem ++ np.mod ++ np.predet_pre ++ np.predet_post ;
-- qdef : QuantDef
} -> Str = \np -> np.s!NLoc ;
poss_NP : {
empty : Str ;
@@ -1325,7 +1325,7 @@ resource ResZul = open Prelude,Predef,ParamX in {
-- ADJECTIVE ANTECEDENT AGREEMENT MORPHEME --
relAdjPrefLookup : Agr => Str =
relAdjPrefLookup : Agr => Str =
table {
Third C1_2 Sg => "m" ;
Third C1_2 Pl => "" ;

View File

@@ -28,6 +28,7 @@ abstract ExtraExt =
-- RelV : CN -> V -> Temp -> Pol -> CN ; -- lights that flash
PossLocNP : LocN -> NP -> CN ;
PossNPLoc : CN -> NP -> CN ; -- zasepulazini
InstrNPAdv : NP -> Adv ; -- ngokuhlinzwa
InstrAdvNPAdv : Adv -> NP -> Adv ; -- cishe ngehora