mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-25 20:42:50 -06:00
updated gfdoc
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Russian Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-15 16:42:18 CEST</I><BR>
|
||||
<I>Last update: 2006-06-22 17:53:54 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -29,10 +29,10 @@ 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>
|
||||
Janna Khegai 2003--2005
|
||||
Janna Khegai 2003--2006
|
||||
</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.
|
||||
</P>
|
||||
@@ -41,7 +41,7 @@ Closed categories (determiners, pronouns, conjunctions) are
|
||||
accessed through the resource syntax API, <CODE>Structural.gf</CODE>.
|
||||
</P>
|
||||
<P>
|
||||
The main difference with <CODE>MorphoEng.gf</CODE> is that the types
|
||||
The main difference with <CODE>MorphoRus.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.
|
||||
@@ -51,9 +51,6 @@ 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>IrregularEng</CODE>, which covers all irregularly inflected
|
||||
words.
|
||||
</P>
|
||||
<P>
|
||||
The following modules are presupposed:
|
||||
@@ -121,7 +118,7 @@ Best case: indeclinabe nouns: <I>кофе</I>, <I>пальто</I>, <I>ВУЗ</I
|
||||
animate: Animacy;
|
||||
inanimate: Animacy;
|
||||
|
||||
mkIndeclinableNoun: Str -> Gender -> Animacy -> N ;
|
||||
mkIndeclinableNoun: Str -> Gender -> Animacy -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -135,7 +132,8 @@ to the Nominative or the Genetive one) is actually of no help,
|
||||
since there are a lot of exceptions and the gain is just one form less.
|
||||
</P>
|
||||
<PRE>
|
||||
mkN : (_,_,_,_,_,_,_,_,_,_,_,_ : Str) -> Gender -> Animacy -> N ;
|
||||
mkN : (nomSg, genSg, datSg, accSg, instSg, preposSg,
|
||||
nomPl, genPl, datPl, accPl, instPl, preposPl: Str) -> Gender -> Animacy -> N ;
|
||||
|
||||
-- мужчина, мужчины, мужчине, мужчину, мужчиной, мужчине
|
||||
-- мужчины, мужчин, мужчинам, мужчин, мужчинами, мужчинах
|
||||
@@ -158,7 +156,7 @@ Feminine patterns.
|
||||
nEdinica : Str -> N ; -- feminine, inanimate, ending with "-а", Inst -"единиц-ей"
|
||||
nZhenchina : Str -> N ; -- feminine, animate, ending with "-a"
|
||||
nNoga : Str -> N ; -- feminine, inanimate, ending with "г_к_х-a"
|
||||
nMalyariya : Str -> N ; -- feminine, inanimate, ending with "-ия"
|
||||
nMalyariya : Str -> N ; -- feminine, inanimate, ending with "-ия"
|
||||
nTetya : Str -> N ; -- feminine, animate, ending with "-я"
|
||||
nBol : Str -> N ; -- feminine, inanimate, ending with "-ь"(soft sign)
|
||||
</PRE>
|
||||
@@ -178,7 +176,7 @@ Masculine patterns.
|
||||
Ending with consonant:
|
||||
</P>
|
||||
<PRE>
|
||||
nPepel : Str -> N ; -- masculine, inanimate, ending with "-ел"- "пеп-ла"
|
||||
nPepel : Str -> N ; -- masculine, inanimate, ending with "-ел"- "пеп-ла"
|
||||
|
||||
nBrat: Str -> N ; -- animate, брат-ья
|
||||
nStul: Str -> N ; -- same as above, but inanimate
|
||||
@@ -209,7 +207,6 @@ Proper names.
|
||||
</P>
|
||||
<PRE>
|
||||
mkPN : Str -> Gender -> Animacy -> PN ; -- "Иван", "Маша"
|
||||
regPN : Str -> PN ;
|
||||
nounPN : N -> PN ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
@@ -227,20 +224,16 @@ On the top level, it is maybe <CODE>CN</CODE> that is used rather than <CODE>N</
|
||||
<P>
|
||||
Non-comparison (only positive degree) one-place adjectives need 28 (4 by 7)
|
||||
forms in the worst case:
|
||||
Masculine | Feminine | Neutral | Plural
|
||||
Nominative
|
||||
Genitive
|
||||
Dative
|
||||
Accusative Inanimate
|
||||
Accusative Animate
|
||||
Instructive
|
||||
Prepositional
|
||||
(Masculine | Feminine | Neutral | Plural) **
|
||||
**
|
||||
(Nominative | Genitive | Dative | Accusative Inanimate | Accusative Animate |
|
||||
Instructive | Prepositional)
|
||||
Notice that 4 short forms, which exist for some adjectives are not included
|
||||
in the current description, otherwise there would be 32 forms for
|
||||
positive degree.
|
||||
mkA : ( : Str) -> A ;
|
||||
endings below:
|
||||
The regular function captures the variants for some popular adjective
|
||||
endings below. The first string agrument is the masculine singular form,
|
||||
the second is comparative:
|
||||
</P>
|
||||
<PRE>
|
||||
@@ -257,12 +250,12 @@ Invariable adjective is a special case.
|
||||
<P>
|
||||
Some regular patterns depending on the ending.
|
||||
</P>
|
||||
AStaruyj : Str -> Str -> A ; -- ending with "-ый"
|
||||
AMalenkij : Str -> Str -> A ; -- ending with "-ий", Gen - "маленьк-ого"
|
||||
AKhoroshij : Str -> Str -> A ; -- ending with "-ий", Gen - "хорош-его"
|
||||
AMolodoj : Str -> Str -> A ; -- ending with "-ой",
|
||||
<PRE>
|
||||
AStaruyj : Str -> Str -> A ; -- ending with "-ый"
|
||||
AMalenkij : Str -> Str -> A ; -- ending with "-ий", Gen - "маленьк-ого"
|
||||
AKhoroshij : Str -> Str -> A ; -- ending with "-ий", Gen - "хорош-его"
|
||||
AMolodoj : Str -> Str -> A ; -- ending with "-ой",
|
||||
AKakoj_Nibud : Str -> Str -> Str -> A ; -- ending with "-ой",
|
||||
-- plural - молод-ые"
|
||||
AKakoj_Nibud : Str -> Str -> Str -> A ; -- ending with "-ой",
|
||||
-- plural - "как-ие"
|
||||
</PRE>
|
||||
@@ -276,11 +269,11 @@ Two-place adjectives need a preposition and a case as extra arguments.
|
||||
<P></P>
|
||||
<P>
|
||||
Comparison adjectives need a positive adjective
|
||||
Taking only one comparative form (non-syntaxic) and
|
||||
only one superlative form (syntaxic) we can produce the
|
||||
(28 forms without short forms).
|
||||
Taking only one comparative form (non-syntactic) and
|
||||
only one superlative form (syntactic) we can produce the
|
||||
non-syntaxic comparative form.
|
||||
Syntaxic forms are based on the positive forms.
|
||||
comparison adjective with only one extra argument -
|
||||
non-syntactic comparative form.
|
||||
Syntactic forms are based on the positive forms.
|
||||
mkADeg : A -> Str -> ADeg ;
|
||||
On top level, there are adjectival phrases. The most common case is
|
||||
@@ -289,8 +282,7 @@ ap : A -> IsPostfixAdj -> AP ;
|
||||
</P>
|
||||
<A NAME="toc4"></A>
|
||||
<H2>Adverbs</H2>
|
||||
Adverbs are not inflected. Most lexical ones have position
|
||||
after the verb. Some can be preverbal (e.g. <I>always</I>).
|
||||
<P>
|
||||
Adverbs are not inflected.
|
||||
</P>
|
||||
<PRE>
|
||||
@@ -305,29 +297,22 @@ In our lexicon description (<I>Verbum</I>) there are 62 forms:
|
||||
[ [2(Number) by 3(Person)](present) + [2(Number) by 3(Person)](future) +
|
||||
4(GenNum)(past) ](indicative)+ 4 (GenNum) (subjunctive) }
|
||||
Participles (Present and Past) and Gerund forms are not included,
|
||||
rather than verbs. Aspect regarded as an inherent parameter of a verb.
|
||||
Notice, that some forms are never used for some verbs. Actually,
|
||||
the majority of verbs do not have many of the forms.
|
||||
since they fuction more like Adjectives and Adverbs correspondingly
|
||||
rather than verbs. Aspect is regarded as an inherent parameter of a verb.
|
||||
Notice, that some forms are never used for some verbs.
|
||||
</P>
|
||||
<PRE>
|
||||
Voice: Type;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Tense : Type;
|
||||
</P>
|
||||
<PRE>
|
||||
Aspect: Type;
|
||||
Bool: Type;
|
||||
Conjugation: Type ;
|
||||
first: Conjugation; -- "гуля-Ешь, гуля-Ем"
|
||||
firstE: Conjugation; -- Verbs with vowel "ё": "даёшь" (give), "пьёшь" (drink)
|
||||
second: Conjugation; -- "вид-Ишь, вид-Им"
|
||||
mixed: Conjugation; -- "хоч-Ешь - хот-Им"
|
||||
|
||||
first: Conjugation; -- "гуля-Ешь, гуля-Ем"
|
||||
firstE: Conjugation; -- Verbs with vowel "ё": "даёшь" (give), "пьёшь" (drink)
|
||||
second: Conjugation; -- "вид-Ишь, вид-Им"
|
||||
mixed: Conjugation; -- "хоч-Ешь - хот-Им"
|
||||
dolzhen: Conjugation; -- irregular
|
||||
true: Bool;
|
||||
|
||||
true: Bool;
|
||||
false: Bool;
|
||||
|
||||
@@ -337,8 +322,6 @@ Tense : Type;
|
||||
perfective: Aspect ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
present : Tense ;
|
||||
past : Tense ;
|
||||
<P>
|
||||
The worst case need 6 forms of the present tense in indicative mood
|
||||
(<I>я бегу</I>, <I>ты бежишь</I>, <I>он бежит</I>, <I>мы бежим</I>, <I>вы бежите</I>, <I>они бегут</I>),
|
||||
@@ -346,7 +329,9 @@ a past form (singular, masculine: <I>я бежал</I>), an imperative form
|
||||
(singular, second person: <I>беги</I>), an infinitive (<I>бежать</I>).
|
||||
Inherent aspect should also be specified.
|
||||
</P>
|
||||
mkVerbum : Aspect -> (_,_,_,_,_,_,_,_,_ : Str) -> V ;
|
||||
<PRE>
|
||||
mkVerbum : Aspect -> (presentSgP1,presentSgP2,presentSgP3,
|
||||
presentPlP1,presentPlP2,presentPlP3,
|
||||
pastSgMasculine,imperative,infinitive: Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
@@ -362,7 +347,8 @@ So the definition for verb <I>любить</I> looks like:
|
||||
So the definition for verb <I>любить</I> looks like:
|
||||
regV Imperfective Second <I>люб</I> <I>лю</I> <I>любил</I> <I>люби</I> <I>любить</I>;
|
||||
</P>
|
||||
regV :Aspect -> Conjugation -> (_,_,_,_,_ : Str) -> V ;
|
||||
<PRE>
|
||||
regV :Aspect -> Conjugation -> (stemPresentSgP1,endingPresentSgP1,
|
||||
pastSgP1,imperative,infinitive : Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
@@ -384,6 +370,10 @@ a particle can be included in a <CODE>V</CODE>.
|
||||
dirV2 : V -> V2 ; -- "видеть", "любить"
|
||||
tvDirDir : V -> V3 ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<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) -->
|
||||
|
||||
Reference in New Issue
Block a user