Files
gf-core/lib/resource/doc/gfdoc/ParadigmsGer.html
2007-12-12 20:30:11 +00:00

411 lines
9.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> German Lexical Paradigms</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> German Lexical Paradigms</H1>
<FONT SIZE="4">
<I>Last update: 2007-06-08 17:51:31 CEST</I><BR>
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">Parameters</A>
<LI><A HREF="#toc2">Nouns</A>
<UL>
<LI><A HREF="#toc3">Proper names and noun phrases</A>
</UL>
<LI><A HREF="#toc4">Adjectives</A>
<LI><A HREF="#toc5">Adverbs</A>
<LI><A HREF="#toc6">Prepositions</A>
<LI><A HREF="#toc7">Verbs</A>
<UL>
<LI><A HREF="#toc8">Two-place verbs</A>
<LI><A HREF="#toc9">Three-place verbs</A>
<LI><A HREF="#toc10">Other complement patterns</A>
</UL>
</UL>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<P>
Produced by
gfdoc - a rudimentary GF document generator.
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
</P>
<P>
Aarne Ranta, Harald Hammarström and Björn Bringert2003--2007
</P>
<P>
This is an API for the user of the resource grammar
for adding lexical items. It gives functions for forming
expressions of open categories: nouns, adjectives, verbs.
</P>
<P>
Closed categories (determiners, pronouns, conjunctions) are
accessed through the resource syntax API, <CODE>Structural.gf</CODE>.
</P>
<P>
The structure of functions for each word class <CODE>C</CODE> is the following:
first we give a handful of patterns that aim to cover all
cases, from the most regular (with just one argument) to the worst.
The name of this function is <CODE>mkC</CODE>.
</P>
<P>
There is also a module <A HREF="../../german/IrregGer.gf"><CODE>IrregGer</CODE></A>
which covers irregular verbs.
</P>
<PRE>
resource ParadigmsGer = open
(Predef=Predef),
Prelude,
MorphoGer,
CatGer
in {
</PRE>
<P></P>
<A NAME="toc1"></A>
<H2>Parameters</H2>
<P>
To abstract over gender names, we define the following identifiers.
</P>
<PRE>
oper
Gender : Type ;
masculine : Gender ;
feminine : Gender ;
neuter : Gender ;
</PRE>
<P></P>
<P>
To abstract over case names, we define the following.
</P>
<PRE>
Case : Type ;
nominative : Case ;
accusative : Case ;
dative : Case ;
genitive : Case ;
</PRE>
<P></P>
<P>
To abstract over number names, we define the following.
</P>
<PRE>
Number : Type ;
singular : Number ;
plural : Number ;
</PRE>
<P></P>
<A NAME="toc2"></A>
<H2>Nouns</H2>
<PRE>
mkN : overload {
</PRE>
<P></P>
<P>
The regular heuristics recognizes some suffixes, from which it
guesses the gender and the declension: <I>e, ung, ion</I> give the
feminine with plural ending <I>-n, -en</I>, and the rest are masculines
with the plural <I>-e</I> (without Umlaut).
</P>
<PRE>
mkN : (Stufe : Str) -&gt; N ;
</PRE>
<P></P>
<P>
The 'almost regular' case is much like the information given in an ordinary
dictionary. It takes the singular and plural nominative and the
gender, and infers the other forms from these.
</P>
<PRE>
mkN : (Bild,Bilder : Str) -&gt; Gender -&gt; N ;
</PRE>
<P></P>
<P>
Worst case: give all four singular forms, two plural forms (others + dative),
and the gender.
</P>
<PRE>
mkN : (x1,_,_,_,_,x6 : Str) -&gt; Gender -&gt; N
-- mann, mann, manne, mannes, männer, männern
};
</PRE>
<P></P>
<P>
Relational nouns need a preposition. The most common is <I>von</I> with
the dative, and there is a special case for regular nouns.
</P>
<PRE>
mkN2 : overload {
mkN2 : Str -&gt; N2 ;
mkN2 : N -&gt; N2 ;
mkN2 : N -&gt; Prep -&gt; N2
} ;
</PRE>
<P></P>
<P>
Use the function <CODE>mkPrep</CODE> or see the section on prepositions below to
form other prepositions.
Some prepositions are moreover constructed in <A HREF="StructuralGer.html">StructuralGer</A>.
</P>
<P>
Three-place relational nouns (<I>die Verbindung von x nach y</I>) need two prepositions.
</P>
<PRE>
mkN3 : N -&gt; Prep -&gt; Prep -&gt; N3 ;
</PRE>
<P></P>
<A NAME="toc3"></A>
<H3>Proper names and noun phrases</H3>
<P>
Proper names, with an <I>s</I> genitive and other cases like the
nominative, are formed from a string. Final <I>s</I> (<I>Johannes-Johannes</I>) is
taken into account.
</P>
<PRE>
mkPN : overload {
mkPN : Str -&gt; PN ;
</PRE>
<P></P>
<P>
If only the genitive differs, two strings are needed.
</P>
<PRE>
mkPN : (nom,gen : Str) -&gt; PN ;
</PRE>
<P></P>
<P>
In the worst case, all four forms are needed.
</P>
<PRE>
mkPN : (nom,acc,dat,gen : Str) -&gt; PN
} ;
</PRE>
<P></P>
<A NAME="toc4"></A>
<H2>Adjectives</H2>
<PRE>
mkA : overload {
</PRE>
<P></P>
<P>
The regular adjective formation works for most cases, and includes
variations such as <I>teuer - teurer</I>, <I>böse - böser</I>.
</P>
<PRE>
mkA : Str -&gt; A ;
</PRE>
<P></P>
<P>
In the worst case, adjectives need three forms - one for each degree.
</P>
<PRE>
mkA : (gut,besser,beste : Str) -&gt; A -- gut,besser,beste
};
</PRE>
<P></P>
<P>
Invariable adjective are a special case.
</P>
<PRE>
invarA : Str -&gt; A ; -- prima
</PRE>
<P></P>
<P>
Two-place adjectives are formed by adding a preposition to an adjective.
</P>
<PRE>
mkA2 : A -&gt; Prep -&gt; A2 ;
</PRE>
<P></P>
<A NAME="toc5"></A>
<H2>Adverbs</H2>
<P>
Adverbs are formed from strings.
</P>
<PRE>
mkAdv : Str -&gt; Adv ;
</PRE>
<P></P>
<A NAME="toc6"></A>
<H2>Prepositions</H2>
<P>
A preposition is formed from a string and a case.
</P>
<PRE>
mkPrep : Str -&gt; Case -&gt; Prep ;
</PRE>
<P></P>
<P>
Often just a case with the empty string is enough.
</P>
<PRE>
accPrep : Prep ;
datPrep : Prep ;
genPrep : Prep ;
</PRE>
<P></P>
<P>
A couple of common prepositions (always with the dative).
</P>
<PRE>
von_Prep : Prep ;
zu_Prep : Prep ;
</PRE>
<P></P>
<A NAME="toc7"></A>
<H2>Verbs</H2>
<PRE>
mkV : overload {
</PRE>
<P></P>
<P>
Regular verbs (<I>weak verbs</I>) need just the infinitive form.
</P>
<PRE>
mkV : (führen : Str) -&gt; V ;
</PRE>
<P></P>
<P>
Irregular verbs use Ablaut and, in the worst cases, also Umlaut.
</P>
<PRE>
mkV : (sehen,sieht,sah,sähe,gesehen : Str) -&gt; V ;
</PRE>
<P></P>
<P>
The worst-case constructor needs six forms:
</P>
<UL>
<LI>Infinitive,
<LI>3p sg pres. indicative,
<LI>2p sg imperative,
<LI>1/3p sg imperfect indicative,
<LI>1/3p sg imperfect subjunctive (because this uncommon form can have umlaut)
<LI>the perfect participle
</UL>
<PRE>
mkV : (geben, gibt, gib, gab, gäbe, gegeben : Str) -&gt; V ;
</PRE>
<P></P>
<P>
To add a movable suffix e.g. <I>auf(fassen)</I>.
</P>
<PRE>
mkV : Str -&gt; V -&gt; V
};
</PRE>
<P></P>
<P>
To remove the past participle prefix <I>ge</I>, e.g. for the verbs
prefixed by <I>be-, ver-</I>.
</P>
<PRE>
no_geV : V -&gt; V ;
</PRE>
<P></P>
<P>
To change the auxiliary from <I>haben</I> (default) to <I>sein</I> and
vice-versa.
</P>
<PRE>
seinV : V -&gt; V ;
habenV : V -&gt; V ;
</PRE>
<P></P>
<P>
Reflexive verbs can take reflexive pronouns of different cases.
</P>
<PRE>
reflV : V -&gt; Case -&gt; V ;
</PRE>
<P></P>
<A NAME="toc8"></A>
<H3>Two-place verbs</H3>
<PRE>
mkV2 : overload {
</PRE>
<P></P>
<P>
Two-place verbs with a preposition.
</P>
<PRE>
mkV2 : V -&gt; Prep -&gt; V2 ;
</PRE>
<P></P>
<P>
Two-place verbs with direct object (accusative, transitive verbs).
</P>
<PRE>
mkV2 : V -&gt; V2 ;
</PRE>
<P></P>
<P>
Two-place verbs with object in the given case.
</P>
<PRE>
mkV2 : V -&gt; Case -&gt; V2
};
</PRE>
<P></P>
<A NAME="toc9"></A>
<H3>Three-place verbs</H3>
<P>
Three-place (ditransitive) verbs need two prepositions, of which
the first one or both can be absent.
</P>
<PRE>
mkV3 : V -&gt; Prep -&gt; Prep -&gt; V3 ; -- sprechen, mit, über
dirV3 : V -&gt; Prep -&gt; V3 ; -- senden,(accusative),nach
accdatV3 : V -&gt; V3 ; -- give,accusative,dative
</PRE>
<P></P>
<A NAME="toc10"></A>
<H3>Other complement patterns</H3>
<P>
Verbs and adjectives can take complements such as sentences,
questions, verb phrases, and adjectives.
</P>
<PRE>
mkV0 : V -&gt; V0 ;
mkVS : V -&gt; VS ;
mkV2S : V -&gt; Prep -&gt; V2S ;
mkVV : V -&gt; VV ;
mkV2V : V -&gt; Prep -&gt; V2V ;
mkVA : V -&gt; VA ;
mkV2A : V -&gt; Prep -&gt; V2A ;
mkVQ : V -&gt; VQ ;
mkV2Q : V -&gt; Prep -&gt; V2Q ;
mkAS : A -&gt; AS ;
mkA2S : A -&gt; Prep -&gt; A2S ;
mkAV : A -&gt; AV ;
mkA2V : A -&gt; Prep -&gt; A2V ;
</PRE>
<P></P>
<P>
Notice: categories <CODE>V2S, V2V, V2A, V2Q</CODE> are in v 1.0 treated
just as synonyms of <CODE>V2</CODE>, and the second argument is given
as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
<CODE>V0</CODE> is just <CODE>V</CODE>.
</P>
<PRE>
V0, V2S, V2V, V2A, V2Q : Type ;
AS, A2S, AV, A2V : Type ;
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc german/ParadigmsGer.txt -->
</BODY></HTML>