mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-17 16:59:34 -06:00
380 lines
9.2 KiB
HTML
380 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">
|
|
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
|
<FONT SIZE="4">
|
|
</FONT></CENTER>
|
|
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<UL>
|
|
<LI><A HREF="#toc1">German Lexical Paradigms</A>
|
|
<UL>
|
|
<LI><A HREF="#toc2">Parameters</A>
|
|
<LI><A HREF="#toc3">Nouns</A>
|
|
<UL>
|
|
<LI><A HREF="#toc4">Proper names and noun phrases</A>
|
|
</UL>
|
|
<LI><A HREF="#toc5">Adjectives</A>
|
|
<LI><A HREF="#toc6">Adverbs</A>
|
|
<LI><A HREF="#toc7">Prepositions</A>
|
|
<LI><A HREF="#toc8">Verbs</A>
|
|
<UL>
|
|
<LI><A HREF="#toc9">Two-place verbs</A>
|
|
<LI><A HREF="#toc10">Three-place verbs</A>
|
|
<LI><A HREF="#toc11">Other complement patterns</A>
|
|
</UL>
|
|
<LI><A HREF="#toc12">Definitions of paradigms</A>
|
|
</UL>
|
|
</UL>
|
|
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<P>
|
|
Last update: Sat Feb 25 22:35:59 2006
|
|
</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>
|
|
# -path=.:../common:../abstract:../../prelude
|
|
</P>
|
|
<A NAME="toc1"></A>
|
|
<H1>German Lexical Paradigms</H1>
|
|
<P>
|
|
Aarne Ranta & Harald Hammarström 2003--2006
|
|
</P>
|
|
<P>
|
|
This is an API to 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 main difference with <CODE>MorphoGer.gf</CODE> is that the types
|
|
referred to are compiled resource grammar types. We have moreover
|
|
had the design principle of always having existing forms, rather
|
|
than stems, as string arguments of the paradigms.
|
|
</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
|
|
regular cases. Then we give a worst-case function <CODE>mkC</CODE>, which serves as an
|
|
escape to construct the most irregular words of type <CODE>C</CODE>.
|
|
However, this function should only seldom be needed: we have a
|
|
separate module <CODE>IrregularGer</CODE>, which covers all irregularly inflected
|
|
words.
|
|
</P>
|
|
<PRE>
|
|
resource ParadigmsGer = open
|
|
(Predef=Predef),
|
|
Prelude,
|
|
MorphoGer,
|
|
CatGer
|
|
in {
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc2"></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="toc3"></A>
|
|
<H2>Nouns</H2>
|
|
<P>
|
|
Worst case: give all four singular forms, two plural forms (others + dative),
|
|
and the gender.
|
|
</P>
|
|
<PRE>
|
|
mkN : (x1,_,_,_,_,x6 : Str) -> Gender -> N ;
|
|
-- mann, mann, manne, mannes, männer, männern
|
|
</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>
|
|
regN : Str -> 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>
|
|
reg2N : (x1,x2 : Str) -> Gender -> N ;
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Relational nouns need a preposition. The most common is <I>von</I> with
|
|
the dative. Some prepositions are constructed in <A HREF="StructuralGer.html">StructuralGer</A>.
|
|
</P>
|
|
<PRE>
|
|
mkN2 : N -> Prep -> N2 ;
|
|
vonN2 : N -> N2 ;
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Use the function <CODE>mkPrep</CODE> or see the section on prepositions below to
|
|
form other prepositions.
|
|
</P>
|
|
<P>
|
|
Three-place relational nouns (<I>die Verbindung von x nach y</I>) need two prepositions.
|
|
</P>
|
|
<PRE>
|
|
mkN3 : N -> Prep -> Prep -> N3 ;
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc4"></A>
|
|
<H3>Proper names and noun phrases</H3>
|
|
<P>
|
|
Proper names, with a regular genitive, are formed as follows
|
|
The regular genitive is <I>s</I>, omitted after <I>s</I>.
|
|
</P>
|
|
<PRE>
|
|
mkPN : (karolus, karoli : Str) -> PN ; -- karolus, karoli
|
|
regPN : (Johann : Str) -> PN ; -- Johann, Johanns ; Johannes, Johannes
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc5"></A>
|
|
<H2>Adjectives</H2>
|
|
<P>
|
|
Adjectives need three forms, one for each degree.
|
|
</P>
|
|
<PRE>
|
|
mkA : (x1,_,x3 : Str) -> A ; -- gut,besser,beste
|
|
</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>
|
|
regA : Str -> A ;
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Invariable adjective are a special case.
|
|
</P>
|
|
<PRE>
|
|
invarA : Str -> A ; -- prima
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Two-place adjectives are formed by adding a preposition to an adjective.
|
|
</P>
|
|
<PRE>
|
|
mkA2 : A -> Prep -> A2 ;
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc6"></A>
|
|
<H2>Adverbs</H2>
|
|
<P>
|
|
Adverbs are just strings.
|
|
</P>
|
|
<PRE>
|
|
mkAdv : Str -> Adv ;
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc7"></A>
|
|
<H2>Prepositions</H2>
|
|
<P>
|
|
A preposition is formed from a string and a case.
|
|
</P>
|
|
<PRE>
|
|
mkPrep : Str -> Case -> 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="toc8"></A>
|
|
<H2>Verbs</H2>
|
|
<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 : (x1,_,_,_,_,x6 : Str) -> V ; -- geben, gibt, gib, gab, gäbe, gegeben
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Weak verbs are sometimes called regular verbs.
|
|
</P>
|
|
<PRE>
|
|
regV : Str -> V ; -- führen
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Irregular verbs use Ablaut and, in the worst cases, also Umlaut.
|
|
</P>
|
|
<PRE>
|
|
irregV : (x1,_,_,_,x5 : Str) -> V ; -- sehen, sieht, sah, sähe, gesehen
|
|
</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 -> V ;
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
To add a movable suffix e.g. <I>auf(fassen)</I>.
|
|
</P>
|
|
<PRE>
|
|
prefixV : Str -> V -> 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 -> V ;
|
|
habenV : V -> V ;
|
|
</PRE>
|
|
<P></P>
|
|
<P>
|
|
Reflexive verbs can take reflexive pronouns of different cases.
|
|
</P>
|
|
<PRE>
|
|
reflV : V -> Case -> V ;
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc9"></A>
|
|
<H3>Two-place verbs</H3>
|
|
<P>
|
|
Two-place verbs need a preposition, except the special case with direct object
|
|
(accusative, transitive verbs). There is also a case for dative objects.
|
|
</P>
|
|
<PRE>
|
|
mkV2 : V -> Prep -> V2 ;
|
|
|
|
dirV2 : V -> V2 ;
|
|
datV2 : V -> V2 ;
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc10"></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 -> Prep -> Prep -> V3 ; -- speak, with, about
|
|
dirV3 : V -> Prep -> V3 ; -- give,_,to
|
|
accdatV3 : V -> V3 ; -- give,_,_
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc11"></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 -> V0 ;
|
|
mkVS : V -> VS ;
|
|
mkV2S : V -> Prep -> V2S ;
|
|
mkVV : V -> VV ;
|
|
mkV2V : V -> Prep -> V2V ;
|
|
mkVA : V -> VA ;
|
|
mkV2A : V -> Prep -> V2A ;
|
|
mkVQ : V -> VQ ;
|
|
mkV2Q : V -> Prep -> V2Q ;
|
|
|
|
mkAS : A -> AS ;
|
|
mkA2S : A -> Prep -> A2S ;
|
|
mkAV : A -> AV ;
|
|
mkA2V : A -> Prep -> 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>
|
|
<A NAME="toc12"></A>
|
|
<H2>Definitions of paradigms</H2>
|
|
<P>
|
|
The definitions should not bother the user of the API. So they are
|
|
hidden from the document.
|
|
</P>
|
|
|
|
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
|
<!-- cmdline: txt2tags -thtml -\-toc german/ParadigmsGer.txt -->
|
|
</BODY></HTML>
|