mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 22:39:31 -06:00
added documentation of list constructors to abstract/ files to improve the absfun document
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<CENTER>
|
||||
<H1>GF RGL Functions</H1>
|
||||
<FONT SIZE="4"><I>generated by lib/src/doc/AbsFunFoc.hs</I></FONT><BR>
|
||||
<FONT SIZE="4">20151015</FONT>
|
||||
<FONT SIZE="4">20151019</FONT>
|
||||
</CENTER>
|
||||
|
||||
<P>
|
||||
@@ -198,6 +198,76 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseAP<a name="BaseAP"></a></TD>
|
||||
<TD>AP -> AP -> ListAP</TD>
|
||||
<TD><I>red, white</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseAdV<a name="BaseAdV"></a></TD>
|
||||
<TD>AdV -> AdV -> ListAdV</TD>
|
||||
<TD><I>always, sometimes</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseAdv<a name="BaseAdv"></a></TD>
|
||||
<TD>Adv -> Adv -> ListAdv</TD>
|
||||
<TD><I>here, there</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseCN<a name="BaseCN"></a></TD>
|
||||
<TD>CN -> CN -> ListCN</TD>
|
||||
<TD><I>man, woman</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseIAdv<a name="BaseIAdv"></a></TD>
|
||||
<TD>IAdv -> IAdv -> ListIAdv</TD>
|
||||
<TD><I>where, when</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseNP<a name="BaseNP"></a></TD>
|
||||
<TD>NP -> NP -> ListNP</TD>
|
||||
<TD><I>John, Mary</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseRS<a name="BaseRS"></a></TD>
|
||||
<TD>RS -> RS -> ListRS</TD>
|
||||
<TD><I>who walks, whom I know</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseS<a name="BaseS"></a></TD>
|
||||
<TD>S -> S -> ListS</TD>
|
||||
<TD><I>John walks, Mary runs</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseVPI<a name="BaseVPI"></a></TD>
|
||||
<TD>VPI -> VPI -> ListVPI</TD>
|
||||
<TD><I>to walk, to run</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>BaseVPS<a name="BaseVPS"></a></TD>
|
||||
<TD>VPS -> VPS -> ListVPS</TD>
|
||||
<TD><I>walks, has run</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ByVP<a name="ByVP"></a></TD>
|
||||
<TD>VP -> Adv</TD>
|
||||
<TD><I>by publishing the document</I></TD>
|
||||
@@ -423,82 +493,152 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjAP<a name="ConjAP"></a></TD>
|
||||
<TD>Conj -> [AP] -> AP</TD>
|
||||
<TD>Conj -> ListAP -> AP</TD>
|
||||
<TD><I>cold and warm</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjAdV<a name="ConjAdV"></a></TD>
|
||||
<TD>Conj -> [AdV] -> AdV</TD>
|
||||
<TD>Conj -> ListAdV -> AdV</TD>
|
||||
<TD><I>always or sometimes</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjAdv<a name="ConjAdv"></a></TD>
|
||||
<TD>Conj -> [Adv] -> Adv</TD>
|
||||
<TD>Conj -> ListAdv -> Adv</TD>
|
||||
<TD><I>here or there</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjCN<a name="ConjCN"></a></TD>
|
||||
<TD>Conj -> [CN] -> CN</TD>
|
||||
<TD>Conj -> ListCN -> CN</TD>
|
||||
<TD><I>man and woman</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjDet<a name="ConjDet"></a></TD>
|
||||
<TD>Conj -> [DAP] -> Det</TD>
|
||||
<TD>Conj -> ListDAP -> Det</TD>
|
||||
<TD><I>his or her</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjIAdv<a name="ConjIAdv"></a></TD>
|
||||
<TD>Conj -> [IAdv] -> IAdv</TD>
|
||||
<TD>Conj -> ListIAdv -> IAdv</TD>
|
||||
<TD><I>where and with whom</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjNP<a name="ConjNP"></a></TD>
|
||||
<TD>Conj -> [NP] -> NP</TD>
|
||||
<TD>Conj -> ListNP -> NP</TD>
|
||||
<TD><I>she or we</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjRS<a name="ConjRS"></a></TD>
|
||||
<TD>Conj -> [RS] -> RS</TD>
|
||||
<TD>Conj -> ListRS -> RS</TD>
|
||||
<TD><I>who walks and whose mother runs</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjS<a name="ConjS"></a></TD>
|
||||
<TD>Conj -> [S] -> S</TD>
|
||||
<TD>Conj -> ListS -> S</TD>
|
||||
<TD><I>he walks and she runs</I></TD>
|
||||
<TD>cc head</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjVPI<a name="ConjVPI"></a></TD>
|
||||
<TD>Conj -> [VPI] -> VPI</TD>
|
||||
<TD>Conj -> ListVPI -> VPI</TD>
|
||||
<TD><I>to walk and drink beer</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConjVPS<a name="ConjVPS"></a></TD>
|
||||
<TD>Conj -> [VPS] -> VPS</TD>
|
||||
<TD>Conj -> ListVPS -> VPS</TD>
|
||||
<TD><I>had walked and drank beer</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsAP<a name="ConsAP"></a></TD>
|
||||
<TD>AP -> ListAP -> ListAP</TD>
|
||||
<TD><I>red, white, blue</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsAdV<a name="ConsAdV"></a></TD>
|
||||
<TD>AdV -> ListAdV -> ListAdV</TD>
|
||||
<TD><I>always, sometimes, never</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsAdv<a name="ConsAdv"></a></TD>
|
||||
<TD>Adv -> ListAdv -> ListAdv</TD>
|
||||
<TD><I>here, there, everywhere</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsCN<a name="ConsCN"></a></TD>
|
||||
<TD>CN -> ListCN -> ListCN</TD>
|
||||
<TD><I>man, woman, child</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsIAdv<a name="ConsIAdv"></a></TD>
|
||||
<TD>IAdv -> ListIAdv -> ListIAdv</TD>
|
||||
<TD><I>where, when, why</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsNP<a name="ConsNP"></a></TD>
|
||||
<TD>NP -> ListNP -> ListNP</TD>
|
||||
<TD><I>John, Mary, Bill</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsRS<a name="ConsRS"></a></TD>
|
||||
<TD>RS -> ListRS -> ListRS</TD>
|
||||
<TD><I>who wals, whom I know, who is here</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsS<a name="ConsS"></a></TD>
|
||||
<TD>S -> ListS -> ListS</TD>
|
||||
<TD><I>John walks, Mary runs, Bill swims</I></TD>
|
||||
<TD>head conj</TD>
|
||||
<TD><A HREF="../src/abstract/Conjunction.gf">Conjunction</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsVPI<a name="ConsVPI"></a></TD>
|
||||
<TD>VPI -> ListVPI -> ListVPI</TD>
|
||||
<TD><I>to walk, to run, to stop</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>ConsVPS<a name="ConsVPS"></a></TD>
|
||||
<TD>VPS -> ListVPS -> ListVPS</TD>
|
||||
<TD><I>walks, has run, will stop</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD><A HREF="../src/translator/Extensions.gf">Extensions</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>CountNP<a name="CountNP"></a></TD>
|
||||
<TD>Det -> NP -> NP</TD>
|
||||
<TD><I>three of them, some of the boys</I></TD>
|
||||
@@ -936,7 +1076,7 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
|
||||
<TD>PPartNP<a name="PPartNP"></a></TD>
|
||||
<TD>NP -> V2 -> NP</TD>
|
||||
<TD><I>the man seen</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD>head amod</TD>
|
||||
<TD><A HREF="../src/abstract/Noun.gf">Noun</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
@@ -1419,14 +1559,14 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
|
||||
<TD>TExclMark<a name="TExclMark"></a></TD>
|
||||
<TD>Phr -> Text -> Text</TD>
|
||||
<TD><I>Let's go! ...</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD>head dep</TD>
|
||||
<TD><A HREF="../src/abstract/Text.gf">Text</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>TFullStop<a name="TFullStop"></a></TD>
|
||||
<TD>Phr -> Text -> Text</TD>
|
||||
<TD><I>John walks. ...</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD>head dep</TD>
|
||||
<TD><A HREF="../src/abstract/Text.gf">Text</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
@@ -1454,7 +1594,7 @@ Functions in this table have links, e.g. <A HREF="http://www.grammaticalframewor
|
||||
<TD>TQuestMark<a name="TQuestMark"></a></TD>
|
||||
<TD>Phr -> Text -> Text</TD>
|
||||
<TD><I>Are they here? ...</I></TD>
|
||||
<TD>-</TD>
|
||||
<TD>head dep</TD>
|
||||
<TD><A HREF="../src/abstract/Text.gf">Text</A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
|
||||
@@ -17,15 +17,15 @@ abstract Conjunction = Cat ** {
|
||||
--2 Rules
|
||||
|
||||
fun
|
||||
ConjS : Conj -> [S] -> S ; -- he walks and she runs
|
||||
ConjRS : Conj -> [RS] -> RS ; -- who walks and whose mother runs
|
||||
ConjAP : Conj -> [AP] -> AP ; -- cold and warm
|
||||
ConjNP : Conj -> [NP] -> NP ; -- she or we
|
||||
ConjAdv : Conj -> [Adv] -> Adv ; -- here or there
|
||||
ConjAdV : Conj -> [AdV] -> AdV ; -- always or sometimes
|
||||
ConjIAdv : Conj -> [IAdv] -> IAdv ; -- where and with whom
|
||||
ConjCN : Conj -> [CN] -> CN ; -- man and woman
|
||||
ConjDet : Conj -> [DAP] -> Det ; -- his or her
|
||||
ConjS : Conj -> ListS -> S ; -- he walks and she runs
|
||||
ConjRS : Conj -> ListRS -> RS ; -- who walks and whose mother runs
|
||||
ConjAP : Conj -> ListAP -> AP ; -- cold and warm
|
||||
ConjNP : Conj -> ListNP -> NP ; -- she or we
|
||||
ConjAdv : Conj -> ListAdv -> Adv ; -- here or there
|
||||
ConjAdV : Conj -> ListAdV -> AdV ; -- always or sometimes
|
||||
ConjIAdv : Conj -> ListIAdv -> IAdv ; -- where and with whom
|
||||
ConjCN : Conj -> ListCN -> CN ; -- man and woman
|
||||
ConjDet : Conj -> ListDAP -> Det ; -- his or her
|
||||
|
||||
--2 Categories
|
||||
|
||||
@@ -46,8 +46,37 @@ abstract Conjunction = Cat ** {
|
||||
|
||||
-- The list constructors are derived from the list notation and therefore
|
||||
-- not given explicitly. But here are their type signatures:
|
||||
{-
|
||||
-- overview
|
||||
BaseC : C -> C -> [C] ; --- for C = AdV, Adv, AP, CN, Det, IAdv, NP, RS, S
|
||||
ConsC : C -> [C] -> [C] ; --- for C = AdV, Adv, AP, CN, Det, IAdv, NP, RS, S
|
||||
|
||||
-- BaseC : C -> C -> [C] ; -- for C = S, AP, NP, Adv
|
||||
-- ConsC : C -> [C] -> [C] ;
|
||||
-- complete list
|
||||
|
||||
BaseAP : AP -> AP -> ListAP ; -- red, white
|
||||
ConsAP : AP -> ListAP -> ListAP ; -- red, white, blue
|
||||
|
||||
BaseAdV : AdV -> AdV -> ListAdV ; -- always, sometimes
|
||||
ConsAdV : AdV -> ListAdV -> ListAdV ; -- always, sometimes, never
|
||||
|
||||
BaseAdv : Adv -> Adv -> ListAdv ; -- here, there
|
||||
ConsAdv : Adv -> ListAdv -> ListAdv ; -- here, there, everywhere
|
||||
|
||||
BaseCN : CN -> CN -> ListCN ; -- man, woman
|
||||
ConsCN : CN -> ListCN -> ListCN ; -- man, woman, child
|
||||
|
||||
BaseIAdv : IAdv -> IAdv -> ListIAdv ; -- where, when
|
||||
ConsIAdv : IAdv -> ListIAdv -> ListIAdv ; -- where, when, why
|
||||
|
||||
BaseNP : NP -> NP -> ListNP ; -- John, Mary
|
||||
ConsNP : NP -> ListNP -> ListNP ; -- John, Mary, Bill
|
||||
|
||||
BaseRS : RS -> RS -> ListRS ; -- who walks, whom I know
|
||||
ConsRS : RS -> ListRS -> ListRS ; -- who wals, whom I know, who is here
|
||||
|
||||
BaseS : S -> S -> ListS ; -- John walks, Mary runs
|
||||
ConsS : S -> ListS -> ListS ; -- John walks, Mary runs, Bill swims
|
||||
|
||||
-}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,19 +13,18 @@ cat
|
||||
[VPS] {2} ;
|
||||
|
||||
fun
|
||||
MkVPI : VP -> VPI ; -- to walk
|
||||
ConjVPI : Conj -> [VPI] -> VPI ; -- to walk and drink beer
|
||||
ComplVPIVV : VV -> VPI -> VP ; -- want to walk and drink beer
|
||||
MkVPI : VP -> VPI ; -- to walk
|
||||
ConjVPI : Conj -> ListVPI -> VPI ; -- to walk and drink beer
|
||||
ComplVPIVV : VV -> VPI -> VP ; -- want to walk and drink beer
|
||||
|
||||
MkVPS : Temp -> Pol -> VP -> VPS ; -- had walked
|
||||
ConjVPS : Conj -> [VPS] -> VPS ; -- had walked and drank beer
|
||||
PredVPS : NP -> VPS -> S ; -- I had walked and drank beer
|
||||
MkVPS : Temp -> Pol -> VP -> VPS ; -- had walked
|
||||
ConjVPS : Conj -> ListVPS -> VPS ; -- had walked and drank beer
|
||||
PredVPS : NP -> VPS -> S ; -- I had walked and drank beer
|
||||
|
||||
---- merge VPS and VPI
|
||||
---- MkVPS, BaseVPS, ConsVPS, ConjVPS, PredVPS,
|
||||
---- VPIForm, VPIInf, VPIPresPart, MkVPI, BaseVPI, ConsVPI, ConjVPI, ComplVPIVV,
|
||||
|
||||
|
||||
-- generalizing Grammar
|
||||
|
||||
PassVPSlash : VPSlash -> VP ; -- be forced to sleep
|
||||
@@ -95,6 +94,17 @@ fun
|
||||
FocusObjS : NP -> SSlash -> S ; -- this woman I love -- in declarative S, not in QS
|
||||
|
||||
|
||||
{-
|
||||
-- for documentation
|
||||
|
||||
BaseVPI : VPI -> VPI -> ListVPI ; -- to walk, to run
|
||||
ConsVPI : VPI -> ListVPI -> ListVPI ; -- to walk, to run, to stop
|
||||
|
||||
BaseVPS : VPS -> VPS -> ListVPS ; -- walks, has run
|
||||
ConsVPS : VPS -> ListVPS -> ListVPS ; -- walks, has run, will stop
|
||||
|
||||
-}
|
||||
|
||||
}
|
||||
|
||||
{-
|
||||
|
||||
@@ -88,6 +88,7 @@ DetQuantOrd head nummod amod -- quite wrong; again for same reason as DetQu
|
||||
DetCN det head
|
||||
CountNP det head
|
||||
PredetNP det head
|
||||
PPartNP head amod -- only in core RGL
|
||||
|
||||
AdjCN amod head
|
||||
AdjDAP head amod
|
||||
@@ -150,3 +151,7 @@ PhrUtt cc head discourse
|
||||
|
||||
PlusChunk head dep
|
||||
TTAnt empty empty head
|
||||
|
||||
TExclMark head dep -- punctuation in the middle in these three
|
||||
TFullStop head dep
|
||||
TQuestMark head dep
|
||||
|
||||
Reference in New Issue
Block a user