Files
gf-core/lib/resource/doc/gfdoc/Predication.html
2007-12-12 20:30:11 +00:00

114 lines
4.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<TITLE> A Small Predication Library</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1> A Small Predication Library</H1>
<FONT SIZE="4">
<I>Last update: 2006-02-28 09:26:58 CET</I><BR>
</FONT></CENTER>
<P></P>
<HR NOSHADE SIZE=1>
<P></P>
<UL>
<LI><A HREF="#toc1">The category of atomic sentences</A>
<LI><A HREF="#toc2">Predication patterns.</A>
<LI><A HREF="#toc3">Imperatives and infinitives.</A>
<LI><A HREF="#toc4">Individual-valued function applications</A>
<LI><A HREF="#toc5">Families of types</A>
<LI><A HREF="#toc6">Type constructor</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>
(c) Aarne Ranta 2003-2006 under Gnu GPL.
</P>
<P>
This library is a derived library built on the language-independent Ground
API of resource grammars.
</P>
<PRE>
abstract Predication = Cat ** {
</PRE>
<P></P>
<A NAME="toc1"></A>
<H2>The category of atomic sentences</H2>
<P>
We want to use sentences in positive and negative forms but do not care about
tenses.
</P>
<PRE>
fun
PosCl : Cl -&gt; S ; -- positive sentence: "x intersects y"
NegCl : Cl -&gt; S ; -- negative sentence: "x doesn't intersect y"
</PRE>
<P></P>
<A NAME="toc2"></A>
<H2>Predication patterns.</H2>
<PRE>
predV : V -&gt; NP -&gt; Cl ; -- one-place verb: "x converges"
predV2 : V2 -&gt; NP -&gt; NP -&gt; Cl ; -- two-place verb: "x intersects y"
predV3 : V3 -&gt; NP-&gt;NP-&gt; NP -&gt; Cl; -- three-place verb: "x intersects y at z"
predVColl : V -&gt; NP -&gt; NP -&gt; Cl ; -- collective verb: "x and y intersect"
predA : A -&gt; NP -&gt; Cl ; -- one-place adjective: "x is even"
predA2 : A2 -&gt; NP -&gt; NP -&gt; Cl ; -- two-place adj: "x is divisible by y"
predAComp : A -&gt; NP -&gt; NP -&gt; Cl; -- comparative adj: "x is greater than y"
predAColl : A -&gt; NP -&gt; NP -&gt; Cl ; -- collective adj: "x and y are parallel"
predN : N -&gt; NP -&gt; Cl ; -- one-place noun: "x is a point"
predN2 : N2 -&gt; NP -&gt; NP -&gt; Cl ; -- two-place noun: "x is a divisor of y"
predNColl : N -&gt; NP -&gt; NP -&gt; Cl ; -- collective noun: "x and y are duals"
predAdv : Adv -&gt; NP -&gt; Cl ; -- adverb: "x is inside"
predPrep : Prep -&gt; NP -&gt; NP -&gt; Cl ; -- preposition: "x is outside y"
</PRE>
<P></P>
<A NAME="toc3"></A>
<H2>Imperatives and infinitives.</H2>
<PRE>
impV2 : V2 -&gt; NP -&gt; Phr ; -- imperative: "solve the equation E"
infV2 : V2 -&gt; NP -&gt; Phr ; -- infinitive: "to solve the equation E"
</PRE>
<P></P>
<A NAME="toc4"></A>
<H2>Individual-valued function applications</H2>
<PRE>
appN2 : N2 -&gt; NP -&gt; NP ; -- one-place function: "the successor of x"
appN3 : N3 -&gt; NP -&gt; NP -&gt; NP ; -- two-place function: "the distance from x to y"
appColl : N2 -&gt; NP -&gt; NP -&gt; NP ; -- collective function: "the sum of x and y"
</PRE>
<P></P>
<A NAME="toc5"></A>
<H2>Families of types</H2>
<P>
These are expressed by relational nouns applied to arguments.
</P>
<PRE>
famN2 : N2 -&gt; NP -&gt; CN ; -- one-place family: "divisor of x"
famN3 : N3 -&gt; NP -&gt; NP -&gt; CN ; -- two-place family: "path from x to y"
famColl : N2 -&gt; NP -&gt; NP -&gt; CN ; -- collective family: "path between x and y"
</PRE>
<P></P>
<A NAME="toc6"></A>
<H2>Type constructor</H2>
<P>
This is similar to a family except that the argument is a type.
</P>
<PRE>
typN2 : N2 -&gt; CN -&gt; CN ; -- constructed type: "list of integers"
}
</PRE>
<P></P>
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -thtml -\-toc mathematical/Predication.txt -->
</BODY></HTML>