(May) make linrefs into opers in ResMay

This commit is contained in:
Inari Listenmaa
2023-02-24 12:46:59 +08:00
parent 87b6bf9f0a
commit 1ad71e10b1
2 changed files with 10 additions and 4 deletions

View File

@@ -122,10 +122,10 @@ concrete CatMay of Cat = CommonX - [IAdv] ** open ResMay, Prelude in {
PN = ResMay.PNoun ;
linref
CN = \cn -> cn.s ! NF Sg Bare ++ cn.heavyMod;
ClSlash = \cl -> cl.subj ++ cl.pred ! Root ! Pos ++ cl.c2.s;
RCl = \cl -> cl.subj ++ cl.pred ! P1 ! Pos;
Cl = \cl -> cl.subj ++ cl.pred ! Active ! Pos;
CN = linCN ;
ClSlash = linClSlash ;
RCl = linRCl ;
Cl = linCl ;
Det = linDet ;
}

View File

@@ -13,6 +13,7 @@ oper
CNoun : Type = Noun ** {
heavyMod : Str ; -- heavy stuff like relative clauses after determiner
} ;
linCN : CNoun -> Str = \cn -> cn.s ! NF Sg Bare ++ cn.heavyMod ;
PNoun : Type = Noun ;
@@ -320,14 +321,19 @@ oper
pred : VForm => Polarity => Str -- Cl may become relative clause, need to keep open VForm
} ;
linCl : Clause -> Str = \cl -> cl.subj ++ cl.pred ! Active ! Pos ;
RClause : Type = {
subj : Str ;
pred : Person => Polarity => Str
} ;
linRCl : RClause -> Str = \cl -> cl.subj ++ cl.pred ! P1 ! Pos ;
RS : Type = {s : Person => Str} ;
ClSlash : Type = Clause ** {c2 : Preposition} ;
linClSlash : ClSlash -> Str = \cl -> cl.subj ++ cl.pred ! Root ! Pos ++ cl.c2.s ;
Sentence : Type = {s : Str} ;