mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
Turkish: scratch the NP category
This commit is contained in:
@@ -5,8 +5,12 @@ concrete CatTur of Cat = CommonX ** open ResTur, Prelude in {
|
|||||||
lincat
|
lincat
|
||||||
|
|
||||||
-- Noun
|
-- Noun
|
||||||
|
CN = {s : Number => Case => Str} ;
|
||||||
NP = {s : Case => Str ; a : Agr} ;
|
NP = {s : Case => Str ; a : Agr} ;
|
||||||
Pron = ResTur.Pron ;
|
Pron = ResTur.Pron ;
|
||||||
|
Det = {s : Str; n : Number} ;
|
||||||
|
Num = {s : Str; n : Number} ;
|
||||||
|
Quant = {s : Str} ;
|
||||||
|
|
||||||
-- Open lexical classes, e.g. Lexicon
|
-- Open lexical classes, e.g. Lexicon
|
||||||
V, VS, VQ, VA = Verb ;
|
V, VS, VQ, VA = Verb ;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
--# -path=.:../abstract:../common:prelude
|
--# -path=.:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete GrammarTur of Grammar =
|
concrete GrammarTur of Grammar =
|
||||||
|
NounTur,
|
||||||
NumeralTur,
|
NumeralTur,
|
||||||
StructuralTur
|
StructuralTur
|
||||||
** {
|
** {
|
||||||
|
|||||||
27
next-lib/src/turkish/NounTur.gf
Normal file
27
next-lib/src/turkish/NounTur.gf
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
concrete NounTur of Noun = CatTur ** open ResTur, Prelude in {
|
||||||
|
|
||||||
|
flags optimize=all_subs ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
DetCN det cn = {
|
||||||
|
s = \\c => det.s ++ cn.s ! det.n ! c ;
|
||||||
|
a = agrP3 det.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
DetQuant quant num = {
|
||||||
|
s = quant.s ++ num.s ;
|
||||||
|
n = num.n
|
||||||
|
} ;
|
||||||
|
|
||||||
|
NumSg = {s = []; n = Sg} ;
|
||||||
|
NumPl = {s = []; n = Pl} ;
|
||||||
|
|
||||||
|
DefArt = {
|
||||||
|
s = []
|
||||||
|
} ;
|
||||||
|
IndefArt = {
|
||||||
|
s = []
|
||||||
|
} ;
|
||||||
|
|
||||||
|
UseN n = n ;
|
||||||
|
}
|
||||||
@@ -17,6 +17,9 @@ resource ResTur = ParamX ** open Prelude, Predef in {
|
|||||||
Noun = {s : Number => Case => Str; gen : Number => Agr => Str} ;
|
Noun = {s : Number => Case => Str; gen : Number => Agr => Str} ;
|
||||||
Pron = {s : Case => Str; a : Agr} ;
|
Pron = {s : Case => Str; a : Agr} ;
|
||||||
|
|
||||||
|
agrP3 : Number -> Agr ;
|
||||||
|
agrP3 n = {n = n; p = P3} ;
|
||||||
|
|
||||||
-- For $Verb$.
|
-- For $Verb$.
|
||||||
|
|
||||||
param
|
param
|
||||||
|
|||||||
Reference in New Issue
Block a user