From cb73519ffdf55922216a819098275147b20686a8 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 17 Dec 2010 08:51:28 +0000 Subject: [PATCH] synopsis with better intro and Urdu improvements --- lib/doc/synopsis-intro.txt | 53 +++- lib/doc/synopsis.html | 583 +++++++++++++++++------------------ lib/src/urdu/ParadigmsUrd.gf | 36 ++- 3 files changed, 348 insertions(+), 324 deletions(-) diff --git a/lib/doc/synopsis-intro.txt b/lib/doc/synopsis-intro.txt index 1a6550e46..1f4651b72 100644 --- a/lib/doc/synopsis-intro.txt +++ b/lib/doc/synopsis-intro.txt @@ -1,33 +1,54 @@ + + + + =Introduction= -This document contains the most important parts of the GF Resource Grammar API. -It has been machine-generated from the source files; each chapter gives a link +The GF Resource Grammar Library is the standard library for Grammatical Framework. +It covers the morphology and basic syntax of currently 16 languages. + +This document contains the most important parts of the GF Resource Grammar API, +as needed by a GF application programmer. +It has been machine-generated from the source files; there are links to the relevant source files, which give more information. Some of the files have not yet been prepared so that the machine generated documentation has the nicest possible format. -The current status of resource grammar completion for different languages is shown -in [``status.html`` ./status.html]. - -The [first chapter #toc2] shows the categories, with links to the functions for +The main contents are: +- [Chapter 1 #toc2]: categories, with links to the functions for constructing trees in them. +- [Chapter 2 #toc5]: syntactic construction functions, with cross-links and +examples. +- [Chapter 3 #toc83]: morphological paradigms. +- [Chapter 4 #toc100]: how to "browse" the library by +loading the grammars into the ``gf`` command editor. +- [Chapter 5 #toc101]: a brief example of how application grammars can +use the resource modules. +- [Detailed table of contents #toc102]. -The [second chapter #toc5] shows the construction functions, with cross-links and -examples. Most examples can be seen in multiple languages by hovering the + +Many examples in [Chapter 2 #toc5] can be seen in multiple languages by hovering the mouse over the example, as shown in the following screenshot: [hovering.png] -The [third chapter #toc83] shows morphological paradigms. +Other relevant documents: +- [``status.html`` ./status.html]: the current status of different languages + and the authors of each grammar +- [Resource Grammar Tutorial http://www.grammaticalframework.org/doc/gf-lrec-2010.pdf] + as presented in LREC-2010. +- Paper "The GF Resource Grammar Library" by A. Ranta + (//Linguistic Issues in Language Technology//, 2 (2), 2009). An overview of + the library with linguistic motivations. + [PDF http://elanguage.net/journals/index.php/lilt/article/viewFile/214/158] +- Paper "Grammars as Software Libraries" by A. Ranta + (In Y. Bertot, G. Huet, J-J. Lévy, and G. Plotkin (eds.), + //From Semantics to Computer Science//, Cambridge University Press, + Cambridge, pp. 281--308, 2009). + The library from a software engineering point of view. + [PDF http://www.cse.chalmers.se/~aarne/old/articles/libraries-kahn.pdf] -The [fourth chapter #toc100] gives instructions on how to "browse" the library by -loading the grammars into the ``gf`` command editor. -The [last chapter #toc101] contains a brief example of how application grammars can -import resource modules. At the same time, it illustrates a "design pattern" for -using the resource API to build functor-based applications - -The [table of contents #toc102] is at the end of the file. diff --git a/lib/doc/synopsis.html b/lib/doc/synopsis.html index a1780a456..e37890c2a 100644 --- a/lib/doc/synopsis.html +++ b/lib/doc/synopsis.html @@ -14,43 +14,60 @@

Introduction

-This document contains the most important parts of the GF Resource Grammar API. -It has been machine-generated from the source files; each chapter gives a link +The GF Resource Grammar Library is the standard library for Grammatical Framework. +It covers the morphology and basic syntax of currently 16 languages. +

+

+This document contains the most important parts of the GF Resource Grammar API, +as needed by a GF application programmer. +It has been machine-generated from the source files; there are links to the relevant source files, which give more information. Some of the files have not yet been prepared so that the machine generated documentation has the nicest possible format.

-The current status of resource grammar completion for different languages is shown -in status.html. +The main contents are:

-

-The first chapter shows the categories, with links to the functions for +

+

-The second chapter shows the construction functions, with cross-links and -examples. Most examples can be seen in multiple languages by hovering the +Many examples in Chapter 2 can be seen in multiple languages by hovering the mouse over the example, as shown in the following screenshot:

-The third chapter shows morphological paradigms. -

-

-The fourth chapter gives instructions on how to "browse" the library by -loading the grammars into the gf command editor. -

-

-The last chapter contains a brief example of how application grammars can -import resource modules. At the same time, it illustrates a "design pattern" for -using the resource API to build functor-based applications -

-

-The table of contents is at the end of the file. +Other relevant documents:

+ +

Categories

@@ -70,7 +87,7 @@ of C that takes D as an argument. What the constructors exactly ar and what other arguments they take, is described by separate tables for each category.

- +
@@ -135,7 +152,7 @@ also in the Paradigms modules.

Explanations

-
+
@@ -480,7 +497,7 @@ Lexical category, constructors given in

AP - adjectival phrase

-
Category Explanation
+
@@ -504,12 +521,12 @@ Lexical category, constructors given in - + - + @@ -570,7 +587,7 @@ Lexical category, constructors given in

AdA - adjective-modifying adverb

-
Function Type
mkAP A2 -> NP -> AP
married to her
married to her
mkAP A2 -> AP
married
married
mkAP
+
@@ -605,7 +622,7 @@ Lexical category, constructors given in

AdN - numeral-modifying adverb

-
Function Type
+
@@ -635,7 +652,7 @@ Lexical category, constructors given in

AdV - adverb directly attached to verb

-
Function Type
+
@@ -650,7 +667,7 @@ Lexical category, constructors given in

Adv - verb-phrase-modifying adverb

-
Function Type
+
@@ -684,22 +701,22 @@ Lexical category, constructors given in - + - + - + - + @@ -714,7 +731,7 @@ Lexical category, constructors given in - + @@ -740,7 +757,7 @@ Lexical category, constructors given in

Ant - anteriority

-
Function Type
mkAdv Prep -> NP -> Adv
in the house
in the house
mkAdv Subj -> S -> Adv
when she sleeps
when she sleeps
mkAdv CAdv -> A -> NP -> Adv
more warmly than he
more warmly than he
mkAdv CAdv -> A -> S -> Adv
more warmly than he runs
more warmly than he runs
mkAdv
mkAdv Conj -> ListAdv -> Adv
with her , here and now
with her , here and now
somewhere_Adv
+
@@ -760,7 +777,7 @@ Lexical category, constructors given in

CAdv - comparative adverb

-
Function Type
+
@@ -785,7 +802,7 @@ Lexical category, constructors given in

CN - common noun (without determiner)

-
Function Type
+
@@ -839,12 +856,12 @@ Lexical category, constructors given in - + - + @@ -890,7 +907,7 @@ Lexical category, constructors given in

Card - cardinal number

-
Function Type
mkCN N -> RS -> CN
man whom she loves
man whom she loves
mkCN CN -> RS -> CN
old man whom she loves
old man whom she loves
mkCN
+
@@ -920,7 +937,7 @@ Lexical category, constructors given in

Cl - declarative clause, with all tenses

-
Function Type
+
@@ -944,7 +961,7 @@ Lexical category, constructors given in - + @@ -959,7 +976,7 @@ Lexical category, constructors given in - + @@ -974,17 +991,17 @@ Lexical category, constructors given in - + - + - + @@ -1009,7 +1026,7 @@ Lexical category, constructors given in - + @@ -1054,7 +1071,7 @@ Lexical category, constructors given in - + @@ -1079,13 +1096,13 @@ Lexical category, constructors given in - +
Function Type
mkCl NP -> V3 -> NP -> NP -> Cl
she sends it to him
she sends it to him
mkCl
mkCl NP -> VQ -> QS -> Cl
she wonders who sleeps
she wonders who sleeps
mkCl
mkCl NP -> V2A -> NP -> A -> Cl
she paints it red
she paints it red
mkCl NP -> V2A -> NP -> AP -> Cl
she paints it red
she paints it red
mkCl NP -> V2S -> NP -> S -> Cl
she answers to him that we sleep
she answers to him that we sleep
mkCl
mkCl NP -> A2 -> NP -> Cl
she is married to him
she is married to him
mkCl
mkCl NP -> Cl
there are many houses
there are many houses
mkCl
mkCl SC -> VP -> Cl
that she sleeps is good
that she sleeps is good

ClSlash

- +
@@ -1125,7 +1142,7 @@ Lexical category, constructors given in

Comp - complement of copula, such as AP

-
Function Type
+
@@ -1150,7 +1167,7 @@ Lexical category, constructors given in

Conj - conjunction

-
Function Type
+
@@ -1185,7 +1202,7 @@ Lexical category, constructors given in

Det - determiner phrase

-
Function Type
+
@@ -1305,7 +1322,7 @@ Lexical category, constructors given in

Dig

-
Function Type
+
@@ -1365,7 +1382,7 @@ Lexical category, constructors given in

Digits - cardinal or ordinal in digits

-
Function Type
+
@@ -1379,18 +1396,18 @@ Lexical category, constructors given in - + - +
Function Type
mkDigits Dig -> Digits
//
4
mkDigits Dig -> Digits -> Digits
//
1 , 2 3 3 , 4 8 6

IAdv - interrogative adverb

- +
@@ -1409,12 +1426,12 @@ Lexical category, constructors given in - + - + @@ -1435,7 +1452,7 @@ Lexical category, constructors given in

IComp - interrogative complement of copula

-
Function Type
mkIAdv Prep -> IP -> IAdv
in which city
in which city
mkIAdv IAdv -> Adv -> IAdv
where in Paris
where in Paris
when_IAdv
+
@@ -1455,7 +1472,7 @@ Lexical category, constructors given in

IDet - interrogative determiner

-
Function Type
+
@@ -1469,7 +1486,7 @@ Lexical category, constructors given in - + @@ -1490,7 +1507,7 @@ Lexical category, constructors given in

IP - interrogative pronoun

-
Function Type
mkIDet IQuant -> Num -> IDet
which
which
mkIDet
+
@@ -1499,37 +1516,37 @@ Lexical category, constructors given in - + - + - + - + - + - + - + @@ -1565,7 +1582,7 @@ Lexical category, constructors given in

IQuant

-
Function Type
mkIP IDet -> CN -> IP
which five big cities
which five big cities
mkIP IDet -> N -> IP
which five cities
which five cities
mkIP IDet -> IP
which five
which five
mkIP IQuant -> CN -> IP
which big city
which big city
mkIP IQuant -> Num -> CN -> IP
which five big cities
which five big cities
mkIP IQuant -> N -> IP
which city
which city
mkIP IP -> Adv -> IP
who in Paris
who in Paris
whatPl_IP
+
@@ -1580,7 +1597,7 @@ Lexical category, constructors given in

Imp - imperative

-
Function Type
+
@@ -1599,13 +1616,13 @@ Lexical category, constructors given in - +
Function Type
mkImp V2 -> NP -> Imp
buy it
buy it

ImpForm

- +
@@ -1614,7 +1631,7 @@ Lexical category, constructors given in - + @@ -1636,7 +1653,7 @@ Lexical category, constructors given in

ListAP

-
Function Type
pluralImpForm ImpForm
be men
be men
politeImpForm
+
@@ -1656,7 +1673,7 @@ Lexical category, constructors given in

ListAdv

-
Function Type
+
@@ -1676,7 +1693,7 @@ Lexical category, constructors given in

ListNP

-
Function Type
+
@@ -1696,7 +1713,7 @@ Lexical category, constructors given in

ListRS

-
Function Type
+
@@ -1716,7 +1733,7 @@ Lexical category, constructors given in

ListS

-
Function Type
+
@@ -1754,7 +1771,7 @@ Lexical category, constructors given in

NP - noun phrase (subject or object)

-
Function Type
+
@@ -1793,47 +1810,47 @@ Lexical category, constructors given in - + - + - + - + - + - + - + - + - + @@ -1848,7 +1865,7 @@ Lexical category, constructors given in - + @@ -1883,22 +1900,22 @@ Lexical category, constructors given in - + - + - + - + @@ -1974,7 +1991,7 @@ Lexical category, constructors given in

Num - number determining element

-
Function Type
mkNP Quant -> CN -> NP
this old man
this old man
mkNP Quant -> Num -> CN -> NP
these five old men
these five old men
mkNP Quant -> Num -> N -> NP
these five men
these five men
mkNP Det -> CN -> NP
the five old men
the five old men
mkNP Det -> N -> NP
the five men
the five men
mkNP Numeral -> CN -> NP
fifty old men
fifty old men
mkNP Numeral -> N -> NP
fifty men
fifty men
mkNP Digits -> CN -> NP
old men
5 1 old men
mkNP Digits -> N -> NP
men
5 1 men
mkNP
mkNP Pron -> CN -> NP
my old man
my old man
mkNP
mkNP CN -> NP
old beer
old beer
mkNP N -> NP
beer
beer
mkNP Predet -> NP -> NP
only this woman
only this woman
mkNP NP -> V2 -> NP
the man seen
the man seen
mkNP
+
@@ -1993,7 +2010,7 @@ Lexical category, constructors given in - + @@ -2024,7 +2041,7 @@ Lexical category, constructors given in

Numeral - cardinal or ordinal in words

-
Function Type
mkNum Digits -> Num
//
2 1
mkNum
+
@@ -2064,7 +2081,7 @@ Lexical category, constructors given in

Ord - ordinal number (used in Det)

-
Function Type
+
@@ -2094,7 +2111,7 @@ Lexical category, constructors given in

PConj - phrase-beginning conjunction

-
Function Type
+
@@ -2130,7 +2147,7 @@ Lexical category, constructors given in

Phr - phrase in a text

-
Function Type
+
@@ -2139,7 +2156,7 @@ Lexical category, constructors given in - + @@ -2165,7 +2182,7 @@ Lexical category, constructors given in

Pol - polarity

-
Function Type
mkPhr (PConj) -> Utt -> (Voc) -> Phr
but sleep , my friend
but sleep , my friend
mkPhr
+
@@ -2185,7 +2202,7 @@ Lexical category, constructors given in

Predet - predeterminer (prefixed Quant)

-
Function Type
+
@@ -2215,7 +2232,7 @@ Lexical category, constructors given in

Prep - preposition, or just case

-
Function Type
+
@@ -2330,7 +2347,7 @@ Lexical category, constructors given in

Pron - personal pronoun

-
Function Type
+
@@ -2385,7 +2402,7 @@ Lexical category, constructors given in

Punct

-
Function Type
+
@@ -2394,7 +2411,7 @@ Lexical category, constructors given in - + @@ -2404,13 +2421,13 @@ Lexical category, constructors given in - +
Function Type
exclMarkPunct Punct
yes !
yes !
fullStopPunct
questMarkPunct Punct
yes ?
yes ?

QCl - question clause, with all tenses

- +
@@ -2439,7 +2456,7 @@ Lexical category, constructors given in - + @@ -2534,7 +2551,7 @@ Lexical category, constructors given in - + @@ -2549,7 +2566,7 @@ Lexical category, constructors given in - + @@ -2564,13 +2581,13 @@ Lexical category, constructors given in - +
Function Type
mkQCl IP -> V3 -> NP -> NP -> QCl
who sends it to her
who sends it to her
mkQCl
mkQCl IP -> NP -> V2 -> QCl
who is her
who is her
mkQCl
mkQCl Prep -> IP -> Cl -> QCl
with whom does she sleep
with whom does she sleep
mkQCl
mkQCl IP -> QCl
which city is there
which city is there

QS - question

- +
@@ -2579,7 +2596,7 @@ Lexical category, constructors given in - + @@ -2590,7 +2607,7 @@ Lexical category, constructors given in

Quant - quantifier ('nucleus' of Det)

-
Function Type
mkQS (Tense) -> (Ant) -> (Pol) -> QCl -> QS
who wouldn't have slept
who wouldn't have slept
mkQS
+
@@ -2630,7 +2647,7 @@ Lexical category, constructors given in

RCl - relative clause, with all tenses

-
Function Type
+
@@ -2639,67 +2656,67 @@ Lexical category, constructors given in - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2709,52 +2726,52 @@ Lexical category, constructors given in - + - + - + - + - + - + - + - + - + - + @@ -2765,7 +2782,7 @@ Lexical category, constructors given in

RP - relative pronoun

-
Function Type
mkRCl RP -> VP -> RCl
who always sleep
who always sleep
mkRCl RP -> V -> RCl
who sleep
who sleep
mkRCl RP -> V2 -> NP -> RCl
who love her
who love her
mkRCl RP -> V3 -> NP -> NP -> RCl
who send it to her
who send it to her
mkRCl RP -> VV -> VP -> RCl
who want to sleep
who want to sleep
mkRCl RP -> VS -> S -> RCl
who say that I sleep
who say that I sleep
mkRCl RP -> VQ -> QS -> RCl
who wonder who sleeps
who wonder who sleeps
mkRCl RP -> VA -> A -> RCl
who become old
who become old
mkRCl RP -> VA -> AP -> RCl
who become very old
who become very old
mkRCl RP -> V2A -> NP -> A -> RCl
who paint it red
who paint it red
mkRCl RP -> V2A -> NP -> AP -> RCl
who paint it red
who paint it red
mkRCl RP -> V2S -> NP -> S -> RCl
who answer to him that we sleep
who answer to him that we sleep
mkRCl RP -> V2Q -> NP -> QS -> RCl
who ask him who sleeps
who ask him who sleeps
mkRCl
mkRCl RP -> A -> RCl
who am old
who am old
mkRCl RP -> A -> NP -> RCl
who am older than he
who am older than he
mkRCl RP -> A2 -> NP -> RCl
who am married to him
who am married to him
mkRCl RP -> AP -> RCl
who am very old
who am very old
mkRCl RP -> NP -> RCl
who am the woman
who am the woman
mkRCl RP -> N -> RCl
who am a woman
who am a woman
mkRCl RP -> CN -> RCl
who am an old woman
who am an old woman
mkRCl RP -> Adv -> RCl
who am here
who am here
mkRCl RP -> NP -> V2 -> RCl
whom she loves
whom she loves
mkRCl RP -> ClSlash -> RCl
whom she loves today
whom she loves today
mkRCl
+
@@ -2774,7 +2791,7 @@ Lexical category, constructors given in - + @@ -2785,7 +2802,7 @@ Lexical category, constructors given in

RS - relative

-
Function Type
mkRP Prep -> NP -> RP -> RP
all the cities in whom
all the cities in whom
which_RP
+
@@ -2794,7 +2811,7 @@ Lexical category, constructors given in - + @@ -2810,7 +2827,7 @@ Lexical category, constructors given in

S - declarative sentence

-
Function Type
mkRS (Tense) -> (Ant) -> (Pol) -> RCl -> RS
who wouldn't have slept
who wouldn't have slept
mkRS
+
@@ -2829,7 +2846,7 @@ Lexical category, constructors given in - + @@ -2840,7 +2857,7 @@ Lexical category, constructors given in

SC - embedded sentence or question

-
Function Type
mkS Conj -> ListS -> S
she sleeps , I run and you walk
she sleeps , I run and you walk
mkS
+
@@ -2849,12 +2866,12 @@ Lexical category, constructors given in - + - + @@ -2865,7 +2882,7 @@ Lexical category, constructors given in

SSlash

-
Function Type
mkSC S -> SC
that she sleeps
that she sleeps
mkSC QS -> SC
who sleeps
who sleeps
mkSC
+
@@ -2880,7 +2897,7 @@ Lexical category, constructors given in

Sub100

-
Function Type
+
@@ -2905,7 +2922,7 @@ Lexical category, constructors given in

Sub1000

-
Function Type
+
@@ -2930,7 +2947,7 @@ Lexical category, constructors given in

Subj - subjunction

-
Function Type
+
@@ -2971,7 +2988,7 @@ Lexical category, constructors given in

Tense - tense

-
Function Type
+
@@ -3001,7 +3018,7 @@ Lexical category, constructors given in

Text - text consisting of several phrases

-
Function Type
+
@@ -3015,7 +3032,7 @@ Lexical category, constructors given in - + @@ -3035,23 +3052,23 @@ Lexical category, constructors given in - + - + - +
Function Type
mkText Phr -> (Punct) -> (Text) -> Text
does she sleep ? yes .
does she sleep ? yes .
mkText
mkText QS -> Text
did she sleep ?
did she sleep ?
mkText (Pol) -> Imp -> Text
don't sleep !
don't sleep !
mkText Text -> Text -> Text
where ? here . when ? now !
where ? here . when ? now !

Unit

- +
@@ -3106,7 +3123,7 @@ Lexical category, constructors given in

Utt - sentence, question, word...

-
Function Type
+
@@ -3115,7 +3132,7 @@ Lexical category, constructors given in - + @@ -3130,7 +3147,7 @@ Lexical category, constructors given in - + @@ -3140,7 +3157,7 @@ Lexical category, constructors given in - + @@ -3170,7 +3187,7 @@ Lexical category, constructors given in - + @@ -3202,7 +3219,7 @@ Lexical category, constructors given in

V2 - two-place verb

-
Function Type
lets_Utt VP -> Utt
let's sleep
let's sleep
mkUtt
mkUtt QS -> Utt
who didn't sleep
who didn't sleep
mkUtt
mkUtt (ImpForm) -> (Pol) -> Imp -> Utt
don't be men
don't be men
mkUtt
mkUtt CN -> Utt
beer
beer
mkUtt
+
@@ -3253,7 +3270,7 @@ Lexical category, constructors given in

VP - verb phrase

-
Function Type
+
@@ -3272,7 +3289,7 @@ Lexical category, constructors given in - + @@ -3282,12 +3299,12 @@ Lexical category, constructors given in - + - + @@ -3297,17 +3314,17 @@ Lexical category, constructors given in - + - + - + @@ -3327,7 +3344,7 @@ Lexical category, constructors given in - + @@ -3362,12 +3379,12 @@ Lexical category, constructors given in - + - + @@ -3408,7 +3425,7 @@ Lexical category, constructors given in

VPSlash - verb phrase missing complement

-
Function Type
mkVP V3 -> NP -> NP -> VP
to send it to him
to send it to him
mkVP
mkVP VS -> S -> VP
to know that she sleeps
to know that she sleeps
mkVP VQ -> QS -> VP
to wonder who sleeps
to wonder who sleeps
mkVP
mkVP V2A -> NP -> AP -> VP
to paint it red
to paint it red
mkVP V2S -> NP -> S -> VP
to answer to him that she sleeps
to answer to him that she sleeps
mkVP V2Q -> NP -> QS -> VP
to answer to him who sleeps
to answer to him who sleeps
mkVP
mkVP A2 -> NP -> VP
to be married to him
to be married to him
mkVP
mkVP AdV -> VP -> VP
always to sleep
always to sleep
mkVP VPSlash -> NP -> VP
to paint it black
to paint it black
mkVP
+
@@ -3470,7 +3487,7 @@ Lexical category, constructors given in

VV - verb-phrase-complement verb

-
Function Type
+
@@ -3500,7 +3517,7 @@ Lexical category, constructors given in

Voc - vocative or "please"

-
Function Type
+
@@ -3509,7 +3526,7 @@ Lexical category, constructors given in - + @@ -3528,7 +3545,7 @@ Lexical category, constructors given in

source http://www.grammaticalframework.org/lib/resource/src/bulgarian/ParadigmsBul.gf

-
Function Type
mkVoc NP -> Voc
yes , my friend
yes , my friend
please_Voc
+
@@ -4389,7 +4406,7 @@ source http://www.grammaticalfr

source http://www.grammaticalframework.org/lib/resource/src/catalan/ParadigmsCat.gf

-
Function Type
+
@@ -4680,7 +4697,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/danish/ParadigmsDan.gf

-
Function Type
+
@@ -4991,91 +5008,76 @@ source http://www.grammaticalframe

source http://www.grammaticalframework.org/lib/resource/src/dutch/ParadigmsDut.gf

-
Function Type
+
- + - + - + - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + @@ -5100,57 +5102,52 @@ source http://www.grammaticalframew - + - + - + - + - + - + - + - + - + - - - - - - + @@ -5202,7 +5199,7 @@ source http://www.grammaticalframew

source http://www.grammaticalframework.org/lib/resource/src/english/ParadigmsEng.gf

-
Function Type Explanation
masculinede Gender-non-neutrum
femininehet Gender-
neuterGender-
utrumGender-
de,hetGender-neutrum
mkN (muis : Str) -> N-de muis-muisen, with some predictable exceptions
mkN (bit : Str) -> Gender -> N-if gender is not predictable
mkN (gat,gaten : Str) -> Gender -> N-worst-case for nouns
mkN2 N -> N2-relational noun with preposition van
mkN2 N -> Prep -> N2-other preposition than van
mkN3 N -> Prep -> Prep -> N3-e.g. afstand + van + naar
mkPN Str -> PN-proper name
mkA (vers : Str) -> A-regular adjective
mkA (goed,goede,goeds,beter,best : Str) -> A-irregular adjective
invarA Str -> Aprimaadjective with just one form
mkA2 A -> Prep -> A2-e.g. getrouwd + met
mkAdv
mkV (aaien : Str) -> V-regular verb
mkV (breken,brak,gebroken : Str) -> V-theme of irregular verb
mkV (breken,brak,braken,gebroken : Str) -> V-also past plural irregular
mkV (aai,aait,aaien,aaide,aaide,aaiden,geaaid : Str) -> V-worst-case verb
mkV Str -> V -> V-add movable suffix, e.g. af + stappen
zijnV V -> V-force zijn as auxiliary (default hebben)
reflV V -> V-reflexive verb e.g. zich afvragen
mkV3 V -> V3give,accusative,dativegeven,(accusative),(dative)
mkV3 V -> Prep -> V3senden,(accusative),nachsturen,(accusative),naar
mkV3 V -> Prep -> Prep -> V3sprechen, mit, über
mkV0V -> V0-praten, met, over
mkVS
+
@@ -5483,7 +5480,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/finnish/ParadigmsFin.gf

-
Function Type
+
@@ -5809,7 +5806,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/french/ParadigmsFre.gf

-
Function Type
+
@@ -6040,7 +6037,7 @@ source http://www.grammaticalframe

source http://www.grammaticalframework.org/lib/resource/src/german/ParadigmsGer.gf

-
Function Type
+
@@ -6351,7 +6348,7 @@ source http://www.grammaticalframe

source http://www.grammaticalframework.org/lib/resource/src/italian/ParadigmsIta.gf

-
Function Type
+
@@ -6647,7 +6644,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/norwegian/ParadigmsNor.gf

-
Function Type
+
@@ -6958,7 +6955,7 @@ source http://www.grammaticalfr

source http://www.grammaticalframework.org/lib/resource/src/polish/ParadigmsPol.gf

-
Function Type
+
@@ -7714,7 +7711,7 @@ source http://www.grammaticalframe

source http://www.grammaticalframework.org/lib/resource/src/romanian/ParadigmsRon.gf

-
Function Type
+
@@ -7940,7 +7937,7 @@ source http://www.grammaticalfra

source http://www.grammaticalframework.org/lib/resource/src/russian/ParadigmsRus.gf

-
Function Type
+
@@ -8116,7 +8113,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/spanish/ParadigmsSpa.gf

-
Function Type
+
@@ -8412,7 +8409,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/swedish/ParadigmsSwe.gf

-
Function Type
+
@@ -8653,7 +8650,7 @@ source http://www.grammaticalfram

source http://www.grammaticalframework.org/lib/resource/src/urdu/ParadigmsUrd.gf

-
Function Type
+
@@ -8682,47 +8679,72 @@ source http://www.grammaticalframewo - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -8732,32 +8754,32 @@ source http://www.grammaticalframewo - + - + - + - + - + - + @@ -8767,22 +8789,22 @@ source http://www.grammaticalframewo - + - + - + - + @@ -8807,12 +8829,12 @@ source http://www.grammaticalframewo - + - + @@ -8822,32 +8844,7 @@ source http://www.grammaticalframewo - - - - - - - - - - - - - - - - - - - - - - - - - - +
Function Type
mkN Str -> N-Regular nouns like lRka, gender is judged from noun ending
mkN Str -> Gender -> N-nouns whose gender is irregular like Admy
mkN (x1,_,_,_,_,x6 : Str) -> Gender -> N-worst case
mkN2 N -> Prep -> Str -> N2;-e.g maN ky
mkN3 N -> Prep -> Str -> Str-> N3-e.g faSlh - sE - ka
mkCmpdNoun Str -> N -> N-e.g t-alb elm
mkPNStr -> PNStr -> PN = \s -> let n-
personalPNStr -> Str -> Str -> Str -> Number -> Gender -> UPerson -> Pron-
demoPNStr -> Str -> Str -> Quant-
mkDetStr -> Str -> Str -> Str -> Number -> Det-
mkIP(x1,x2,x3:Str) -> Number -> Gender -> IP-
mkAdNStr -> AdN -
mkA Str-> A-e.g ach'a
mkA Str -> Str -> A2-e.g sE Xady krna
mkA2
mkV Str -> V-regular verbs like swna
mkV2 Str -> V2-e.g pyna
mkV2 V -> V2-e.g pyna
mkV2 V -> Str -> V2-e.g bnd krna
mkV3 V -> Str -> Str -> V3;-e.g bycna
mkV2V V -> Str -> Str -> Bool -> V2V-e.g eltja krna - sE - kw
dirdirV3
compoundV Str -> V -> V-e.g barX hwna
compoundV Str -> V2 -> V-e.g bnd krna
mkAdv Str -> Adv-e.g yhaN
mkPrep Str -> Str -> Prep-e.g ka - ky
mkConj
mkVS V -> VS;-e.g drna
mkVV V -> VV-e.g cahna
mkAdA
mkVQ V -> VQ-
mkConjStr -> Conj-
mkConjStr -> Number -> Conj-
mkConjStr -> Str -> Conj-
mkConjStr -> Str -> Number -> Conj-
mk2ConjStr -> Str -> Number -> Conj = \x,y,n ->-e.g janna
@@ -9057,6 +9054,6 @@ For each language, an instantiation of the functor:

- + diff --git a/lib/src/urdu/ParadigmsUrd.gf b/lib/src/urdu/ParadigmsUrd.gf index 904bbd9c0..ed20030ac 100644 --- a/lib/src/urdu/ParadigmsUrd.gf +++ b/lib/src/urdu/ParadigmsUrd.gf @@ -49,14 +49,20 @@ oper -- Proper names - mkPN : Str -> PN = \s -> let n = regNoun s in {s = n.s ! Sg ; g = n.g ; lock_PN = <>} ; - personalPN : Str -> Str -> Str -> Str -> Number -> Gender -> UPerson -> Pron = \s1,s2,s3,sp,nn,g,p -> let n = mkPron s1 s2 s3 in {s = n.s ; a = toAgr nn p g ; ps = sp ; lock_Pron = <>}; - demoPN : Str -> Str -> Str -> Quant = \s1,s2,s3 -> let n = makeDemonPronForm s1 s2 s3 in {s = n.s ; a = defaultAgr ; lock_Quant = <>}; - mkDet : Str -> Str -> Str -> Str -> Number -> Det = \s1,s2,s3,s4,nb -> let dt = makeDet s1 s2 s3 s4 nb in {s = dt.s ; n = nb ; lock_Det = <>}; - mkIP : (x1,x2,x3:Str) -> Number -> Gender -> IP = \s1,s2,s3,n,g -> let p = mkIntPronForm s1 s2 s3 in { s = p.s ; n = n ; g = g ; lock_IP = <>}; + mkPN : Str -> PN = \s -> let n + = regNoun s in {s = n.s ! Sg ; g = n.g ; lock_PN = <>} ; + personalPN : Str -> Str -> Str -> Str -> Number -> Gender -> UPerson -> Pron + = \s1,s2,s3,sp,nn,g,p -> let n = mkPron s1 s2 s3 in {s = n.s ; a = toAgr nn p g ; ps = sp ; lock_Pron = <>}; + demoPN : Str -> Str -> Str -> Quant + = \s1,s2,s3 -> let n = makeDemonPronForm s1 s2 s3 in {s = n.s ; a = defaultAgr ; lock_Quant = <>}; + mkDet : Str -> Str -> Str -> Str -> Number -> Det + = \s1,s2,s3,s4,nb -> let dt = makeDet s1 s2 s3 s4 nb in {s = dt.s ; n = nb ; lock_Det = <>}; + mkIP : (x1,x2,x3:Str) -> Number -> Gender -> IP + = \s1,s2,s3,n,g -> let p = mkIntPronForm s1 s2 s3 in { s = p.s ; n = n ; g = g ; lock_IP = <>}; -- AdN - mkAdN : Str -> AdN = \s -> {s = s ; p = False ; lock_AdN = <>} ; + mkAdN : Str -> AdN + = \s -> {s = s ; p = False ; lock_AdN = <>} ; --2 Adjectives mkA = overload { @@ -81,7 +87,7 @@ oper mkV2 : V -> Str -> V2 -- e.g bnd krna = \v,p -> v ** {c2 = {s = p ; c = VTrans} ; lock_V2 = <>} ; } ; - dirV2 : V -> V2 = \v -> v ** {c2 = {s = [] ; c = VTrans} ; lock_V2 = <>} ; + dirV2 : V -> V2 = \v -> v ** {c2 = {s = [] ; c = VTrans} ; lock_V2 = <>} ; --% mkV3 : V -> Str -> Str -> V3; -- e.g bycna mkV3 v p q = v ** { c2 = p ; c3 = q ; lock_V3 = <>} ; @@ -119,7 +125,7 @@ oper -- mkQuant : Pron -> Quant = \p -> {s = \\_,_,c => p.s!c ;a = p.a ; lock_Quant = <>}; -- mkQuant : (no_sg, no_pl, none_sg, non_pl : Str) -> Quant = mkQuantifier; -- } ; - mkIQuant : Str -> IQuant = \s -> makeIQuant s ; + mkIQuant : Str -> IQuant = \s -> makeIQuant s ; --% --2 Conjunctions @@ -130,21 +136,21 @@ oper mkConj : Str -> Str -> Number -> Conj ; -- either ... or (agrement number given as argument) } ; mkConj = overload { - mkConj : Str -> Conj = \y -> mk2Conj [] y plural ; - mkConj : Str -> Number -> Conj = \y,n -> mk2Conj [] y n ; - mkConj : Str -> Str -> Conj = \x,y -> mk2Conj x y plural ; - mkConj : Str -> Str -> Number -> Conj = mk2Conj ; + mkConj : Str -> Conj = \y -> mk2Conj [] y plural ; --% + mkConj : Str -> Number -> Conj = \y,n -> mk2Conj [] y n ; --% + mkConj : Str -> Str -> Conj = \x,y -> mk2Conj x y plural ; --% + mkConj : Str -> Str -> Number -> Conj = mk2Conj ; --% } ; - mk2Conj : Str -> Str -> Number -> Conj = \x,y,n -> + mk2Conj : Str -> Str -> Number -> Conj = \x,y,n -> --% lin Conj (sd2 x y ** {n = n}) ; -- mkV0 : V -> V0 ; mkVS : V -> VS; -- e.g drna mkVS v = v ; -- mkV2S : V -> Prep -> V2S ; - mkVV : V -> VV = -- e.g cahna - \v -> lin VV (v ** {isAux = False}); + mkVV : V -> VV -- e.g cahna + = \v -> lin VV (v ** {isAux = False}); mkAdA : Str -> AdA ; -- mkAdv x = lin Adv (ss x) ;