add UttAdV in more languages

This commit is contained in:
Krasimir Angelov
2026-08-24 09:59:08 +02:00
parent 66da1a49da
commit a223b3803c
12 changed files with 24 additions and 6 deletions
+3 -1
View File
@@ -4,7 +4,7 @@ concrete ExtendAra of Extend =
CatAra ** ExtendFunctor - [
GenNP, ApposNP, ICompAP, DetNPMasc, DetNPFem,
EmptyRelSlash, PredAPVP,
ComplDirectVS, ComplDirectVQ, -- because of Utt
ComplDirectVS, ComplDirectVQ, UttAdV, -- because of Utt
VPS, MkVPS, PredVPS, BaseVPS, ConsVPS, ConjVPS,
EmbedSSlash, AdjAsNP, GerundNP,
PassVPSlash, ---- bogus implementation, see below
@@ -31,6 +31,8 @@ lin
-- : NP -> NP -> NP
ApposNP np1 np2 = np2 ** {s = \\c => np1.s ! c ++ np2.s ! c} ;
UttAdV adv = {s = \\_ => adv.s} ;
-- : AP -> IComp ; -- "how old"
ICompAP ap = {s = \\gn => "كَمْ" ++ ap.s ! NoHum ! gn.g ! gn.n ! Indef ! Acc} ;
+2 -1
View File
@@ -8,6 +8,8 @@ lin
AdAdV a adv = {s = a.s ++ adv.s; p = adv.p} ;
UttAdV adv = {s = adv.s} ;
EmptyRelSlash slash = {
s = \\t,a,p,agr => linPrep slash.c2 ++ whichRP ! agr.gn ++ slash.s ! agr ! t ! a ! p ! Main
} ;
@@ -319,4 +321,3 @@ lin ProDrop pro = pro ;
lin TPastSimple = {s = []} ** {t = VPastSimple} ; --# notpresent
}
+1 -1
View File
@@ -101,7 +101,7 @@ lin
InOrderToVP = variants {} ; -- VP -> Adv ; -- (in order) to publish the document
ApposNP = variants {} ; -- NP -> NP -> NP ; -- Mr Macron, the president of France,
AdAdV = variants {} ; -- AdA -> AdV -> AdV ; -- almost always
UttAdV = variants {} ; -- AdV -> Utt ; -- always(!)
UttAdV adv = {s = adv.s} ; -- AdV -> Utt ; -- always(!)
PositAdVAdj = variants {} ; -- A -> AdV ; -- (that she) positively (sleeps)
CompS = variants {} ; -- S -> Comp ; -- (the fact is) that she sleeps
CompQS = variants {} ; -- QS -> Comp ; -- (the question is) who sleeps
+2
View File
@@ -17,6 +17,8 @@ lincat
X = {s : Str} ;
lin
UttAdV adv = {s = adv.s} ;
iFem_Pron = mkPron "eg" "meg" "mær" "mín" Masc Sg P1 ;
youFem_Pron = mkPron "tú" "teg" "tær" "tín" Masc Sg P2 ;
weFem_Pron = mkPron "vit" "okkum" "okkum" "okkara" Masc Pl P1 ;
+2
View File
@@ -6,6 +6,8 @@ concrete ExtendKor of Extend = CatKor
** open Prelude, ResKor, NounKor, Coordination, TenseX in {
lin
UttAdV adv = {s = adv.s} ;
-- : NP -> NP -> NP
ApposNP np1 np2 = np1 ** {s = \\nf => np1.s ! nf ++ np2.s ! nf} ;
+1 -1
View File
@@ -221,7 +221,7 @@ concrete ExtendLat of Extend = CatLat ** open ResLat in {
-- ApposNP : NP -> NP -> NP ; -- Mr Macron, the president of France,
-- AdAdV : AdA -> AdV -> AdV ; -- almost always
-- UttAdV : AdV -> Utt ; -- always(!)
UttAdV adv = {s = adv.s} ;
-- PositAdVAdj : A -> AdV ; -- (that she) positively (sleeps)
-- CompS : S -> Comp ; -- (the fact is) that she sleeps
+2
View File
@@ -14,6 +14,8 @@ lincat
lin
GenModNP num np cn = DetCN (DetQuant DefArt num) (PossNP cn np) ;
UttAdV adv = {s = adv.s} ;
EmptyRelSlash slash = RelSlash IdRP slash ;
CompoundN n1 n2 =
+2 -1
View File
@@ -2,6 +2,8 @@
concrete ExtendSlv of Extend = CatSlv ** open ResSlv, ParadigmsSlv, GrammarSlv in {
lin
UttAdV adv = {s = adv.s} ;
iFem_Pron = mkPron "jàz" "méne" "méne" "méni" "méni" ("menój"|"máno")
"mój" "mòjega" "mòjemu" ("mòj"|"mòjega") "mòjem" "mòjim"
"mòja" "mòjih" "mòjima" "mòja" "mòjih" "mòjima"
@@ -60,4 +62,3 @@ lin
TPastSimple = TPast ;
}
+3
View File
@@ -29,6 +29,9 @@ concrete ExtendTam of Extend = CatTam
]
with (Grammar=GrammarTam) -}
** open Prelude, Coordination, ResTam, NounTam in {
lin
UttAdV adv = {s = adv.s} ;
-- lincat
-- VPS, VPI = SS ;
-- ListVPS, ListVPI = ListX ;
+2
View File
@@ -13,6 +13,8 @@ concrete ExtendTur of Extend = CatTur ** open ResTur, SuffixTur, Predef in {
UttVPShort vp = {s = vp.s ! Perf ! VInf Pos} ;
UttAdV adv = {s = adv.s} ;
TPastSimple = {s = []} ** {t = Past} ; --# notpresent
PositAdVAdj a = {s = a.s ! Sg ! Nom} ;
+2 -1
View File
@@ -2,6 +2,8 @@
concrete ExtendUkr of Extend = CatUkr ** open ResUkr, ParadigmsUkr in {
lin
UttAdV adv = {s = adv.s} ;
iFem_Pron = mkPron "я" "мене" "мені" "мене" "мені" "мною" Fem Sg P1 ;
youFem_Pron = mkPron "ти" "тeбе" "тобі" "мене" "тобі" "тобою" Fem Sg P2 ;
weFem_Pron = mkPron "ми" "нас" "нам" "нас" "наc" "нами" Fem Pl P1 ;
@@ -12,4 +14,3 @@ lin
youPolPlFem_Pron = mkPron "ви" "вас" "вам" "вас" "вас" "вами" Fem Pl P2 ;
}
+2
View File
@@ -38,6 +38,8 @@ concrete ExtendZul of Extend =
proDrop = True
} ;
UttAdV adv = {s = adv.s} ;
-- GenNP np = {s = \\_,_ => np.s ! npGen ; sp = \\_,_,_,_ => np.s ! npGen ; isDef = True} ;
-- GenIP ip = {s = \\_ => ip.s ! NCase Gen} ;