mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
interjections, MassNP and simple VP phrases in Slovenian
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
concrete CatSlv of Cat = CommonX ** open ResSlv in {
|
||||
|
||||
lincat
|
||||
-- Verb
|
||||
VP = ResSlv.VP ;
|
||||
|
||||
-- Adjective
|
||||
AP = {s : Species => Gender => Case => Number => Str} ;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
concrete GrammarSlv of Grammar =
|
||||
NounSlv,
|
||||
-- VerbEng,
|
||||
VerbSlv,
|
||||
AdjectiveSlv,
|
||||
{- AdverbEng,
|
||||
NumeralEng,
|
||||
|
||||
@@ -25,6 +25,11 @@ concrete NounSlv of Noun = CatSlv ** open ResSlv in {
|
||||
spec = Indef
|
||||
} ;
|
||||
|
||||
MassNP n = {
|
||||
s = \\c => n.s ! Indef ! c ! Sg ;
|
||||
a = {g=n.g; n=Sg; p=P3}
|
||||
} ;
|
||||
|
||||
UseN n = {s = \\_ => n.s; g = n.g} ;
|
||||
|
||||
AdjCN ap cn = {
|
||||
|
||||
@@ -286,4 +286,8 @@ oper
|
||||
} ;
|
||||
a = {g=g; n=n; p=p}
|
||||
} ;
|
||||
|
||||
mkInterj : Str -> Interj =
|
||||
\s -> lin Interj {s=s} ;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
resource ResSlv = {
|
||||
resource ResSlv = open ParamX in {
|
||||
|
||||
param
|
||||
Case = Nom | Gen | Dat | Acc | Loc | Instr;
|
||||
@@ -27,4 +27,15 @@ param
|
||||
oper
|
||||
Agr = {g : Gender; n : Number; p : Person} ;
|
||||
|
||||
VP = {s : Tense => Agr => Str} ;
|
||||
|
||||
predV : (VForm => Str) -> VP =
|
||||
\v -> { s = table {
|
||||
Pres => \\a => v ! VPres a.n a.p ;
|
||||
Past => \\a => "biti" ++ v ! VPastPart a.g a.n ;
|
||||
Fut => \\a => "biti" ++ v ! VPastPart a.g a.n ;
|
||||
Cond => \\a => "bi" ++ v ! VPastPart a.g a.n
|
||||
}
|
||||
} ;
|
||||
|
||||
}
|
||||
|
||||
6
lib/src/slovenian/VerbSlv.gf
Normal file
6
lib/src/slovenian/VerbSlv.gf
Normal file
@@ -0,0 +1,6 @@
|
||||
concrete VerbSlv of Verb = CatSlv ** open ResSlv, Prelude in {
|
||||
|
||||
lin
|
||||
UseV v = predV v.s ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user