mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
structure document for 1.0
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
--1 A Basic Lexicon
|
||||
|
||||
-- This files gives a list of words whose purpose is to test the GF
|
||||
-- resource grammar. It covers all lexical categories of [Cat Cat.html].
|
||||
-- By containing some of the most common words,
|
||||
-- it is aimed to cover, with high probability, all morphological
|
||||
-- patterns in the different languages.
|
||||
|
||||
-- Using this lexicon for translation is not recommended. The linearizations
|
||||
-- of the words in different languages are not guaranteed to be translation
|
||||
-- equivalents.
|
||||
|
||||
abstract Basic = Cat ** {
|
||||
fun
|
||||
add_V3 : V3 ;
|
||||
@@ -129,6 +141,7 @@ abstract Basic = Cat ** {
|
||||
open_V2 : V2 ;
|
||||
paint_V2A : V2A ;
|
||||
paper_N : N ;
|
||||
paris_PN : PN ;
|
||||
peace_N : N ;
|
||||
pen_N : N ;
|
||||
planet_N : N ;
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
-- - distributed conjunction: both X,...,X and X
|
||||
--
|
||||
--
|
||||
-- *Note*. This module uses right-recursive lists. If backward
|
||||
-- compatibility with API 0.9 is needed, use
|
||||
-- [SeqConjunction SeqConjunction.html].
|
||||
|
||||
abstract Conjunction = Cat ** {
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
--1 The Main Module of the Resource Grammar
|
||||
|
||||
-- This grammar is just a collection of the different modules,
|
||||
-- and the one that can be imported when one wants to test the
|
||||
-- grammar. A smaller top module is [Test Test.html].
|
||||
|
||||
abstract Lang =
|
||||
Noun,
|
||||
Verb,
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
--1 Test lexicon
|
||||
|
||||
-- This lexicon is used when developing a grammar, and called by
|
||||
-- [Test Test.html]. The full lexicon is divided between
|
||||
-- [Structural Structural.html], [Basic Basic.html], and [Numeral Numeral.html].
|
||||
|
||||
abstract Lex = Cat ** {
|
||||
|
||||
-- Words of open classes
|
||||
|
||||
fun
|
||||
walk_V : V ;
|
||||
help_V2 : V2 ;
|
||||
@@ -15,7 +23,7 @@ abstract Lex = Cat ** {
|
||||
warm_A : A ;
|
||||
close_A2 : A2 ;
|
||||
|
||||
-- structural
|
||||
-- Structural words
|
||||
|
||||
|
||||
only_Predet, all_Predet : Predet ;
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
--1 Symbolic expressions
|
||||
|
||||
-- *Note*. This module is not automatically included in the main
|
||||
-- grammar [Lang Lang.html].
|
||||
|
||||
abstract Math = Cat ** {
|
||||
|
||||
--3 Noun phrases with symbols
|
||||
--2 Noun phrases with symbols
|
||||
|
||||
fun
|
||||
|
||||
SymbPN : Symb -> PN ; -- "x"
|
||||
IntPN : Int -> PN ; -- "27"
|
||||
CNIntNP : CN -> Int -> NP ; -- "level 53"
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- "(the) (2) numbers x and y"
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
|
||||
--3 Symbol lists
|
||||
--2 Symbol lists
|
||||
|
||||
-- A symbol list has at least two elements. The last two are separated
|
||||
-- by a conjunction ("and" in English), the others by commas.
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
--1 Conjunctions of left-recursive lists
|
||||
|
||||
abstract SeqConjunction = Cat ** {
|
||||
|
||||
-- This module is for backward compatibility with API 0.9.
|
||||
-- To be used instead of Conjunction.
|
||||
-- To be used instead of [Conjunction Conjunction.html].
|
||||
|
||||
fun
|
||||
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
--1 Tense, Polarity, and Anteriority
|
||||
|
||||
-- This module defines the abstract parameters of tense, polarity, and
|
||||
-- anteriority, which are used in [Tensed Tensed.html] to generate different
|
||||
-- forms of sentences. Together they give 2 x 4 x 4 = 16 sentence forms.
|
||||
|
||||
-- These tenses are defined for all languages in the library. More tenses
|
||||
-- can be defined in the language extensions, e.g. the "passé simple" of
|
||||
-- Romance languages.
|
||||
|
||||
abstract Tense = {
|
||||
|
||||
cat
|
||||
@@ -6,8 +16,8 @@ abstract Tense = {
|
||||
Ant ;
|
||||
|
||||
fun
|
||||
PPos, PNeg : Pol ;
|
||||
TPres, TPast, TFut, TCond : Tense ;
|
||||
ASimul, AAnter : Ant ;
|
||||
PPos, PNeg : Pol ; -- I sleep/don't sleep
|
||||
TPres, TPast, TFut, TCond : Tense ; -- I sleep/slept/will sleep/would sleep
|
||||
ASimul, AAnter : Ant ; -- I sleep/have slept
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
--1 Tensed forms of sentences, questions, and relative clauses
|
||||
|
||||
-- This module defines the 2 x 4 x 4 = 16 forms generated by different
|
||||
-- combinations of tense, polarity, and
|
||||
-- anteriority, which are defined in [Tense Tense.html].
|
||||
-- A variant with just the polarity variation is given in
|
||||
-- [Untensed Untensed.html].
|
||||
|
||||
abstract Tensed = Cat, Tense ** {
|
||||
|
||||
fun
|
||||
@@ -5,4 +13,24 @@ abstract Tensed = Cat, Tense ** {
|
||||
UseQCl : Tense -> Ant -> Pol -> QCl -> QS ;
|
||||
UseRCl : Tense -> Ant -> Pol -> RCl -> RS ;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-- Examples for English $S$:
|
||||
{-
|
||||
Pres Simul Pos ODir : he sleeps
|
||||
Pres Simul Neg ODir : he doesn't sleep
|
||||
Pres Anter Pos ODir : he has slept
|
||||
Pres Anter Neg ODir : he hasn't slept
|
||||
Past Simul Pos ODir : he slept
|
||||
Past Simul Neg ODir : he didn't sleep
|
||||
Past Anter Pos ODir : he had slept
|
||||
Past Anter Neg ODir : he hadn't slept
|
||||
Fut Simul Pos ODir : he will sleep
|
||||
Fut Simul Neg ODir : he won't sleep
|
||||
Fut Anter Pos ODir : he will have slept
|
||||
Fut Anter Neg ODir : he won't have slept
|
||||
Cond Simul Pos ODir : he would sleep
|
||||
Cond Simul Neg ODir : he wouldn't sleep
|
||||
Cond Anter Pos ODir : he would have slept
|
||||
Cond Anter Neg ODir : he wouldn't have slept
|
||||
-}
|
||||
@@ -1,9 +1,17 @@
|
||||
--1 The Reduced Top Module of the Resource Grammar
|
||||
|
||||
-- This grammar is just a collection of the different modules,
|
||||
-- and one that can be imported when one wants to test a reduced version
|
||||
-- of the grammar. The complete top module is [Lang Lang.html].
|
||||
|
||||
-- The main constructs missing are tenses of sentences, numerals, and
|
||||
-- comprehensive lexicon.
|
||||
|
||||
abstract Test =
|
||||
Noun,
|
||||
Verb,
|
||||
Adjective,
|
||||
Adverb,
|
||||
-- Numeral,
|
||||
Sentence,
|
||||
Question,
|
||||
Relative,
|
||||
@@ -11,5 +19,8 @@ abstract Test =
|
||||
Phrase,
|
||||
Untensed,
|
||||
-- Tensed,
|
||||
-- Structural,
|
||||
-- Basic,
|
||||
-- Numeral,
|
||||
Lex
|
||||
** {} ;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
--1 Untensed forms of sentences, questions, and relative clauses
|
||||
|
||||
-- This module defines just positive and negative present tense forms.
|
||||
-- Am alternative with full variation in polarity, tense, and anteriority is
|
||||
-- given in [Untensed Untensed.html].
|
||||
|
||||
abstract Untensed = Cat ** {
|
||||
|
||||
fun
|
||||
|
||||
72
lib/resource-1.0/doc/gf-resource-lib.html
Normal file
72
lib/resource-1.0/doc/gf-resource-lib.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE>GF Resource Grammar Library v. 1.0</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1>GF Resource Grammar Library v. 1.0</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: Aarne Ranta <aarne (at) cs.chalmers.se></I><BR>
|
||||
Last update: Wed Jan 18 19:19:12 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The language independent API</A>
|
||||
<LI><A HREF="#toc2">The language-dependent APIs</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
<B>Notice</B>. This document concerns the API v. 1.0 which has not
|
||||
yet been "officially" released. You can find the beginnings of it
|
||||
in <A HREF=".."><CODE>GF/lib/resource-1.0/</CODE></A>. See the
|
||||
<A HREF="../README"><CODE>resource-1.0/README</CODE></A> for
|
||||
details on how it differs from previous versions
|
||||
and how much has been implemented
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H2>The language independent API</H2>
|
||||
<P>
|
||||
The API is divided into a bunch of <CODE>abstract</CODE> modules.
|
||||
The following figure gives the dependencies of these modules.
|
||||
</P>
|
||||
<P>
|
||||
<IMG ALIGN="left" SRC="Lang.png" BORDER="0" ALT="">
|
||||
</P>
|
||||
<P>
|
||||
The documentation of the individual modules:
|
||||
</P>
|
||||
<UL>
|
||||
<LI><A HREF="gfdoc/Cat.html">Cat</A>: the category system
|
||||
<LI><A HREF="gfdoc/Noun.html">Noun</A>: construction of nouns and noun phrases
|
||||
<LI><A HREF="gfdoc/Adjective.html">Adjective</A>: construction of adjectival phrases
|
||||
<LI><A HREF="gfdoc/Verb.html">Verb</A>: construction of verb phrases
|
||||
<LI><A HREF="gfdoc/Adverb.html">Adverb</A>: construction of adverbial phrases
|
||||
<LI><A HREF="gfdoc/Numeral.html">Numeral</A>: construction of cardinal and ordinal numerals
|
||||
<LI><A HREF="gfdoc/Sentence.html">Sentence</A>: construction of sentences and imperatives
|
||||
<LI><A HREF="gfdoc/Question.html">Question</A>: construction of questions
|
||||
<LI><A HREF="gfdoc/Relative.html">Relative</A>: construction of relative clauses
|
||||
<LI><A HREF="gfdoc/Conjunction.html">Conjunction</A>: coordination of phrases
|
||||
<LI><A HREF="gfdoc/Phrase.html">Phrase</A>: construction of the major units of text and speech
|
||||
<LI><A HREF="gfdoc/Structural.html">Structural</A>: a lexicon of structural words
|
||||
<LI><A HREF="gfdoc/Basic.html">Basic</A>: a lexicon of other common words, for test purposes
|
||||
<LI><A HREF="gfdoc/Lang.html">Lang</A>: the main module comprising all the others
|
||||
</UL>
|
||||
|
||||
<A NAME="toc2"></A>
|
||||
<H2>The language-dependent APIs</H2>
|
||||
<UL>
|
||||
<LI><A HREF="english/ParadigmsEng.html">ParadigmsEng</A>: English lexical paradigms
|
||||
<LI><A HREF="german/ParadigmsGer.html">ParadigmsGer</A>: German lexical paradigms
|
||||
<LI><A HREF="swedish/ParadigmsSwe.html">ParadigmsSwe</A>: Swedish lexical paradigms
|
||||
</UL>
|
||||
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -\-toc -thtml gf-resource-lib.txt -->
|
||||
</BODY></HTML>
|
||||
50
lib/resource-1.0/doc/gf-resource-lib.txt
Normal file
50
lib/resource-1.0/doc/gf-resource-lib.txt
Normal file
@@ -0,0 +1,50 @@
|
||||
GF Resource Grammar Library v. 1.0
|
||||
Author: Aarne Ranta <aarne (at) cs.chalmers.se>
|
||||
Last update: %%date(%c)
|
||||
|
||||
% NOTE: this is a txt2tags file.
|
||||
% Create an html file from this file using:
|
||||
% txt2tags --toc -thtml gf-resource-lib.txt
|
||||
|
||||
%!target:html
|
||||
|
||||
|
||||
**Notice**. This document concerns the API v. 1.0 which has not
|
||||
yet been "officially" released. You can find the beginnings of it
|
||||
in [``GF/lib/resource-1.0/`` ..]. See the
|
||||
[``resource-1.0/README`` ../README] for
|
||||
details on how it differs from previous versions
|
||||
and how much has been implemented
|
||||
|
||||
|
||||
|
||||
==The language independent API==
|
||||
|
||||
The API is divided into a bunch of ``abstract`` modules.
|
||||
The following figure gives the dependencies of these modules.
|
||||
|
||||
[Lang.png]
|
||||
|
||||
The documentation of the individual modules:
|
||||
|
||||
- [Cat gfdoc/Cat.html]: the category system
|
||||
- [Noun gfdoc/Noun.html]: construction of nouns and noun phrases
|
||||
- [Adjective gfdoc/Adjective.html]: construction of adjectival phrases
|
||||
- [Verb gfdoc/Verb.html]: construction of verb phrases
|
||||
- [Adverb gfdoc/Adverb.html]: construction of adverbial phrases
|
||||
- [Numeral gfdoc/Numeral.html]: construction of cardinal and ordinal numerals
|
||||
- [Sentence gfdoc/Sentence.html]: construction of sentences and imperatives
|
||||
- [Question gfdoc/Question.html]: construction of questions
|
||||
- [Relative gfdoc/Relative.html]: construction of relative clauses
|
||||
- [Conjunction gfdoc/Conjunction.html]: coordination of phrases
|
||||
- [Phrase gfdoc/Phrase.html]: construction of the major units of text and speech
|
||||
- [Structural gfdoc/Structural.html]: a lexicon of structural words
|
||||
- [Basic gfdoc/Basic.html]: a lexicon of other common words, for test purposes
|
||||
- [Lang gfdoc/Lang.html]: the main module comprising all the others
|
||||
|
||||
|
||||
==The language-dependent APIs==
|
||||
|
||||
- [ParadigmsEng english/ParadigmsEng.html]: English lexical paradigms
|
||||
- [ParadigmsGer german/ParadigmsGer.html]: German lexical paradigms
|
||||
- [ParadigmsSwe swedish/ParadigmsSwe.html]: Swedish lexical paradigms
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Adjectives and adjectival phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:07 2006
|
||||
Last update: Wed Jan 18 19:07:58 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Adverbs and adverbial phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:07 2006
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -2,27 +2,40 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> A Basic Lexicon</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> A Basic Lexicon</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">A Basic Lexicon</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>A Basic Lexicon</H1>
|
||||
<P>
|
||||
==
|
||||
This files gives a list of words whose purpose is to test the GF
|
||||
resource grammar. It covers all lexical categories of <A HREF="Cat.html">Cat</A>.
|
||||
By containing some of the most common words,
|
||||
it is aimed to cover, with high probability, all morphological
|
||||
patterns in the different languages.
|
||||
Using this lexicon for translation is not recommended. The linearizations
|
||||
of the words in different languages are not guaranteed to be translation
|
||||
equivalents.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Basic = Cat ** {
|
||||
@@ -156,6 +169,7 @@ gfdoc - a rudimentary GF document generator.
|
||||
open_V2 : V2 ;
|
||||
paint_V2A : V2A ;
|
||||
paper_N : N ;
|
||||
paris_PN : PN ;
|
||||
peace_N : N ;
|
||||
pen_N : N ;
|
||||
planet_N : N ;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The category system</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Coordination</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -42,6 +42,11 @@ and define two general patterns:
|
||||
<LI>distributed conjunction: both X,...,X and X
|
||||
</UL>
|
||||
|
||||
<P>
|
||||
<B>Note</B>. This module uses right-recursive lists. If backward
|
||||
compatibility with API 0.9 is needed, use
|
||||
<A HREF="SeqConjunction.html">SeqConjunction</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Conjunction = Cat ** {
|
||||
</PRE>
|
||||
|
||||
@@ -2,27 +2,35 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> The Main Module of the Resource Grammar</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Main Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The Main Module of the Resource Grammar</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>The Main Module of the Resource Grammar</H1>
|
||||
<P>
|
||||
==
|
||||
This grammar is just a collection of the different modules,
|
||||
and the one that can be imported when one wants to test the
|
||||
grammar. A smaller top module is <A HREF="Test.html">Test</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Lang =
|
||||
|
||||
@@ -2,31 +2,44 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Test lexicon</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Test lexicon</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:07:59 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Test lexicon</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Test lexicon</H1>
|
||||
<P>
|
||||
==
|
||||
This lexicon is used when developing a grammar, and called by
|
||||
<A HREF="Test.html">Test</A>. The full lexicon is divided between
|
||||
<A HREF="Structural.html">Structural</A>, <A HREF="Basic.html">Basic</A>, and <A HREF="Numeral.html">Numeral</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Lex = Cat ** {
|
||||
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Words of open classes
|
||||
</P>
|
||||
<PRE>
|
||||
fun
|
||||
walk_V : V ;
|
||||
help_V2 : V2 ;
|
||||
@@ -44,7 +57,7 @@ gfdoc - a rudimentary GF document generator.
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
structural
|
||||
Structural words
|
||||
</P>
|
||||
<PRE>
|
||||
only_Predet, all_Predet : Predet ;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -2,50 +2,56 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Symbolic expressions</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Noun phrases with symbols</A>
|
||||
<LI><A HREF="#toc2">Symbol lists</A>
|
||||
</UL>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Symbolic expressions</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc2">Noun phrases with symbols</A>
|
||||
<LI><A HREF="#toc3">Symbol lists</A>
|
||||
</UL>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:08 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Symbolic expressions</H1>
|
||||
<P>
|
||||
==
|
||||
<B>Note</B>. This module is not automatically included in the main
|
||||
grammar <A HREF="Lang.html">Lang</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Math = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc1"></A>
|
||||
<H3>Noun phrases with symbols</H3>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Noun phrases with symbols</H2>
|
||||
<PRE>
|
||||
fun
|
||||
|
||||
SymbPN : Symb -> PN ; -- "x"
|
||||
IntPN : Int -> PN ; -- "27"
|
||||
CNIntNP : CN -> Int -> NP ; -- "level 53"
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- "(the) (2) numbers x and y"
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H3>Symbol lists</H3>
|
||||
<A NAME="toc3"></A>
|
||||
<H2>Symbol lists</H2>
|
||||
<P>
|
||||
A symbol list has at least two elements. The last two are separated
|
||||
by a conjunction (<I>and</I> in English), the others by commas.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The construction of nouns, noun phrases, and determiners</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -173,16 +173,19 @@ Relational nouns can also be used without their arguments.
|
||||
The semantics is typically derivative of the relational meaning.
|
||||
</P>
|
||||
<PRE>
|
||||
UseN2 : N2 -> CN ; -- son
|
||||
UseN3 : N3 -> CN ; -- flight
|
||||
UseN2 : N2 -> CN ; -- son
|
||||
UseN3 : N3 -> CN ; -- flight
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Nouns can be modified by adjectives and relative clauses.
|
||||
Nouns can be modified by adjectives, relative clauses, and adverbs
|
||||
(the last rule will give rise to many 'PP attachement' ambiguities
|
||||
when used in connection with verb phrases).
|
||||
</P>
|
||||
<PRE>
|
||||
AdjCN : AP -> CN -> CN ; -- big house
|
||||
RelCN : CN -> RS -> CN ; -- house that John owns
|
||||
AdjCN : AP -> CN -> CN ; -- big house
|
||||
RelCN : CN -> RS -> CN ; -- house that John owns
|
||||
AdvCN : CN -> Adv -> CN ; -- house on the hill
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Numerals</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:11 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -18,14 +18,15 @@
|
||||
<LI><A HREF="#toc4">Proper names and noun phrases</A>
|
||||
</UL>
|
||||
<LI><A HREF="#toc5">Adjectives</A>
|
||||
<LI><A HREF="#toc6">Prepositions</A>
|
||||
<LI><A HREF="#toc7">Verbs</A>
|
||||
<LI><A HREF="#toc6">Adverbs</A>
|
||||
<LI><A HREF="#toc7">Prepositions</A>
|
||||
<LI><A HREF="#toc8">Verbs</A>
|
||||
<UL>
|
||||
<LI><A HREF="#toc8">Two-place verbs</A>
|
||||
<LI><A HREF="#toc9">Three-place verbs</A>
|
||||
<LI><A HREF="#toc10">Other complement patterns</A>
|
||||
<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="#toc11">Definitions of paradigms</A>
|
||||
<LI><A HREF="#toc12">Definitions of paradigms</A>
|
||||
</UL>
|
||||
</UL>
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:11 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
@@ -185,10 +186,10 @@ The regular genitive is <I>s</I>, omitted after <I>s</I>.
|
||||
<A NAME="toc5"></A>
|
||||
<H2>Adjectives</H2>
|
||||
<P>
|
||||
Adjectives need four forms: two for the positive and one for the other degrees.
|
||||
Adjectives need three forms, one for each degree.
|
||||
</P>
|
||||
<PRE>
|
||||
mkA : (x1,_,_,x4 : Str) -> A ; -- gut,gut,besser,best
|
||||
mkA : (x1,_,x3 : Str) -> A ; -- gut,besser,beste
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -214,6 +215,15 @@ Two-place adjectives are formed by adding a preposition to an adjective.
|
||||
</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.
|
||||
@@ -239,7 +249,7 @@ A couple of common prepositions (always with the dative).
|
||||
zu_Prep : Prep ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc7"></A>
|
||||
<A NAME="toc8"></A>
|
||||
<H2>Verbs</H2>
|
||||
<P>
|
||||
The worst-case constructor needs six forms:
|
||||
@@ -302,7 +312,7 @@ Reflexive verbs can take reflexive pronouns of different cases.
|
||||
reflV : V -> Case -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc8"></A>
|
||||
<A NAME="toc9"></A>
|
||||
<H3>Two-place verbs</H3>
|
||||
<P>
|
||||
Two-place verbs need a preposition, except the special case with direct object
|
||||
@@ -315,7 +325,7 @@ Two-place verbs need a preposition, except the special case with direct object
|
||||
datV2 : V -> V2 ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc9"></A>
|
||||
<A NAME="toc10"></A>
|
||||
<H3>Three-place verbs</H3>
|
||||
<P>
|
||||
Three-place (ditransitive) verbs need two prepositions, of which
|
||||
@@ -327,7 +337,7 @@ the first one or both can be absent.
|
||||
accdatV3 : V -> V3 ; -- give,_,_
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc10"></A>
|
||||
<A NAME="toc11"></A>
|
||||
<H3>Other complement patterns</H3>
|
||||
<P>
|
||||
Verbs and adjectives can take complements such as sentences,
|
||||
@@ -338,7 +348,7 @@ questions, verb phrases, and adjectives.
|
||||
mkVS : V -> VS ;
|
||||
mkV2S : V -> Prep -> V2S ;
|
||||
mkVV : V -> VV ;
|
||||
mkV2V : V -> Prep -> Prep -> V2V ;
|
||||
mkV2V : V -> Prep -> V2V ;
|
||||
mkVA : V -> VA ;
|
||||
mkV2A : V -> Prep -> V2A ;
|
||||
mkVQ : V -> VQ ;
|
||||
@@ -361,7 +371,7 @@ as an adverb. Likewise <CODE>AS, A2S, AV, A2V</CODE> are just <CODE>A</CODE>.
|
||||
AS, A2S, AV, A2V : Type ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc11"></A>
|
||||
<A NAME="toc12"></A>
|
||||
<H2>Definitions of paradigms</H2>
|
||||
<P>
|
||||
The definitions should not bother the user of the API. So they are
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:11 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Phrases and utterances</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Questions and interrogative pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:00 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> Clauses, imperatives, and sentential complements</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:09 2006
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -2,35 +2,38 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Conjunctions of left-recursive lists</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Conjunctions of left-recursive lists</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Conjunctions of left-recursive lists</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 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>
|
||||
==
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Conjunctions of left-recursive lists</H1>
|
||||
<PRE>
|
||||
abstract SeqConjunction = Cat ** {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
This module is for backward compatibility with API 0.9.
|
||||
To be used instead of Conjunction.
|
||||
To be used instead of <A HREF="Conjunction.html">Conjunction</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
fun
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> GF Resource Grammar API for Structural Words</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -2,27 +2,38 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Tense, Polarity, and Anteriority</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Tense, Polarity, and Anteriority</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Tense, Polarity, and Anteriority</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Tense, Polarity, and Anteriority</H1>
|
||||
<P>
|
||||
==
|
||||
This module defines the abstract parameters of tense, polarity, and
|
||||
anteriority, which are used in <A HREF="Tensed.html">Tensed</A> to generate different
|
||||
forms of sentences. Together they give 2 x 4 x 4 = 16 sentence forms.
|
||||
These tenses are defined for all languages in the library. More tenses
|
||||
can be defined in the language extensions, e.g. the <I>passé simple</I> of
|
||||
Romance languages.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Tense = {
|
||||
@@ -33,9 +44,9 @@ gfdoc - a rudimentary GF document generator.
|
||||
Ant ;
|
||||
|
||||
fun
|
||||
PPos, PNeg : Pol ;
|
||||
TPres, TPast, TFut, TCond : Tense ;
|
||||
ASimul, AAnter : Ant ;
|
||||
PPos, PNeg : Pol ; -- I sleep/don't sleep
|
||||
TPres, TPast, TFut, TCond : Tense ; -- I sleep/slept/will sleep/would sleep
|
||||
ASimul, AAnter : Ant ; -- I sleep/have slept
|
||||
|
||||
}
|
||||
</PRE>
|
||||
|
||||
@@ -2,27 +2,37 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Tensed forms of sentences, questions, and relative clauses</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Tensed forms of sentences, questions, and relative clauses</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:01 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Tensed forms of sentences, questions, and relative clauses</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Tensed forms of sentences, questions, and relative clauses</H1>
|
||||
<P>
|
||||
==
|
||||
This module defines the 2 x 4 x 4 = 16 forms generated by different
|
||||
combinations of tense, polarity, and
|
||||
anteriority, which are defined in <A HREF="Tense.html">Tense</A>.
|
||||
A variant with just the polarity variation is given in
|
||||
<A HREF="Untensed.html">Untensed</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Tensed = Cat, Tense ** {
|
||||
@@ -35,6 +45,27 @@ gfdoc - a rudimentary GF document generator.
|
||||
}
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Examples for English <CODE>S</CODE>:
|
||||
</P>
|
||||
<P>
|
||||
Pres Simul Pos ODir : he sleeps
|
||||
Pres Simul Neg ODir : he doesn't sleep
|
||||
Pres Anter Pos ODir : he has slept
|
||||
Pres Anter Neg ODir : he hasn't slept
|
||||
Past Simul Pos ODir : he slept
|
||||
Past Simul Neg ODir : he didn't sleep
|
||||
Past Anter Pos ODir : he had slept
|
||||
Past Anter Neg ODir : he hadn't slept
|
||||
Fut Simul Pos ODir : he will sleep
|
||||
Fut Simul Neg ODir : he won't sleep
|
||||
Fut Anter Pos ODir : he will have slept
|
||||
Fut Anter Neg ODir : he won't have slept
|
||||
Cond Simul Pos ODir : he would sleep
|
||||
Cond Simul Neg ODir : he wouldn't sleep
|
||||
Cond Anter Pos ODir : he would have slept
|
||||
Cond Anter Neg ODir : he wouldn't have slept
|
||||
</P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.0 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc abstract/Tensed.txt -->
|
||||
|
||||
@@ -2,27 +2,37 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> The Reduced Top Module of the Resource Grammar</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Reduced Top Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">The Reduced Top Module of the Resource Grammar</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>The Reduced Top Module of the Resource Grammar</H1>
|
||||
<P>
|
||||
==
|
||||
This grammar is just a collection of the different modules,
|
||||
and one that can be imported when one wants to test a reduced version
|
||||
of the grammar. The complete top module is <A HREF="Lang.html">Lang</A>.
|
||||
The main constructs missing are tenses of sentences, numerals, and
|
||||
comprehensive lexicon.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Test =
|
||||
@@ -30,7 +40,6 @@ gfdoc - a rudimentary GF document generator.
|
||||
Verb,
|
||||
Adjective,
|
||||
Adverb,
|
||||
-- Numeral,
|
||||
Sentence,
|
||||
Question,
|
||||
Relative,
|
||||
@@ -38,6 +47,9 @@ gfdoc - a rudimentary GF document generator.
|
||||
Phrase,
|
||||
Untensed,
|
||||
-- Tensed,
|
||||
-- Structural,
|
||||
-- Basic,
|
||||
-- Numeral,
|
||||
Lex
|
||||
** {} ;
|
||||
</PRE>
|
||||
|
||||
@@ -2,27 +2,35 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Untensed forms of sentences, questions, and relative clauses</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Untensed forms of sentences, questions, and relative clauses</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Untensed forms of sentences, questions, and relative clauses</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Author:
|
||||
Last update: Tue Jan 17 15:29:10 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>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Untensed forms of sentences, questions, and relative clauses</H1>
|
||||
<P>
|
||||
==
|
||||
This module defines just positive and negative present tense forms.
|
||||
Am alternative with full variation in polarity, tense, and anteriority is
|
||||
given in <A HREF="Untensed.html">Untensed</A>.
|
||||
</P>
|
||||
<PRE>
|
||||
abstract Untensed = Cat ** {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<P ALIGN="center"><CENTER><H1> The construction of verb phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Author: </I><BR>
|
||||
Last update: Tue Jan 17 15:29:10 2006
|
||||
Last update: Wed Jan 18 19:08:02 2006
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -129,6 +129,7 @@ lin
|
||||
open_V2 = dirV2 (regV "open") ;
|
||||
paint_V2A = mkV2A (regV "paint") [] ;
|
||||
paper_N = regN "paper" ;
|
||||
paris_PN = regPN "Paris" nonhuman ;
|
||||
peace_N = regN "peace" ;
|
||||
pen_N = regN "pen" ;
|
||||
planet_N = regN "planet" ;
|
||||
|
||||
@@ -136,6 +136,7 @@ lin
|
||||
open_V2 = dirV2 (regV "öffnen") ;
|
||||
paint_V2A = mkV2A (regV "malen") accPrep ;
|
||||
paper_N = reg2N "Papier" "Papiere" neuter ;
|
||||
paris_PN = mkPN "Paris" "Paris" ;
|
||||
peace_N = mkN "Friede" "Frieden" "Frieden" "Friedens" "Frieden" "Frieden" masculine ;
|
||||
pen_N = regN "Bleistift" ; ----
|
||||
planet_N = reg2N "Planet" "Planeten" masculine ;
|
||||
|
||||
@@ -131,6 +131,7 @@ lin
|
||||
open_V2 = dirV2 (regV "öppna") ;
|
||||
paint_V2A = mkV2A (regV "måla") [] ;
|
||||
paper_N = mkN "papper" "pappret" "papper" "pappren" ;
|
||||
paris_PN = regPN "Paris" neutrum ;
|
||||
peace_N = regN "fred" utrum ; ---- ar?
|
||||
pen_N = regN "penna" utrum ;
|
||||
planet_N = mk2N "planet" "planeter" ;
|
||||
|
||||
Reference in New Issue
Block a user