mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-26 04:52:51 -06:00
updated gfdoc
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Norwegian Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-15 15:58:53 CEST</I><BR>
|
||||
<I>Last update: 2006-06-22 21:16:02 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -28,7 +28,7 @@
|
||||
<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="#toc11">Verbs with 'være' as auxiliary</A>
|
||||
<LI><A HREF="#toc12">Verbs with a particle.</A>
|
||||
<LI><A HREF="#toc13">Deponent verbs.</A>
|
||||
<LI><A HREF="#toc14">Two-place verbs</A>
|
||||
@@ -49,13 +49,14 @@ gfdoc - a rudimentary GF document generator.
|
||||
Aarne Ranta 2003
|
||||
</P>
|
||||
<P>
|
||||
This is an API to the user of the resource grammar
|
||||
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.
|
||||
It covers the <I>bokmål</I> variant of Norwegian.
|
||||
</P>
|
||||
<P>
|
||||
Closed categories (determiners, pronouns, conjunctions) are
|
||||
accessed through the resource syntax API, <CODE>Structural.gf</CODE>.
|
||||
accessed through the resource syntax API, <CODE>Structural</CODE>.
|
||||
</P>
|
||||
<P>
|
||||
The main difference with <CODE>MorphoNor.gf</CODE> is that the types
|
||||
@@ -69,8 +70,8 @@ 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>IrregularEng</CODE>, which covers all irregularly inflected
|
||||
words.
|
||||
separate module <A HREF="../../norwegian/IrregNor"><CODE>IrregNor</CODE></A>,
|
||||
which covers irregularly inflected verbs.
|
||||
</P>
|
||||
<PRE>
|
||||
resource ParadigmsNor =
|
||||
@@ -170,7 +171,7 @@ such as <I>fotboll</I>.
|
||||
<A NAME="toc4"></A>
|
||||
<H3>Relational nouns</H3>
|
||||
<P>
|
||||
Relational nouns (<I>daughter of x</I>) need a preposition.
|
||||
Relational nouns (<I>datter til x</I>) need a preposition.
|
||||
</P>
|
||||
<PRE>
|
||||
mkN2 : N -> Prep -> N2 ;
|
||||
@@ -189,7 +190,8 @@ Use the function <CODE>mkPrep</CODE> or see the section on prepositions below to
|
||||
form other prepositions.
|
||||
</P>
|
||||
<P>
|
||||
Three-place relational nouns (<I>the connection from x to y</I>) need two prepositions.
|
||||
Three-place relational nouns (<I>forbindelse fra x til y</I>)
|
||||
need two prepositions.
|
||||
</P>
|
||||
<PRE>
|
||||
mkN3 : N -> Prep -> Prep -> N3 ;
|
||||
@@ -199,7 +201,7 @@ Three-place relational nouns (<I>the connection from x to y</I>) need two prepos
|
||||
<H3>Relational common noun phrases</H3>
|
||||
<P>
|
||||
In some cases, you may want to make a complex <CODE>CN</CODE> into a
|
||||
relational noun (e.g. <I>the old town hall of</I>). However, <CODE>N2</CODE> and
|
||||
relational noun (e.g. <I>den gamle kongen av</I>). However, <CODE>N2</CODE> and
|
||||
<CODE>N3</CODE> are purely lexical categories. But you can use the <CODE>AdvCN</CODE>
|
||||
and <CODE>PrepNP</CODE> constructions to build phrases like this.
|
||||
</P>
|
||||
@@ -286,12 +288,12 @@ Just the comparison forms can be irregular.
|
||||
Sometimes just the positive forms are irregular.
|
||||
</P>
|
||||
<PRE>
|
||||
mk3ADeg : (galen,galet,galna : Str) -> A ;
|
||||
mk3ADeg : (galen,galet,galne : Str) -> A ;
|
||||
mk2ADeg : (bred,bredt : Str) -> A ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
If comparison is formed by <I>mer, //mest</I>, as in general for//
|
||||
If comparison is formed by <I>mer</I>, <I>mest</I>, as in general for
|
||||
long adjective, the following pattern is used:
|
||||
</P>
|
||||
<PRE>
|
||||
@@ -302,11 +304,11 @@ long adjective, the following pattern is used:
|
||||
<H2>Adverbs</H2>
|
||||
<P>
|
||||
Adverbs are not inflected. Most lexical ones have position
|
||||
after the verb. Some can be preverbal (e.g. <I>always</I>).
|
||||
after the verb. Some follow the verb (e.g. <I>altid</I>).
|
||||
</P>
|
||||
<PRE>
|
||||
mkAdv : Str -> Adv ;
|
||||
mkAdV : Str -> AdV ;
|
||||
mkAdv : Str -> Adv ; -- e.g. her
|
||||
mkAdV : Str -> AdV ; -- e.g. altid
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -348,7 +350,7 @@ In practice, it is enough to give three forms, as in school books.
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc11"></A>
|
||||
<H3>Verbs with //være// as auxiliary</H3>
|
||||
<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>.
|
||||
</P>
|
||||
@@ -359,7 +361,7 @@ By default, the auxiliary is <I>have</I>. This function changes it to <I>v
|
||||
<A NAME="toc12"></A>
|
||||
<H3>Verbs with a particle.</H3>
|
||||
<P>
|
||||
The particle, such as in <I>switch on</I>, is given as a string.
|
||||
The particle, such as in <I>lukke opp</I>, is given as a string.
|
||||
</P>
|
||||
<PRE>
|
||||
partV : V -> Str -> V ;
|
||||
@@ -368,8 +370,8 @@ The particle, such as in <I>switch on</I>, is given as a string.
|
||||
<A NAME="toc13"></A>
|
||||
<H3>Deponent verbs.</H3>
|
||||
<P>
|
||||
Some words are used in passive forms only, e.g. <I>hoppas</I>, some as
|
||||
reflexive e.g. <I>ångra sig</I>.
|
||||
Some words are used in passive forms only, e.g. <I>trives</I>, some as
|
||||
reflexive e.g. <I>forestille seg</I>.
|
||||
</P>
|
||||
<PRE>
|
||||
depV : V -> V ;
|
||||
@@ -395,9 +397,9 @@ 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
|
||||
dirdirV3 : V -> V3 ; -- give,_,_
|
||||
mkV3 : V -> Prep -> Prep -> V3 ; -- snakke, med, om
|
||||
dirV3 : V -> Prep -> V3 ; -- gi,_,til
|
||||
dirdirV3 : V -> V3 ; -- gi,_,_
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc16"></A>
|
||||
|
||||
Reference in New Issue
Block a user