mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
language specific extensions started
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
incomplete concrete ExtScand of ExtScandAbs =
|
||||
CatScand ** open CommonScand, ResScand in {
|
||||
|
||||
lin
|
||||
DefSgN predet noun = let g = noun.g in {
|
||||
s = \\c => predet.s ! gennum g Sg ++ noun.s ! Sg ! Def ! caseNP c ;
|
||||
a = agrP3 g Sg
|
||||
} ;
|
||||
DefPlN predet noun = let g = noun.g in {
|
||||
s = \\c => predet.s ! Plg ++ noun.s ! Pl ! Def ! caseNP c ;
|
||||
a = agrP3 g Sg
|
||||
} ;
|
||||
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
abstract ExtScandAbs = Cat ** {
|
||||
|
||||
fun
|
||||
|
||||
-- Definite form of simple nouns without article; neither $Num$ nor $Ord$ allowed.
|
||||
|
||||
DefSgN, DefPlN : Predef -> N -> NP ;
|
||||
|
||||
}
|
||||
12
lib/resource-1.0/scandinavian/ExtraScand.gf
Normal file
12
lib/resource-1.0/scandinavian/ExtraScand.gf
Normal file
@@ -0,0 +1,12 @@
|
||||
incomplete concrete ExtraScand of ExtraScandAbs = CatScand ** open CommonScand,ResScand in {
|
||||
|
||||
lin
|
||||
GenNP np = {
|
||||
s = \\n,_,g => np.s ! NPPoss (gennum g n) ;
|
||||
det = DDef Indef
|
||||
} ;
|
||||
|
||||
EmbedBareS s = {s = s.s ! Sub} ;
|
||||
ComplBareVS v s = insertObj (\\_ => s.s ! Sub) (predV v) ;
|
||||
|
||||
}
|
||||
3
lib/resource-1.0/scandinavian/ExtraScandAbs.gf
Normal file
3
lib/resource-1.0/scandinavian/ExtraScandAbs.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
abstract ExtraScandAbs = Extra ** {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user