mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-25 12:32:50 -06:00
updated doc
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Danish Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-07-02 00:15:01 CEST</I><BR>
|
||||
<I>Last update: 2007-07-06 10:12:24 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -28,8 +28,8 @@
|
||||
<LI><A HREF="#toc9">Adverbs</A>
|
||||
<LI><A HREF="#toc10">Verbs</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc11">Verbs with 'være' as auxiliary</A>
|
||||
<LI><A HREF="#toc12">Verbs with a particle</A>
|
||||
<LI><A HREF="#toc11">Verbs with a particle.</A>
|
||||
<LI><A HREF="#toc12">Verbs with 'være' as auxiliary</A>
|
||||
<LI><A HREF="#toc13">Deponent verbs</A>
|
||||
<LI><A HREF="#toc14">Two-place verbs</A>
|
||||
<LI><A HREF="#toc15">Three-place verbs</A>
|
||||
@@ -126,12 +126,8 @@ Prepositions used in many-argument functions are just strings.
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Nouns</H2>
|
||||
<P>
|
||||
Worst case: give all four forms. The gender is computed from the
|
||||
last letter of the second form (if <I>n</I>, then <CODE>utrum</CODE>, otherwise <CODE>neutrum</CODE>).
|
||||
</P>
|
||||
<PRE>
|
||||
mkN : (dreng,drengen,drenge,drengene : Str) -> N ;
|
||||
mkN : overload {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -141,14 +137,14 @@ The heuristic is that all nouns are <CODE>utrum</CODE> with the
|
||||
plural ending <I>er</I> or <I>r</I>.
|
||||
</P>
|
||||
<PRE>
|
||||
regN : Str -> N ;
|
||||
mkN : (bil : Str) -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Giving gender manually makes the heuristic more reliable.
|
||||
</P>
|
||||
<PRE>
|
||||
regGenN : Str -> Gender -> N ;
|
||||
mkN : (hus : Str) -> Gender -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -156,7 +152,7 @@ This function takes the singular indefinite and definite forms; the
|
||||
gender is computed from the definite form.
|
||||
</P>
|
||||
<PRE>
|
||||
mk2N : (bil,bilen : Str) -> N ;
|
||||
mkN : (bil,bilen : Str) -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -164,7 +160,16 @@ This function takes the singular indefinite and definite and the plural
|
||||
indefinite
|
||||
</P>
|
||||
<PRE>
|
||||
mk3N : (bil,bilen,biler : Str) -> N ;
|
||||
mkN : (bil,bilen,biler : Str) -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Worst case: give all four forms. The gender is computed from the
|
||||
last letter of the second form (if <I>n</I>, then <CODE>utrum</CODE>, otherwise <CODE>neutrum</CODE>).
|
||||
</P>
|
||||
<PRE>
|
||||
mkN : (dreng,drengen,drenge,drengene : Str) -> N ;
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
@@ -216,46 +221,34 @@ and <CODE>PrepNP</CODE> constructions to build phrases like this.
|
||||
Proper names, with a regular genitive, are formed as follows
|
||||
</P>
|
||||
<PRE>
|
||||
mkPN : Str -> Gender -> PN ; -- Paris neutrum
|
||||
regPN : Str -> PN ; -- utrum gender
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Sometimes you can reuse a common noun as a proper name, e.g. <I>Bank</I>.
|
||||
</P>
|
||||
<PRE>
|
||||
nounPN : N -> PN ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
To form a noun phrase that can also be plural and have an irregular
|
||||
genitive, you can use the worst-case function.
|
||||
</P>
|
||||
<PRE>
|
||||
mkNP : Str -> Str -> Number -> Gender -> NP ;
|
||||
mkPN : overload {
|
||||
mkPN : Str -> PN ; -- utrum
|
||||
mkPN : Str -> Gender -> PN ;
|
||||
mkPN : N -> PN ;
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc7"></A>
|
||||
<H2>Adjectives</H2>
|
||||
<P>
|
||||
Non-comparison one-place adjectives need three forms:
|
||||
The regular pattern works for many adjectives, e.g. those ending
|
||||
with <I>ig</I>. Two, five, or at worst five forms are sometimes needed.
|
||||
</P>
|
||||
<PRE>
|
||||
mkA : (galen,galet,galne : Str) -> A ;
|
||||
mkA : overload {
|
||||
mkA : (fin : Str) -> A ;
|
||||
mkA : (fin,fint : Str) -> A ;
|
||||
mkA : (galen,galet,galne : Str) -> A ;
|
||||
mkA : (stor,stort,store,storre,storst : Str) -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
For regular adjectives, the other forms are derived.
|
||||
If comparison is formed by <I>mer</I>, <I>mest</I>, as in general for
|
||||
long adjective, the following pattern is used:
|
||||
</P>
|
||||
<PRE>
|
||||
regA : Str -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
In most cases, two forms are enough.
|
||||
</P>
|
||||
<PRE>
|
||||
mk2A : (stor,stort : Str) -> A ;
|
||||
mkA : A -> A ; -- -/mer/mest norsk
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc8"></A>
|
||||
@@ -267,44 +260,6 @@ Two-place adjectives need a preposition for their second argument.
|
||||
mkA2 : A -> Prep -> A2 ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Comparison adjectives may need as many as five forms.
|
||||
</P>
|
||||
<PRE>
|
||||
mkADeg : (stor,stort,store,storre,storst : Str) -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
The regular pattern works for many adjectives, e.g. those ending
|
||||
with <I>ig</I>.
|
||||
</P>
|
||||
<PRE>
|
||||
regADeg : Str -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Just the comparison forms can be irregular.
|
||||
</P>
|
||||
<PRE>
|
||||
irregADeg : (tung,tyngre,tyngst : Str) -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Sometimes just the positive forms are irregular.
|
||||
</P>
|
||||
<PRE>
|
||||
mk3ADeg : (galen,galet,galna : Str) -> A ;
|
||||
mk2ADeg : (bred,bredt : Str) -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
If comparison is formed by <I>mer</I>, <I>mest</I>, as in general for
|
||||
long adjective, the following pattern is used:
|
||||
</P>
|
||||
<PRE>
|
||||
compoundA : A -> A ; -- -/mer/mest norsk
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc9"></A>
|
||||
<H2>Adverbs</H2>
|
||||
<P>
|
||||
@@ -326,25 +281,22 @@ Adverbs modifying adjectives and sentences can also be formed.
|
||||
<P></P>
|
||||
<A NAME="toc10"></A>
|
||||
<H2>Verbs</H2>
|
||||
<P>
|
||||
The worst case needs six forms.
|
||||
</P>
|
||||
<PRE>
|
||||
mkV : (spise,spiser,spises,spiste,spist,spis : Str) -> V ;
|
||||
mkV : overload {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
The 'regular verb' function is the first conjugation.
|
||||
</P>
|
||||
<PRE>
|
||||
regV : (snakke : Str) -> V ;
|
||||
mkV : (snakke : Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
The almost regular verb function needs the infinitive and the preteritum.
|
||||
</P>
|
||||
<PRE>
|
||||
mk2V : (leve,levde : Str) -> V ;
|
||||
mkV : (leve,levde : Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -352,10 +304,27 @@ There is an extensive list of irregular verbs in the module <CODE>IrregDan</CODE
|
||||
In practice, it is enough to give three forms, as in school books.
|
||||
</P>
|
||||
<PRE>
|
||||
irregV : (drikke, drak, drukket : Str) -> V ;
|
||||
mkV : (drikke, drakk, drukket : Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
The worst case needs six forms.
|
||||
</P>
|
||||
<PRE>
|
||||
mkV : (spise,spiser,spises,spiste,spist,spis : Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc11"></A>
|
||||
<H3>Verbs with a particle.</H3>
|
||||
<P>
|
||||
The particle, such as in <I>lukke op</I>, is given as a string.
|
||||
</P>
|
||||
<PRE>
|
||||
mkV : V -> Str -> V ;
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc12"></A>
|
||||
<H3>Verbs with 'være' as auxiliary</H3>
|
||||
<P>
|
||||
By default, the auxiliary is <I>have</I>. This function changes it to <I>være</I>.
|
||||
@@ -364,15 +333,6 @@ By default, the auxiliary is <I>have</I>. This function changes it to <I>v
|
||||
vaereV : V -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc12"></A>
|
||||
<H3>Verbs with a particle</H3>
|
||||
<P>
|
||||
The particle, such as in <I>passe på</I>, is given as a string.
|
||||
</P>
|
||||
<PRE>
|
||||
partV : V -> Str -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc13"></A>
|
||||
<H3>Deponent verbs</H3>
|
||||
<P>
|
||||
@@ -388,12 +348,14 @@ reflexive e.g. <I>forestille sig</I>.
|
||||
<H3>Two-place verbs</H3>
|
||||
<P>
|
||||
Two-place verbs need a preposition, except the special case with direct object.
|
||||
(transitive verbs). Notice that a particle comes from the <CODE>V</CODE>.
|
||||
(transitive verbs). Notice that, if a particle is needed, it comes from the <CODE>V</CODE>.
|
||||
</P>
|
||||
<PRE>
|
||||
mkV2 : V -> Prep -> V2 ;
|
||||
|
||||
dirV2 : V -> V2 ;
|
||||
mkV2 : overload {
|
||||
mkV2 : Str -> V2 ;
|
||||
mkV2 : V -> V2 ;
|
||||
mkV2 : V -> Prep -> V2 ;
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc15"></A>
|
||||
@@ -443,6 +405,6 @@ as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.4 (http://txt2tags.sf.net) -->
|
||||
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc danish/ParadigmsDan.txt -->
|
||||
</BODY></HTML>
|
||||
|
||||
Reference in New Issue
Block a user