mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
66 lines
1.3 KiB
Plaintext
66 lines
1.3 KiB
Plaintext
--1 German parameters
|
|
--
|
|
-- This module defines the parameter types specific to German.
|
|
-- Some parameters, such as $Number$, are inherited from $ParamX$.
|
|
--
|
|
|
|
resource ParamGer = ParamX ** {
|
|
|
|
--2 For $Noun$
|
|
|
|
-- These are the standard four-value case and three-value gender.
|
|
|
|
param
|
|
Case = Nom | Acc | Dat | Gen ;
|
|
Gender = Masc | Fem | Neutr ;
|
|
|
|
-- Complex $CN$s, like adjectives, have strong and weak forms.
|
|
|
|
Adjf = Strong | Weak ;
|
|
|
|
---- Agreement of $NP$ is a record. We'll add $Gender$ later.
|
|
--
|
|
-- oper
|
|
-- Agr = {n : Number ; p : Person} ;
|
|
--
|
|
-- param
|
|
-- Gender = Neutr | Masc | Fem ;
|
|
--
|
|
----2 For $Verb$
|
|
--
|
|
---- Only these five forms are needed for open-lexicon verbs.
|
|
--
|
|
-- param
|
|
-- VForm = VInf | VPres | VPast | VPPart | VPresPart ;
|
|
--
|
|
---- The order of sentence is needed already in $VP$.
|
|
--
|
|
-- Order = ODir | OQuest ;
|
|
--
|
|
--
|
|
----2 For $Adjective$
|
|
--
|
|
-- AForm = AAdj Degree | AAdv ;
|
|
--
|
|
----2 For $Relative$
|
|
--
|
|
-- RAgr = RNoAg | RAg {n : Number ; p : Person} ;
|
|
--
|
|
----2 For $Numeral$
|
|
--
|
|
-- CardOrd = NCard | NOrd ;
|
|
-- DForm = unit | teen | ten ;
|
|
--
|
|
----2 Transformations between parameter types
|
|
--
|
|
-- oper
|
|
-- agrP3 : Number -> Agr = \n ->
|
|
-- {n = n ; p = P3} ;
|
|
--
|
|
-- conjAgr : Agr -> Agr -> Agr = \a,b -> {
|
|
-- n = conjNumber a.n b.n ;
|
|
-- p = conjPerson a.p b.p
|
|
-- } ;
|
|
--
|
|
}
|