forked from GitHub/gf-core
bits of sentence syntax in Slovenian
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
concrete CatSlv of Cat = CommonX ** open ResSlv in {
|
||||
concrete CatSlv of Cat = CommonX ** open ResSlv, (P=ParamX) in {
|
||||
|
||||
lincat
|
||||
-- Sentence
|
||||
Cl = {s : P.Tense => P.Anteriority => P.Polarity => Str} ;
|
||||
|
||||
-- Verb
|
||||
VP = ResSlv.VP ;
|
||||
|
||||
|
||||
@@ -6,8 +6,9 @@ concrete GrammarSlv of Grammar =
|
||||
AdjectiveSlv,
|
||||
{- AdverbEng,
|
||||
NumeralEng,
|
||||
SentenceEng,
|
||||
QuestionEng,
|
||||
-}
|
||||
SentenceSlv,
|
||||
{- QuestionEng,
|
||||
RelativeEng,
|
||||
ConjunctionEng,-}
|
||||
PhraseSlv,
|
||||
|
||||
@@ -38,4 +38,14 @@ oper
|
||||
}
|
||||
} ;
|
||||
|
||||
Clause : Type = {
|
||||
s : Tense => Anteriority => Polarity => Str
|
||||
} ;
|
||||
|
||||
mkClause : Str -> Agr -> VP -> Clause =
|
||||
\subj,agr,vp -> {
|
||||
s = \\t,a,p =>
|
||||
subj ++ vp.s ! t ! agr
|
||||
} ;
|
||||
|
||||
}
|
||||
|
||||
11
lib/src/slovenian/SentenceSlv.gf
Normal file
11
lib/src/slovenian/SentenceSlv.gf
Normal file
@@ -0,0 +1,11 @@
|
||||
concrete SentenceSlv of Sentence = CatSlv ** open Prelude, ResSlv in {
|
||||
|
||||
lin
|
||||
PredVP np vp = mkClause (np.s ! Nom) np.a vp ;
|
||||
|
||||
UseCl t p cl = {
|
||||
s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p
|
||||
} ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user