mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
Synchronize ordinals with master
This commit is contained in:
@@ -14,7 +14,8 @@ concrete GrammarAra of Grammar =
|
|||||||
TextX - [Utt],
|
TextX - [Utt],
|
||||||
StructuralAra,
|
StructuralAra,
|
||||||
IdiomAra,
|
IdiomAra,
|
||||||
TenseX - [Utt]
|
TenseX - [Utt],
|
||||||
|
NamesAra
|
||||||
** {
|
** {
|
||||||
|
|
||||||
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
flags startcat = Phr ; unlexer = text ; lexer = text ;
|
||||||
|
|||||||
@@ -72,13 +72,12 @@ lincat
|
|||||||
Det, DAP = {
|
Det, DAP = {
|
||||||
s : DetTable ;
|
s : DetTable ;
|
||||||
type : DetType ; -- main purpose is to avoid emptiness of articles, but can be reused later for something else
|
type : DetType ; -- main purpose is to avoid emptiness of articles, but can be reused later for something else
|
||||||
g : Gender ;
|
|
||||||
c : Case ;
|
c : Case ;
|
||||||
size : NumSize
|
size : NumSize
|
||||||
} ;
|
} ;
|
||||||
Predet = ResRus.Adjective ** {size : NumSize} ;
|
Predet = ResRus.Adjective ** {size : NumSize} ;
|
||||||
IQuant = ResRus.Adjective ** {g: Gender; c: Case} ;
|
IQuant = ResRus.Adjective ** {g: Gender; c: Case} ;
|
||||||
Quant = ResRus.Adjective ** {g: Gender; c: Case; type: DetType} ;
|
Quant = ResRus.Adjective ** {c: Case; type: DetType} ;
|
||||||
Numeral = NumeralForms ;
|
Numeral = NumeralForms ;
|
||||||
Num = NumDet ;
|
Num = NumDet ;
|
||||||
Card = NumDet ;
|
Card = NumDet ;
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ concrete ConjunctionRus of Conjunction =
|
|||||||
preferShort : ShortFormPreference
|
preferShort : ShortFormPreference
|
||||||
} ;
|
} ;
|
||||||
[DAP] = {s1,s2 : DetTable ;
|
[DAP] = {s1,s2 : DetTable ;
|
||||||
g : Gender ;
|
|
||||||
c : Case ;
|
c : Case ;
|
||||||
size : NumSize
|
size : NumSize
|
||||||
} ;
|
} ;
|
||||||
@@ -67,7 +66,6 @@ concrete ConjunctionRus of Conjunction =
|
|||||||
|
|
||||||
-- : DAP -> DAP -> ListDAP ; --
|
-- : DAP -> DAP -> ListDAP ; --
|
||||||
BaseDAP x y = twoTable3 Gender Animacy Case x y ** {
|
BaseDAP x y = twoTable3 Gender Animacy Case x y ** {
|
||||||
g = conjGender x.g y.g ;
|
|
||||||
c = y.c ;
|
c = y.c ;
|
||||||
size = conjSize x.size y.size ; -- different genders -> plural?
|
size = conjSize x.size y.size ; -- different genders -> plural?
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ incomplete concrete DocumentationRusFunctor of Documentation = CatRus ** open
|
|||||||
Terminology, -- the interface
|
Terminology, -- the interface
|
||||||
ResRus,
|
ResRus,
|
||||||
ParadigmsRus,
|
ParadigmsRus,
|
||||||
(G = GrammarRus),
|
|
||||||
(S = SyntaxRus),
|
|
||||||
(ST = StructuralRus),
|
|
||||||
(L = LexiconRus),
|
|
||||||
Prelude,
|
Prelude,
|
||||||
HTML
|
HTML
|
||||||
in {
|
in {
|
||||||
@@ -151,85 +147,22 @@ lin
|
|||||||
})
|
})
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionV v = {
|
InflectionV, InflectionV2, InflectionV3,
|
||||||
|
InflectionV2V, InflectionV2S, InflectionV2Q,
|
||||||
|
InflectionV2A, InflectionVS, InflectionVQ,
|
||||||
|
InflectionVA = \v -> {
|
||||||
t = "гл" ;
|
t = "гл" ;
|
||||||
s1 = heading1 (heading verb_Category) ++
|
s1 = heading1 (heading verb_Category) ;
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v)) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionV2 v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v S.something_NP)) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionV3 v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v S.something_NP S.something_NP)) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionV2V v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v S.we_NP (S.mkVP (L.sleep_V)))) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionV2S v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v S.we_NP (lin S {s : Mood=>Str = \\m=>"..."}))) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionV2Q v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v S.we_NP (lin QS {s: QForm=>Str = \\m=>"..."}))) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionV2A v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v S.we_NP L.beautiful_A)) ;
|
|
||||||
s2 = inflVerb v
|
s2 = inflVerb v
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionVV vv = {
|
InflectionVV vv = {
|
||||||
t = "гл" ;
|
t = "гл" ;
|
||||||
s1 = heading1 (heading verb_Category) ++
|
s1 = heading1 (heading verb_Category) ;
|
||||||
paragraph (verbExample (S.mkCl S.she_NP vv (S.mkVP (L.sleep_V)))) ;
|
|
||||||
s2 = inflVerb vv.v
|
s2 = inflVerb vv.v
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionVS v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v (lin S {s : Mood=>Str = \\m=>"..."}))) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionVQ v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v (lin QS {s : Mood=>Str = \\m=>"..."}))) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
InflectionVA v = {
|
|
||||||
t = "гл" ;
|
|
||||||
s1 = heading1 (heading verb_Category) ++
|
|
||||||
paragraph (verbExample (S.mkCl S.she_NP v L.beautiful_A)) ;
|
|
||||||
s2 = inflVerb v
|
|
||||||
} ;
|
|
||||||
|
|
||||||
oper
|
oper
|
||||||
verbExample : CatRus.Cl -> Str = \cl -> (S.mkUtt cl).s ;
|
|
||||||
{-
|
{-
|
||||||
-} --# notpresent
|
-} --# notpresent
|
||||||
inflVerb : CatRus.V -> Str = \v ->
|
inflVerb : CatRus.V -> Str = \v ->
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ lin
|
|||||||
} ;
|
} ;
|
||||||
|
|
||||||
UseDAP det =
|
UseDAP det =
|
||||||
let g = det.g in {
|
let g = Neut in {
|
||||||
s=case det.type of {
|
s=case det.type of {
|
||||||
EmptyIndef => \\cas => a_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
EmptyIndef => \\cas => a_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
||||||
EmptyDef => \\cas => the_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
EmptyDef => \\cas => the_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ lin
|
|||||||
|
|
||||||
-- : Det -> NP ; -- these five
|
-- : Det -> NP ; -- these five
|
||||||
DetNP det =
|
DetNP det =
|
||||||
let g = det.g in {
|
let g = Neut in {
|
||||||
s=case det.type of {
|
s=case det.type of {
|
||||||
EmptyIndef => \\cas => a_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
EmptyIndef => \\cas => a_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
||||||
EmptyDef => \\cas => the_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
EmptyDef => \\cas => the_Det.s ! g ! Inanimate ! cas ++ det.s ! g ! Inanimate ! cas ;
|
||||||
@@ -102,7 +102,7 @@ lin
|
|||||||
DetQuantOrd quant num ord = {
|
DetQuantOrd quant num ord = {
|
||||||
s=\\g,a,cas => num.s ! g ! a ! cas
|
s=\\g,a,cas => num.s ! g ! a ! cas
|
||||||
++ quant.s ! (gennum g (numSizeNumber num.size)) ! a ! cas
|
++ quant.s ! (gennum g (numSizeNumber num.size)) ! a ! cas
|
||||||
++ (adjFormsAdjective ord).s ! gennum quant.g (animNumSizeNum Inanimate cas num.size) ! Inanimate ! numSizeCase cas num.size ;
|
++ (adjFormsAdjective ord).s ! gennum g (animNumSizeNum Inanimate cas num.size) ! Inanimate ! numSizeCase cas num.size ;
|
||||||
type=quant.type ;
|
type=quant.type ;
|
||||||
g=quant.g ;
|
g=quant.g ;
|
||||||
c=quant.c ;
|
c=quant.c ;
|
||||||
@@ -139,7 +139,6 @@ lin
|
|||||||
s=mkPronTable pron.poss ;
|
s=mkPronTable pron.poss ;
|
||||||
type=NormalDet ;
|
type=NormalDet ;
|
||||||
short=\\a=>[] ;
|
short=\\a=>[] ;
|
||||||
g=Neut ;
|
|
||||||
c=Nom ;
|
c=Nom ;
|
||||||
preferShort=PreferFull
|
preferShort=PreferFull
|
||||||
} ;
|
} ;
|
||||||
@@ -192,7 +191,7 @@ lin
|
|||||||
|
|
||||||
-- : CN -> NP -> CN ; -- house of Paris, house of mine
|
-- : CN -> NP -> CN ; -- house of Paris, house of mine
|
||||||
PossNP cn np = cn ** {
|
PossNP cn np = cn ** {
|
||||||
s=\\n,cas => np.s ! Gen ++ cn.s ! n ! cas ; -- TODO: possessive pronouns P1, P2
|
s=\\n,cas => cn.s ! n ! cas ++ np.s ! Gen ; -- TODO: possessive pronouns P1, P2
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
-- : CN -> NP -> CN ; -- glass of wine - стакан чаю (чая)
|
-- : CN -> NP -> CN ; -- glass of wine - стакан чаю (чая)
|
||||||
@@ -226,7 +225,6 @@ lin
|
|||||||
type=EmptyDef ;
|
type=EmptyDef ;
|
||||||
short=\\a=>[] ;
|
short=\\a=>[] ;
|
||||||
c=Nom ;
|
c=Nom ;
|
||||||
g=Neut ;
|
|
||||||
size=Num1 ;
|
size=Num1 ;
|
||||||
preferShort=PreferFull
|
preferShort=PreferFull
|
||||||
} ;
|
} ;
|
||||||
@@ -236,7 +234,6 @@ lin
|
|||||||
type=EmptyIndef ;
|
type=EmptyIndef ;
|
||||||
short=\\a=>[] ;
|
short=\\a=>[] ;
|
||||||
c=Nom ;
|
c=Nom ;
|
||||||
g=Neut ;
|
|
||||||
size=Num1 ;
|
size=Num1 ;
|
||||||
preferShort=PreferFull
|
preferShort=PreferFull
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -27,21 +27,18 @@ lin
|
|||||||
this_Quant = (adjFormsAdjective this_forms) ** {
|
this_Quant = (adjFormsAdjective this_forms) ** {
|
||||||
type=NormalDet ;
|
type=NormalDet ;
|
||||||
preferShort=PreferFull ;
|
preferShort=PreferFull ;
|
||||||
g=Neut ;
|
|
||||||
c=Nom
|
c=Nom
|
||||||
} ;
|
} ;
|
||||||
-- : Quant ;
|
-- : Quant ;
|
||||||
that_Quant = (adjFormsAdjective that_forms) ** {
|
that_Quant = (adjFormsAdjective that_forms) ** {
|
||||||
type=NormalDet ;
|
type=NormalDet ;
|
||||||
preferShort=PreferFull ;
|
preferShort=PreferFull ;
|
||||||
g=Neut ;
|
|
||||||
c=Nom
|
c=Nom
|
||||||
} ;
|
} ;
|
||||||
-- : Quant ;
|
-- : Quant ;
|
||||||
no_Quant = (adjFormsAdjective (makeAdjectiveForms "никакой" "" "3b" PreferFull)) ** {
|
no_Quant = (adjFormsAdjective (makeAdjectiveForms "никакой" "" "3b" PreferFull)) ** {
|
||||||
type=NormalDet ;
|
type=NormalDet ;
|
||||||
preferShort=PreferFull ;
|
preferShort=PreferFull ;
|
||||||
g=Neut ;
|
|
||||||
c=Nom
|
c=Nom
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,6 @@ concrete ExtendTur of Extend = CatTur ** open ResTur in {
|
|||||||
a = {n=num.n; p=P3} ;
|
a = {n=num.n; p=P3} ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
TPastSimple = {s = []} ** {t = Past} ; --# notpresent
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user