mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-25 04:22:50 -06:00
resource doc update
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Adjective: Adjectives and Adjectival Phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:14:36 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Adverb: Adverbs and Adverbial Phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-14 22:56:30 CEST</I><BR>
|
||||
<I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Cat: the Category System</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:10:58 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
126
lib/resource-1.0/doc/gfdoc/Combinators.html
Normal file
126
lib/resource-1.0/doc/gfdoc/Combinators.html
Normal file
@@ -0,0 +1,126 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Combinators: a High-Level Syntax API</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Combinators: a High-Level Syntax API</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-12-22 14:10:19 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Predication</A>
|
||||
<LI><A HREF="#toc2">Function application</A>
|
||||
<LI><A HREF="#toc3">Coordination</A>
|
||||
<LI><A HREF="#toc4">Modification</A>
|
||||
<LI><A HREF="#toc5">Text append</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></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>
|
||||
This module defines some <I>grammatical functions</I> that give shortcuts to
|
||||
typical constructions. <A HREF="Constructors.html"><CODE>Constructors</CODE></A> and the
|
||||
language-specific <CODE>Paradigms</CODE> modules are usually needed
|
||||
to construct arguments of these functions.
|
||||
</P>
|
||||
<PRE>
|
||||
incomplete resource Combinators = open Grammar in {
|
||||
|
||||
oper
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc1"></A>
|
||||
<H2>Predication</H2>
|
||||
<PRE>
|
||||
pred : overload {
|
||||
pred : V -> NP -> Cl ;
|
||||
pred : V2 -> NP -> NP -> Cl ;
|
||||
pred : V3 -> NP -> NP -> NP -> Cl ;
|
||||
pred : V -> NP -> NP -> Cl ;
|
||||
pred : A -> NP -> Cl ;
|
||||
pred : A2 -> NP -> NP -> Cl ;
|
||||
pred : A -> NP -> NP -> Cl ;
|
||||
pred : N -> NP -> Cl ;
|
||||
pred : CN -> NP -> Cl ;
|
||||
pred : NP -> NP -> Cl ;
|
||||
pred : N -> NP -> NP -> Cl ;
|
||||
pred : Adv -> NP -> Cl ;
|
||||
pred : Prep -> NP -> NP -> Cl
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Function application</H2>
|
||||
<PRE>
|
||||
app : overload {
|
||||
app : N -> NP ;
|
||||
app : N2 -> NP -> NP ;
|
||||
app : N3 -> NP -> NP -> NP ;
|
||||
app : N2 -> NP -> NP -> NP ;
|
||||
app : N2 -> N -> CN
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
<H2>Coordination</H2>
|
||||
<PRE>
|
||||
coord : overload {
|
||||
coord : Conj -> Adv -> Adv -> Adv ;
|
||||
coord : Conj -> AP -> AP -> AP ;
|
||||
coord : Conj -> NP -> NP -> NP ;
|
||||
coord : Conj -> S -> S -> S ;
|
||||
coord : DConj -> Adv -> Adv -> Adv ;
|
||||
coord : DConj -> AP -> AP -> AP ;
|
||||
coord : DConj -> NP -> NP -> NP ;
|
||||
coord : DConj -> S -> S -> S ;
|
||||
coord : Conj -> ListAdv -> Adv ;
|
||||
coord : Conj -> ListAP -> AP ;
|
||||
coord : Conj -> ListNP -> NP ;
|
||||
coord : Conj -> ListS -> S ;
|
||||
coord : DConj -> ListAdv -> Adv ;
|
||||
coord : DConj -> ListAP -> AP ;
|
||||
coord : DConj -> ListNP -> NP ;
|
||||
coord : DConj -> ListS -> S
|
||||
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc4"></A>
|
||||
<H2>Modification</H2>
|
||||
<PRE>
|
||||
mod : overload {
|
||||
mod : A -> N -> CN ;
|
||||
mod : AP -> CN -> CN ;
|
||||
mod : AdA -> A -> AP ;
|
||||
mod : Quant -> N -> NP ;
|
||||
mod : Quant -> CN -> NP ;
|
||||
mod : Predet -> N -> NP ;
|
||||
mod : Numeral -> N -> NP
|
||||
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc5"></A>
|
||||
<H2>Text append</H2>
|
||||
<P>
|
||||
This is not in ground API, because it would destroy parsing.
|
||||
</P>
|
||||
<PRE>
|
||||
appendText : Text -> Text -> Text ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc api/Combinators.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Common: Structures with Common Implementations.</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:13:55 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Conjunction: Coordination</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:17:31 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Constructors: the High-Level Syntax API</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-11-21 19:14:38 CET</I><BR>
|
||||
<I>Last update: 2006-11-27 17:15:06 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -85,7 +85,7 @@ to this.
|
||||
<PRE>
|
||||
mkText : overload {
|
||||
mkText : Text ; -- [empty text]
|
||||
mkText : Phr -> Text -> Text; -- John walks. ...
|
||||
mkText : Phr -> Text -> Text -- John walks. ...
|
||||
} ;
|
||||
|
||||
mkPhr : overload {
|
||||
@@ -116,8 +116,8 @@ to this.
|
||||
mkS : Conj -> S -> S -> S ; -- John walks and Mary talks
|
||||
mkS : DConj -> S -> S -> S ; -- either I leave or you come
|
||||
mkS : Conj -> ListS -> S ; -- John walks, Mary talks, and Bob runs
|
||||
mkS : DConj -> ListS -> S -- either I leave, you come, or he runs
|
||||
|
||||
mkS : DConj -> ListS -> S ; -- either I leave, you come, or he runs
|
||||
mkS : Adv -> S -> S -- today, I will sleep
|
||||
} ;
|
||||
|
||||
mkCl : overload {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Grammar: the Main Module of the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:08:55 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Idiom: Idiomatic Expressions</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-14 22:57:19 CEST</I><BR>
|
||||
<I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Lang: a Test Module for the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:09:20 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The Mathematics API to the Resource Grammar</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-02-25 21:36:45 CET</I><BR>
|
||||
<I>Last update: 2006-02-28 09:26:58 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Multimodal additions to the resource grammar library</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-05-23 23:36:59 CEST</I><BR>
|
||||
<I>Last update: 2006-05-24 15:08:56 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Noun: Nouns, noun phrases, and determiners</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:19:41 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Numerals</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:22:05 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -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-06-22 20:53:41 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> English Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 20:54:15 CEST</I><BR>
|
||||
<I>Last update: 2006-11-23 14:34:29 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -122,10 +122,18 @@ The resource category <CODE>Prep</CODE> is used.
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Nouns</H2>
|
||||
<P>
|
||||
Nouns are constructed by the function <CODE>mkN</CODE>, which takes a varying
|
||||
number of arguments.
|
||||
</P>
|
||||
<PRE>
|
||||
mkN : overload {
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
Worst case: give all four forms.
|
||||
</P>
|
||||
<PRE>
|
||||
mkN : (man,men,man's,men's : Str) -> N ;
|
||||
mkN : (man,men,man's,men's : Str) -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -134,14 +142,14 @@ The regular function captures the variants for nouns ending with
|
||||
<I>fly - flies</I> (but <I>toy - toys</I>),
|
||||
</P>
|
||||
<PRE>
|
||||
regN : Str -> N ;
|
||||
mkN : (flash : Str) -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
In practice the worst case is just: give singular and plural nominative.
|
||||
</P>
|
||||
<PRE>
|
||||
mk2N : (man,men : Str) -> N ;
|
||||
mkN : (man,men : Str) -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
@@ -150,7 +158,7 @@ All nouns created by the previous functions are marked as
|
||||
function:
|
||||
</P>
|
||||
<PRE>
|
||||
genderN : Gender -> N -> N ;
|
||||
mkN : Gender -> N -> N ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
@@ -160,7 +168,8 @@ A compound noun ia an uninflected string attached to an inflected noun,
|
||||
such as <I>baby boom</I>, <I>chief executive officer</I>.
|
||||
</P>
|
||||
<PRE>
|
||||
compoundN : Str -> N -> N ;
|
||||
mkN : Str -> N -> N
|
||||
} ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc4"></A>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Finnish Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 20:46:07 CEST</I><BR>
|
||||
<I>Last update: 2006-11-13 16:54:32 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -168,9 +168,10 @@ Examples: <I>talo</I>, <I>kukko</I>, <I>huippu</I>, <I>koira</I>, <I>kukka</I>,
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
A special case are nouns with no alternations:
|
||||
A special case:
|
||||
the vowel harmony is inferred from the last letter,
|
||||
which must be one of <I>o</I>, <I>u</I>, <I>ö</I>, <I>y</I>.
|
||||
which must be one of <I>o</I>, <I>u</I>, <I>ö</I>, <I>y</I>. Regular weak-grade alternation
|
||||
is performed.
|
||||
</P>
|
||||
<PRE>
|
||||
nTalo : (talo : Str) -> N ;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> French Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 21:02:44 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> German Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 20:58:18 CEST</I><BR>
|
||||
<I>Last update: 2006-11-13 16:54:32 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Italian Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 21:07:00 CEST</I><BR>
|
||||
<I>Last update: 2006-12-07 11:27:52 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -123,6 +123,13 @@ amalgamate with the following word (the 'genitive' <I>di</I> and the
|
||||
mkPrep : Str -> Prep ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
The following prepositions also have special contracted forms.
|
||||
</P>
|
||||
<PRE>
|
||||
con_Prep, da_Prep, in_Prep, su_Prep : Prep ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H2>Nouns</H2>
|
||||
<P>
|
||||
|
||||
@@ -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-22 21:16:02 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -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-22 17:53:54 CEST</I><BR>
|
||||
<I>Last update: 2006-09-06 14:59:55 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -327,9 +327,10 @@ 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>),
|
||||
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.
|
||||
mkVerbum : Aspect -> (presentSgP1,presentSgP2,presentSgP3,
|
||||
</P>
|
||||
<PRE>
|
||||
<PRE>
|
||||
mkV : Aspect -> (presentSgP1,presentSgP2,presentSgP3,
|
||||
presentPlP1,presentPlP2,presentPlP3,
|
||||
pastSgMasculine,imperative,infinitive: Str) -> V ;
|
||||
@@ -352,14 +353,6 @@ regV Imperfective Second <I>люб</I> <I>лю</I> <I>любил</I> <I>люби
|
||||
pastSgP1,imperative,infinitive : Str) -> V ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
For writing an application grammar one usualy doesn't need
|
||||
the whole inflection table, since each verb is used in
|
||||
a particular context that determines some of the parameters
|
||||
(Tense and Voice while Aspect is fixed from the beginning) for certain usage.
|
||||
The <I>V</I> type, that have these parameters fixed.
|
||||
We can extract the <I>V</I> from the lexicon.
|
||||
mkV: Verbum -> Voice -> V ;
|
||||
<P>
|
||||
Two-place verbs, and the special case with direct object. Notice that
|
||||
a particle can be included in a <CODE>V</CODE>.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Spanish Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 21:33:43 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Swedish Lexical Paradigms</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 21:39:41 CEST</I><BR>
|
||||
<I>Last update: 2006-10-31 16:59:43 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Phrase: Phrases and Utterances</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-14 22:58:47 CEST</I><BR>
|
||||
<I>Last update: 2006-12-13 09:36:48 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -38,10 +38,11 @@ and suffixing with a vocative (typically a noun phrase).
|
||||
Utterances are formed from sentences, questions, and imperatives.
|
||||
</P>
|
||||
<PRE>
|
||||
UttS : S -> Utt ; -- John walks
|
||||
UttQS : QS -> Utt ; -- is it good
|
||||
UttImpSg : Pol -> Imp -> Utt; -- (don't) help yourself
|
||||
UttImpPl : Pol -> Imp -> Utt; -- (don't) help yourselves
|
||||
UttS : S -> Utt ; -- John walks
|
||||
UttQS : QS -> Utt ; -- is it good
|
||||
UttImpSg : Pol -> Imp -> Utt; -- (don't) help yourself
|
||||
UttImpPl : Pol -> Imp -> Utt; -- (don't) help yourselves
|
||||
UttImpPol : Pol -> Imp -> Utt ; -- (don't) help (polite)
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Last update: 2005-11-17 17:36:49 CET
|
||||
Last update: 2005-11-23 09:16:18 CET
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Predefined functions for concrete syntax</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-02-25 22:19:20 CET</I><BR>
|
||||
<I>Last update: 2006-09-01 16:37:08 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -36,9 +36,11 @@ This type of booleans is for internal use only.
|
||||
<PRE>
|
||||
param PBool = PTrue | PFalse ;
|
||||
|
||||
oper Int : Type = variants {} ; -- the type of integers
|
||||
oper Ints : Int -> Type = variants {} ; -- the type of integers from 0 to n
|
||||
oper Error : Type = variants {} ; -- the empty type
|
||||
oper Int : Type = variants {} ; -- the type of integers
|
||||
oper Ints : Int -> Type = variants {} ; -- the type of integers from 0 to n
|
||||
|
||||
oper error : Str -> Error = variants {} ; -- forms error message
|
||||
oper length : Tok -> Int = variants {} ; -- length of string
|
||||
oper drop : Int -> Tok -> Tok = variants {} ; -- drop prefix of length
|
||||
oper take : Int -> Tok -> Tok = variants {} ; -- take prefix of length
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P>
|
||||
Last update: 2006-06-03 10:54:51 CEST
|
||||
Last update: 2006-06-02 17:49:44 CEST
|
||||
</P>
|
||||
<P>
|
||||
Produced by
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> A Small Predication Library</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-02-25 23:46:32 CET</I><BR>
|
||||
<I>Last update: 2006-02-28 09:26:58 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The GF Prelude</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-02-25 22:31:06 CET</I><BR>
|
||||
<I>Last update: 2006-02-27 09:41:31 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Question: Questions and Interrogative Pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:22:41 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Relative clauses and pronouns</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:23:30 CEST</I><BR>
|
||||
<I>Last update: 2006-06-26 13:24:17 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Sentence: Sentences, Clauses, and Imperatives</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:24:56 CEST</I><BR>
|
||||
<I>Last update: 2006-12-18 16:59:02 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -66,10 +66,10 @@ the style of CCG.
|
||||
<B>Note</B> the set is not complete and lacks e.g. verbs with more than 2 places.
|
||||
</P>
|
||||
<PRE>
|
||||
SlashV2 : NP -> V2 -> Slash ; -- (whom) he sees
|
||||
SlashVVV2 : NP -> VV -> V2 -> Slash; -- (whom) he wants to see
|
||||
AdvSlash : Slash -> Adv -> Slash ; -- (whom) he sees tomorrow
|
||||
SlashPrep : Cl -> Prep -> Slash ; -- (with whom) he walks
|
||||
SlashV2 : NP -> V2 -> Slash ; -- (whom) he sees
|
||||
SlashVVV2 : NP -> VV -> V2 -> Slash; -- (whom) he wants to see
|
||||
AdvSlash : Slash -> Adv -> Slash ; -- (whom) he sees tomorrow
|
||||
SlashPrep : Cl -> Prep -> Slash ; -- (with whom) he walks
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
@@ -107,6 +107,13 @@ anteriority, which are defined in <A HREF="Common.html"><CODE>Common</CODE></A>.
|
||||
UseCl : Tense -> Ant -> Pol -> Cl -> S ;
|
||||
UseQCl : Tense -> Ant -> Pol -> QCl -> QS ;
|
||||
UseRCl : Tense -> Ant -> Pol -> RCl -> RS ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<P>
|
||||
An adverb can be added to the beginning of a sentence.
|
||||
</P>
|
||||
<PRE>
|
||||
AdvS : Adv -> S -> S ; -- today, I will go home
|
||||
|
||||
}
|
||||
</PRE>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Structural: Structural Words</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-22 19:26:01 CEST</I><BR>
|
||||
<I>Last update: 2006-11-27 16:41:30 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -63,6 +63,7 @@ This is an alphabetical list of structural words
|
||||
everywhere_Adv : Adv ;
|
||||
first_Ord : Ord ;
|
||||
few_Det : Det ;
|
||||
for_Prep : Prep ;
|
||||
from_Prep : Prep ;
|
||||
he_Pron : Pron ;
|
||||
here_Adv : Adv ;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-03-17 12:02:40 CET</I><BR>
|
||||
<I>Last update: 2006-11-23 12:18:08 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
@@ -15,7 +15,9 @@
|
||||
<UL>
|
||||
<LI><A HREF="#toc1">Noun phrases with symbols and numbers</A>
|
||||
<LI><A HREF="#toc2">Sentence consisting of a formula</A>
|
||||
<LI><A HREF="#toc3">Symbol lists</A>
|
||||
<LI><A HREF="#toc3">Symbols as numerals</A>
|
||||
<LI><A HREF="#toc4">Symbol lists</A>
|
||||
<LI><A HREF="#toc5">Obsolescent</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
@@ -42,7 +44,7 @@ grammar <A HREF="Lang.html">Lang</A>.
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
FloatPN : Float -> PN ; -- 3.14159
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||
CNNumNP : CN -> Num -> NP ; -- level five ; level 5
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
</PRE>
|
||||
<P></P>
|
||||
@@ -53,6 +55,13 @@ grammar <A HREF="Lang.html">Lang</A>.
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
<H2>Symbols as numerals</H2>
|
||||
<PRE>
|
||||
SymbNum : Symb -> Num ; -- n
|
||||
SymbOrd : Symb -> Ord ; -- n'th
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc4"></A>
|
||||
<H2>Symbol lists</H2>
|
||||
<P>
|
||||
A symbol list has at least two elements. The last two are separated
|
||||
@@ -66,6 +75,12 @@ This produces <I>x, y and z</I>, in English.
|
||||
|
||||
fun
|
||||
MkSymb : String -> Symb ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc5"></A>
|
||||
<H2>Obsolescent</H2>
|
||||
<PRE>
|
||||
CNIntNP : CN -> Int -> NP ; -- level 53 (covered by CNNumNP)
|
||||
|
||||
}
|
||||
</PRE>
|
||||
|
||||
43
lib/resource-1.0/doc/gfdoc/Symbolic.html
Normal file
43
lib/resource-1.0/doc/gfdoc/Symbolic.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
||||
<TITLE> Symbolic: Noun Phrases with mathematical symbols</TITLE>
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Symbolic: Noun Phrases with mathematical symbols</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-12-22 14:08:31 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></P>
|
||||
<P></P>
|
||||
<HR NOSHADE SIZE=1>
|
||||
<P></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>
|
||||
<PRE>
|
||||
incomplete resource Symbolic = open Symbol, Grammar in {
|
||||
|
||||
oper
|
||||
symb : overload {
|
||||
symb : Str -> NP ; -- x
|
||||
symb : Int -> NP ; -- 23
|
||||
symb : Float -> NP ; -- 0.99
|
||||
symb : N -> Int -> NP ; -- level 4
|
||||
symb : CN -> Num -> NP ; -- level four
|
||||
symb : Det -> N -> Str -> Str -> NP ; -- the levels i and j
|
||||
symb : Det -> CN -> [Symb] -> NP -- the basic levels i, j, and k
|
||||
} ;
|
||||
|
||||
mkSymb : Str -> Symb ;
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc api/Symbolic.txt -->
|
||||
</BODY></HTML>
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> Text: Texts</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-06-14 23:03:43 CEST</I><BR>
|
||||
<I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
||||
<P ALIGN="center"><CENTER><H1> The construction of verb phrases</H1>
|
||||
<FONT SIZE="4">
|
||||
<I>Last update: 2006-02-26 18:02:58 CET</I><BR>
|
||||
<I>Last update: 2006-02-27 09:41:31 CET</I><BR>
|
||||
</FONT></CENTER>
|
||||
|
||||
<P></P>
|
||||
|
||||
Reference in New Issue
Block a user