forked from GitHub/gf-core
114 lines
4.2 KiB
HTML
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 -> S ; -- positive sentence: "x intersects y"
|
|
NegCl : Cl -> S ; -- negative sentence: "x doesn't intersect y"
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc2"></A>
|
|
<H2>Predication patterns.</H2>
|
|
<PRE>
|
|
predV : V -> NP -> Cl ; -- one-place verb: "x converges"
|
|
predV2 : V2 -> NP -> NP -> Cl ; -- two-place verb: "x intersects y"
|
|
predV3 : V3 -> NP->NP-> NP -> Cl; -- three-place verb: "x intersects y at z"
|
|
predVColl : V -> NP -> NP -> Cl ; -- collective verb: "x and y intersect"
|
|
predA : A -> NP -> Cl ; -- one-place adjective: "x is even"
|
|
predA2 : A2 -> NP -> NP -> Cl ; -- two-place adj: "x is divisible by y"
|
|
predAComp : A -> NP -> NP -> Cl; -- comparative adj: "x is greater than y"
|
|
predAColl : A -> NP -> NP -> Cl ; -- collective adj: "x and y are parallel"
|
|
predN : N -> NP -> Cl ; -- one-place noun: "x is a point"
|
|
predN2 : N2 -> NP -> NP -> Cl ; -- two-place noun: "x is a divisor of y"
|
|
predNColl : N -> NP -> NP -> Cl ; -- collective noun: "x and y are duals"
|
|
predAdv : Adv -> NP -> Cl ; -- adverb: "x is inside"
|
|
predPrep : Prep -> NP -> NP -> Cl ; -- preposition: "x is outside y"
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc3"></A>
|
|
<H2>Imperatives and infinitives.</H2>
|
|
<PRE>
|
|
impV2 : V2 -> NP -> Phr ; -- imperative: "solve the equation E"
|
|
infV2 : V2 -> NP -> Phr ; -- infinitive: "to solve the equation E"
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc4"></A>
|
|
<H2>Individual-valued function applications</H2>
|
|
<PRE>
|
|
appN2 : N2 -> NP -> NP ; -- one-place function: "the successor of x"
|
|
appN3 : N3 -> NP -> NP -> NP ; -- two-place function: "the distance from x to y"
|
|
appColl : N2 -> NP -> NP -> 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 -> NP -> CN ; -- one-place family: "divisor of x"
|
|
famN3 : N3 -> NP -> NP -> CN ; -- two-place family: "path from x to y"
|
|
famColl : N2 -> NP -> NP -> 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 -> CN -> 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>
|