mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Dutch api modules
This commit is contained in:
@@ -33,6 +33,7 @@ langsCoding = [
|
|||||||
(("bulgarian","Bul"),""),
|
(("bulgarian","Bul"),""),
|
||||||
(("catalan", "Cat"),""),
|
(("catalan", "Cat"),""),
|
||||||
(("danish", "Dan"),""),
|
(("danish", "Dan"),""),
|
||||||
|
(("dutch", "Dut"),""),
|
||||||
(("english", "Eng"),""),
|
(("english", "Eng"),""),
|
||||||
(("finnish", "Fin"),""),
|
(("finnish", "Fin"),""),
|
||||||
(("french", "Fre"),""),
|
(("french", "Fre"),""),
|
||||||
|
|||||||
6
lib/src/api/CombinatorsDut.gf
Normal file
6
lib/src/api/CombinatorsDut.gf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
--# -path=.:alltenses:prelude
|
||||||
|
|
||||||
|
resource CombinatorsDut = Combinators with
|
||||||
|
(Cat = CatDut),
|
||||||
|
(Structural = StructuralDut),
|
||||||
|
(Constructors = ConstructorsDut) ;
|
||||||
3
lib/src/api/ConstructorsDut.gf
Normal file
3
lib/src/api/ConstructorsDut.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
--# -path=.:alltenses:prelude
|
||||||
|
|
||||||
|
resource ConstructorsDut = Constructors with (Grammar = GrammarDut) ;
|
||||||
5
lib/src/api/SymbolicDut.gf
Normal file
5
lib/src/api/SymbolicDut.gf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
--# -path=.:present:mathematical:prelude
|
||||||
|
|
||||||
|
resource SymbolicDut = Symbolic with
|
||||||
|
(Symbol = SymbolDut),
|
||||||
|
(Grammar = GrammarDut) ;
|
||||||
4
lib/src/api/SyntaxDut.gf
Normal file
4
lib/src/api/SyntaxDut.gf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
--# -path=.:alltenses:prelude
|
||||||
|
|
||||||
|
instance SyntaxDut of Syntax = ConstructorsDut, CatDut, StructuralDut, CombinatorsDut ;
|
||||||
|
|
||||||
3
lib/src/api/TryDut.gf
Normal file
3
lib/src/api/TryDut.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
--# -path=.:alltenses:prelude
|
||||||
|
|
||||||
|
resource TryDut = SyntaxDut, LexiconDut, ParadigmsDut - [mkAdv,mkOrd] ;
|
||||||
@@ -92,8 +92,8 @@ resource ResDut = ParamX ** open Prelude in {
|
|||||||
| VPresSg1 -- ben
|
| VPresSg1 -- ben
|
||||||
| VPresSg2 -- bent
|
| VPresSg2 -- bent
|
||||||
| VPresSg3 -- is
|
| VPresSg3 -- is
|
||||||
| VPastSg -- was
|
| VPastSg -- was --# notpresent
|
||||||
| VPastPl -- waren
|
| VPastPl -- waren --# notpresent
|
||||||
| VImp2 -- wees
|
| VImp2 -- wees
|
||||||
| VImp3 -- weest
|
| VImp3 -- weest
|
||||||
| VImpPl -- wezen
|
| VImpPl -- wezen
|
||||||
@@ -111,9 +111,9 @@ resource ResDut = ParamX ** open Prelude in {
|
|||||||
VInf | VImpPl => aaien; -- hij/zij/het/wij aaien
|
VInf | VImpPl => aaien; -- hij/zij/het/wij aaien
|
||||||
VPresSg1 | VImp2 => aai; -- ik aai
|
VPresSg1 | VImp2 => aai; -- ik aai
|
||||||
VPresSg2 | VPresSg3 | VImp3 => aait; -- jij aait
|
VPresSg2 | VPresSg3 | VImp3 => aait; -- jij aait
|
||||||
VPastSg => aaide; -- ik aaide
|
VPastSg => aaide; -- ik aaide --# notpresent
|
||||||
VPastPl => aaiden; -- hij/zij/het/wij aaiden
|
VPastPl => aaiden; -- hij/zij/het/wij aaiden --# notpresent
|
||||||
VPerf => geaaid -- ik heb geaaid
|
VPerf => geaaid -- ik heb geaaid
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -265,8 +265,8 @@ resource ResDut = ParamX ** open Prelude in {
|
|||||||
VPresSg1 => "ben" ;
|
VPresSg1 => "ben" ;
|
||||||
VPresSg2 => "bent" ;
|
VPresSg2 => "bent" ;
|
||||||
VPresSg3 => "is" ;
|
VPresSg3 => "is" ;
|
||||||
VPastSg => "was" ;
|
VPastSg => "was" ; --# notpresent
|
||||||
VPastPl => "waren" ;
|
VPastPl => "waren" ; --# notpresent
|
||||||
VImp2 => "wees" ;
|
VImp2 => "wees" ;
|
||||||
VImp3 => "weest" ;
|
VImp3 => "weest" ;
|
||||||
VImpPl => "wezen" ;
|
VImpPl => "wezen" ;
|
||||||
@@ -283,8 +283,8 @@ resource ResDut = ParamX ** open Prelude in {
|
|||||||
VPresSg1 => "heb" ;
|
VPresSg1 => "heb" ;
|
||||||
VPresSg2 => "hebt" ;
|
VPresSg2 => "hebt" ;
|
||||||
VPresSg3 => "heeft" ;
|
VPresSg3 => "heeft" ;
|
||||||
VPastSg => "had" ;
|
VPastSg => "had" ; --# notpresent
|
||||||
VPastPl => "hadden" ;
|
VPastPl => "hadden" ; --# notpresent
|
||||||
VImp2 => "heb" ;
|
VImp2 => "heb" ;
|
||||||
VImp3 => "heeft" ;
|
VImp3 => "heeft" ;
|
||||||
VImpPl => "hebben" ;
|
VImpPl => "hebben" ;
|
||||||
@@ -301,8 +301,8 @@ resource ResDut = ParamX ** open Prelude in {
|
|||||||
VPresSg1 => "zal" ;
|
VPresSg1 => "zal" ;
|
||||||
VPresSg2 => "zult" ;
|
VPresSg2 => "zult" ;
|
||||||
VPresSg3 => "zal" ;
|
VPresSg3 => "zal" ;
|
||||||
VPastSg => "zou" ;
|
VPastSg => "zou" ; --# notpresent
|
||||||
VPastPl => "zouden" ;
|
VPastPl => "zouden" ; --# notpresent
|
||||||
VImp2 => "zoud" ; ---- not used
|
VImp2 => "zoud" ; ---- not used
|
||||||
VImp3 => "zoudt" ;
|
VImp3 => "zoudt" ;
|
||||||
VImpPl => "zouden" ; ----
|
VImpPl => "zouden" ; ----
|
||||||
@@ -319,8 +319,8 @@ resource ResDut = ParamX ** open Prelude in {
|
|||||||
VPresSg1 => "kan" ;
|
VPresSg1 => "kan" ;
|
||||||
VPresSg2 => "kunt" ;
|
VPresSg2 => "kunt" ;
|
||||||
VPresSg3 => "kan" ; ---- kun je
|
VPresSg3 => "kan" ; ---- kun je
|
||||||
VPastSg => "kon" ;
|
VPastSg => "kon" ; --# notpresent
|
||||||
VPastPl => "konden" ;
|
VPastPl => "konden" ; --# notpresent
|
||||||
VImp2 => "kan" ; ---- not used
|
VImp2 => "kan" ; ---- not used
|
||||||
VImp3 => "kant" ;
|
VImp3 => "kant" ;
|
||||||
VImpPl => "kunnen" ; ----
|
VImpPl => "kunnen" ; ----
|
||||||
@@ -381,16 +381,25 @@ param
|
|||||||
|
|
||||||
oper
|
oper
|
||||||
vForm : Tense -> Number -> Person -> Order -> VForm = \t,n,p,o -> case <t,n,p> of {
|
vForm : Tense -> Number -> Person -> Order -> VForm = \t,n,p,o -> case <t,n,p> of {
|
||||||
<Pres|Fut,Sg,P2> => case o of {
|
<Pres
|
||||||
|
|Fut --# notpresent
|
||||||
|
,Sg,P2> => case o of {
|
||||||
Inv => VPresSg1 ;
|
Inv => VPresSg1 ;
|
||||||
_ => VPresSg2
|
_ => VPresSg2
|
||||||
} ;
|
} ;
|
||||||
<Pres|Fut,Sg,P1> => VPresSg1 ;
|
<Pres
|
||||||
<Pres|Fut,Sg,P3> => VPresSg3 ;
|
|Fut --# notpresent
|
||||||
<Pres|Fut,Pl,_ > => VInf ;
|
,Sg,P1> => VPresSg1 ;
|
||||||
|
<Pres
|
||||||
|
|Fut --# notpresent
|
||||||
|
,Sg,P3> => VPresSg3 ;
|
||||||
|
<Pres
|
||||||
|
|Fut --# notpresent
|
||||||
|
,Pl,_ > => VInf
|
||||||
|
; --# notpresent
|
||||||
|
|
||||||
<Past|Cond,Sg,_> => VPastSg ; -- Fut and Cond affect zullen
|
<Past|Cond,Sg,_> => VPastSg ; -- Fut and Cond affect zullen --# notpresent
|
||||||
<Past|Cond,Pl,_> => VPastPl
|
<Past|Cond,Pl,_> => VPastPl --# notpresent
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
--2 For $Relative$
|
--2 For $Relative$
|
||||||
@@ -560,9 +569,9 @@ param
|
|||||||
auxv = (auxVerb vp.s.aux).s ;
|
auxv = (auxVerb vp.s.aux).s ;
|
||||||
vperf = vp.s.s ! VPerf ;
|
vperf = vp.s.s ! VPerf ;
|
||||||
verb : Str * Str = case <t,a> of {
|
verb : Str * Str = case <t,a> of {
|
||||||
<Fut|Cond,Simul> => <zullen_V.s ! vform, vperf ++ auxv ! VInf> ;
|
<Fut|Cond,Simul> => <zullen_V.s ! vform, vperf ++ auxv ! VInf> ; --# notpresent
|
||||||
<Fut|Cond,Anter> => <zullen_V.s ! vform, vperf ++ auxv ! VInf> ;
|
<Fut|Cond,Anter> => <zullen_V.s ! vform, vperf ++ auxv ! VInf> ; --# notpresent
|
||||||
<_, Anter> => <auxv ! vform, vperf> ;
|
<_, Anter> => <auxv ! vform, vperf> ; --# notpresent
|
||||||
<_, Simul> => <vp.s.s ! vform, []>
|
<_, Simul> => <vp.s.s ! vform, []>
|
||||||
} ;
|
} ;
|
||||||
fin = verb.p1 ;
|
fin = verb.p1 ;
|
||||||
|
|||||||
@@ -2,48 +2,48 @@
|
|||||||
|
|
||||||
concrete SymbolDut of Symbol = CatDut ** open Prelude, ResDut in
|
concrete SymbolDut of Symbol = CatDut ** open Prelude, ResDut in
|
||||||
{
|
{
|
||||||
--{
|
|
||||||
--
|
|
||||||
--lin
|
lin
|
||||||
-- SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
||||||
-- IntPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
IntPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
||||||
-- FloatPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
FloatPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
||||||
-- NumPN i = {s = i.s ! Neutr ; g = Neutr} ; --- c
|
NumPN i = {s = \\_ => i.s ! Neutr ! Nom ; g = Neutr} ; --- c
|
||||||
--
|
|
||||||
-- CNIntNP cn i = {
|
CNIntNP cn i = {
|
||||||
-- s = \\c => cn.s ! Weak ! Sg ! Nom ++ i.s ;
|
s = \\c => cn.s ! Weak ! NF Sg Nom ++ i.s ;
|
||||||
-- a = agrP3 Sg ;
|
a = agrP3 Sg ;
|
||||||
-- isPron = False
|
isPron = False
|
||||||
-- } ;
|
} ;
|
||||||
-- CNSymbNP det cn xs = let g = cn.g in {
|
CNSymbNP det cn xs = let g = cn.g in {
|
||||||
-- s = \\c => det.s ! g ! c ++ cn.s ! adjfCase det.a c ! det.n ! c ++ xs.s ;
|
s = \\c => det.s ! g ++ cn.s ! det.a ! NF det.n Nom ++ xs.s ;
|
||||||
-- a = agrP3 det.n ;
|
a = agrP3 det.n ;
|
||||||
-- isPron = False
|
isPron = False
|
||||||
-- } ;
|
} ;
|
||||||
-- CNNumNP cn i = {
|
CNNumNP cn i = {
|
||||||
-- s = \\c => artDef ! (GSg cn.g) ! c ++ cn.s ! Weak ! Sg ! Nom ++ i.s ! Neutr ! c ;
|
s = \\c => artDef Sg cn.g ++ cn.s ! Weak ! NF Sg Nom ++ i.s ! Neutr ! Nom ;
|
||||||
-- a = agrP3 Sg ;
|
a = agrP3 Sg ;
|
||||||
-- isPron = False
|
isPron = False
|
||||||
-- } ;
|
} ;
|
||||||
--
|
|
||||||
-- SymbS sy = {s = \\_ => sy.s} ;
|
SymbS sy = {s = \\_ => sy.s} ;
|
||||||
--
|
|
||||||
-- SymbNum n = {s = \\_,_ => n.s ; n = Pl ; isNum = True} ;
|
SymbNum n = {s = \\_,_ => n.s ; n = Pl ; isNum = True} ;
|
||||||
-- SymbOrd n = {s = \\_ => n.s ++ "."} ;
|
SymbOrd n = {s = \\_ => n.s ++ "."} ;
|
||||||
--
|
|
||||||
--
|
|
||||||
--lincat
|
lincat
|
||||||
--
|
|
||||||
-- Symb, [Symb] = SS ;
|
Symb, [Symb] = SS ;
|
||||||
--
|
|
||||||
--lin
|
lin
|
||||||
--
|
|
||||||
-- MkSymb s = s ;
|
MkSymb s = s ;
|
||||||
--
|
|
||||||
-- BaseSymb = infixSS "und" ;
|
BaseSymb = infixSS "en" ;
|
||||||
-- ConsSymb = infixSS "," ;
|
ConsSymb = infixSS "," ;
|
||||||
--
|
|
||||||
--}
|
oper
|
||||||
--
|
artDef : Number -> Gender -> Str = \n,g -> case <n,g> of {<Sg,Neutr> => "het" ; _ => "de"} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user