forked from GitHub/gf-core
Synopsis: add sections for lexical categories. They are still empty, but at least most links work now. The links to param types still don't work.
This commit is contained in:
@@ -119,10 +119,9 @@ inChunks i f = concat . intersperse ["\n\n"] . map f . chunks i where
|
||||
-- Makes one table per result category.
|
||||
-- Adds a subsection header for each table.
|
||||
mkSplitTables :: Bool -> Bool -> Cats -> Rules -> [String]
|
||||
mkSplitTables hasEx isLatex cs rs = concatMap t (sortRules rs)
|
||||
where t xs = [subtitle c expl] ++ mkTable hasEx isLatex cs xs
|
||||
where c = resultCat (head xs)
|
||||
expl = case [e | (n,e,_) <- cs, n == c] of
|
||||
mkSplitTables hasEx isLatex cs = concatMap t . addLexicalCats cs . sortRules
|
||||
where t (c, xs) = [subtitle c expl] ++ mkTable hasEx isLatex cs xs
|
||||
where expl = case [e | (n,e,_) <- cs, n == c] of
|
||||
[] -> ""
|
||||
e:_ -> e
|
||||
|
||||
@@ -191,6 +190,11 @@ sortRules = groupBy sameCat . sortBy compareRules
|
||||
compareRules r1@(n1,_,_) r2@(n2,_,_)
|
||||
= compare (resultCat r1,n1) (resultCat r2,n2)
|
||||
|
||||
addLexicalCats :: Cats -> [Rules] -> [(String,Rules)]
|
||||
addLexicalCats cs rss =
|
||||
sortBy (\x y -> compare (fst x) (fst y)) $
|
||||
[ (resultCat r, rs) | rs@(r:_) <- rss] ++ [(n,[]) | (n,_,_) <- cs]
|
||||
|
||||
resultCat :: (String,String,String) -> String
|
||||
resultCat (_,t,_) = last (words t)
|
||||
|
||||
|
||||
@@ -20,58 +20,114 @@
|
||||
</UL>
|
||||
<LI><A HREF="#toc4">Syntax Rules</A>
|
||||
<UL>
|
||||
<LI><A HREF="#A">A - one-place adjective</A>
|
||||
<LI><A HREF="#A2">A2 - two-place adjective</A>
|
||||
<LI><A HREF="#AP">AP - adjectival phrase</A>
|
||||
<LI><A HREF="#AP">AP - adjectival phrase</A>
|
||||
<LI><A HREF="#AdA">AdA - adjective-modifying adverb</A>
|
||||
<LI><A HREF="#AdN">AdN - numeral-modifying adverb</A>
|
||||
<LI><A HREF="#AdN">AdN - numeral-modifying adverb</A>
|
||||
<LI><A HREF="#AdV">AdV - adverb directly attached to verb</A>
|
||||
<LI><A HREF="#Adv">Adv - verb-phrase-modifying adverb</A>
|
||||
<LI><A HREF="#Adv">Adv - verb-phrase-modifying adverb</A>
|
||||
<LI><A HREF="#Ant">Ant - anteriority</A>
|
||||
<LI><A HREF="#Ant">Ant - anteriority</A>
|
||||
<LI><A HREF="#CAdv">CAdv - comparative adverb</A>
|
||||
<LI><A HREF="#CN">CN - common noun (without determiner)</A>
|
||||
<LI><A HREF="#CN">CN - common noun (without determiner)</A>
|
||||
<LI><A HREF="#Cl">Cl - declarative clause, with all tenses</A>
|
||||
<LI><A HREF="#Cl">Cl - declarative clause, with all tenses</A>
|
||||
<LI><A HREF="#Comp">Comp - complement of copula, such as AP</A>
|
||||
<LI><A HREF="#Conj">Conj - conjunction,</A>
|
||||
<LI><A HREF="#DConj">DConj - distributed conjunction</A>
|
||||
<LI><A HREF="#Det">Det - determiner phrase</A>
|
||||
<LI><A HREF="#Det">Det - determiner phrase</A>
|
||||
<LI><A HREF="#IAdv">IAdv - interrogative adverb</A>
|
||||
<LI><A HREF="#IAdv">IAdv - interrogative adverb</A>
|
||||
<LI><A HREF="#IComp">IComp - interrogative complement of copula</A>
|
||||
<LI><A HREF="#IDet">IDet - interrogative determiner</A>
|
||||
<LI><A HREF="#IP">IP - interrogative pronoun</A>
|
||||
<LI><A HREF="#IP">IP - interrogative pronoun</A>
|
||||
<LI><A HREF="#Imp">Imp - imperative</A>
|
||||
<LI><A HREF="#Imp">Imp - imperative</A>
|
||||
<LI><A HREF="#ImpForm">ImpForm</A>
|
||||
<LI><A HREF="#ListAP">ListAP</A>
|
||||
<LI><A HREF="#ListAdv">ListAdv</A>
|
||||
<LI><A HREF="#ListNP">ListNP</A>
|
||||
<LI><A HREF="#ListS">ListS</A>
|
||||
<LI><A HREF="#N">N - common noun</A>
|
||||
<LI><A HREF="#N2">N2 - relational noun</A>
|
||||
<LI><A HREF="#N3">N3 - three-place relational noun</A>
|
||||
<LI><A HREF="#NP">NP - noun phrase (subject or object)</A>
|
||||
<LI><A HREF="#NP">NP - noun phrase (subject or object)</A>
|
||||
<LI><A HREF="#Num">Num - cardinal number (used with QuantPl)</A>
|
||||
<LI><A HREF="#Num">Num - cardinal number (used with QuantPl)</A>
|
||||
<LI><A HREF="#Numeral">Numeral</A>
|
||||
<LI><A HREF="#Ord">Ord - ordinal number (used in Det)</A>
|
||||
<LI><A HREF="#Ord">Ord - ordinal number (used in Det)</A>
|
||||
<LI><A HREF="#PConj">PConj - phrase-beginning conjunction</A>
|
||||
<LI><A HREF="#PConj">PConj - phrase-beginning conjunction</A>
|
||||
<LI><A HREF="#PN">PN - proper name</A>
|
||||
<LI><A HREF="#Phr">Phr - phrase in a text</A>
|
||||
<LI><A HREF="#Phr">Phr - phrase in a text</A>
|
||||
<LI><A HREF="#Pol">Pol - polarity</A>
|
||||
<LI><A HREF="#Pol">Pol - polarity</A>
|
||||
<LI><A HREF="#Predet">Predet - predeterminer (prefixed Quant)</A>
|
||||
<LI><A HREF="#Prep">Prep - preposition, or just case</A>
|
||||
<LI><A HREF="#Pron">Pron - personal pronoun</A>
|
||||
<LI><A HREF="#Punct">Punct</A>
|
||||
<LI><A HREF="#QCl">QCl - question clause, with all tenses</A>
|
||||
<LI><A HREF="#QCl">QCl - question clause, with all tenses</A>
|
||||
<LI><A HREF="#QS">QS - question</A>
|
||||
<LI><A HREF="#QS">QS - question</A>
|
||||
<LI><A HREF="#Quant">Quant - quantifier with both sg and pl</A>
|
||||
<LI><A HREF="#Quant">Quant - quantifier with both sg and pl</A>
|
||||
<LI><A HREF="#QuantPl">QuantPl</A>
|
||||
<LI><A HREF="#QuantSg">QuantSg</A>
|
||||
<LI><A HREF="#RCl">RCl - relative clause, with all tenses</A>
|
||||
<LI><A HREF="#RCl">RCl - relative clause, with all tenses</A>
|
||||
<LI><A HREF="#RP">RP - relative pronoun</A>
|
||||
<LI><A HREF="#RP">RP - relative pronoun</A>
|
||||
<LI><A HREF="#RS">RS - relative</A>
|
||||
<LI><A HREF="#RS">RS - relative</A>
|
||||
<LI><A HREF="#S">S - declarative sentence</A>
|
||||
<LI><A HREF="#S">S - declarative sentence</A>
|
||||
<LI><A HREF="#SC">SC - embedded sentence or question</A>
|
||||
<LI><A HREF="#Slash">Slash - clause missing NP (S/NP in GPSG)</A>
|
||||
<LI><A HREF="#Slash">Slash - clause missing NP (S/NP in GPSG)</A>
|
||||
<LI><A HREF="#Subj">Subj - subjunction,</A>
|
||||
<LI><A HREF="#Tense">Tense - tense</A>
|
||||
<LI><A HREF="#Tense">Tense - tense</A>
|
||||
<LI><A HREF="#Text">Text - text consisting of several phrases</A>
|
||||
<LI><A HREF="#Text">Text - text consisting of several phrases</A>
|
||||
<LI><A HREF="#Utt">Utt - sentence, question, word...</A>
|
||||
<LI><A HREF="#Utt">Utt - sentence, question, word...</A>
|
||||
<LI><A HREF="#V">V - one-place verb</A>
|
||||
<LI><A HREF="#V2">V2 - two-place verb</A>
|
||||
<LI><A HREF="#V2A">V2A - verb with NP and AP complement</A>
|
||||
<LI><A HREF="#V3">V3 - three-place verb</A>
|
||||
<LI><A HREF="#VA">VA - adjective-complement verb</A>
|
||||
<LI><A HREF="#VP">VP - verb phrase</A>
|
||||
<LI><A HREF="#VP">VP - verb phrase</A>
|
||||
<LI><A HREF="#VQ">VQ - question-complement verb</A>
|
||||
<LI><A HREF="#VS">VS - sentence-complement verb</A>
|
||||
<LI><A HREF="#VV">VV - verb-phrase-complement verb</A>
|
||||
<LI><A HREF="#Voc">Voc - vocative or "please"</A>
|
||||
<LI><A HREF="#Voc">Voc - vocative or "please"</A>
|
||||
</UL>
|
||||
<LI><A HREF="#toc43">Structural Words</A>
|
||||
<LI><A HREF="#toc44">Paradigms for Danish</A>
|
||||
<LI><A HREF="#toc45">Paradigms for English</A>
|
||||
<LI><A HREF="#toc46">Paradigms for Finnish</A>
|
||||
<LI><A HREF="#toc47">Paradigms for French</A>
|
||||
<LI><A HREF="#toc48">Paradigms for German</A>
|
||||
<LI><A HREF="#toc49">Paradigms for Italian</A>
|
||||
<LI><A HREF="#toc50">Paradigms for Norwegian</A>
|
||||
<LI><A HREF="#toc51">Paradigms for Russian</A>
|
||||
<LI><A HREF="#toc52">Paradigms for Spanish</A>
|
||||
<LI><A HREF="#toc53">Paradigms for Swedish</A>
|
||||
<LI><A HREF="#toc54">Browsing the libraries with GF commands</A>
|
||||
<LI><A HREF="#toc55">An Example of Usage</A>
|
||||
<LI><A HREF="#toc99">Structural Words</A>
|
||||
<LI><A HREF="#toc100">Paradigms for Danish</A>
|
||||
<LI><A HREF="#toc101">Paradigms for English</A>
|
||||
<LI><A HREF="#toc102">Paradigms for Finnish</A>
|
||||
<LI><A HREF="#toc103">Paradigms for French</A>
|
||||
<LI><A HREF="#toc104">Paradigms for German</A>
|
||||
<LI><A HREF="#toc105">Paradigms for Italian</A>
|
||||
<LI><A HREF="#toc106">Paradigms for Norwegian</A>
|
||||
<LI><A HREF="#toc107">Paradigms for Russian</A>
|
||||
<LI><A HREF="#toc108">Paradigms for Spanish</A>
|
||||
<LI><A HREF="#toc109">Paradigms for Swedish</A>
|
||||
<LI><A HREF="#toc110">Browsing the libraries with GF commands</A>
|
||||
<LI><A HREF="#toc111">An Example of Usage</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
@@ -421,6 +477,10 @@ also in the <CODE>Paradigms</CODE> modules.
|
||||
<P>
|
||||
Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/api/Constructors.gf</CODE></A>
|
||||
</P>
|
||||
<A NAME="A"></A>
|
||||
<H2>A - one-place adjective</H2>
|
||||
<A NAME="A2"></A>
|
||||
<H2>A2 - two-place adjective</H2>
|
||||
<A NAME="AP"></A>
|
||||
<H2>AP - adjectival phrase</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -496,6 +556,10 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="AP"></A>
|
||||
<H2>AP - adjectival phrase</H2>
|
||||
<A NAME="AdA"></A>
|
||||
<H2>AdA - adjective-modifying adverb</H2>
|
||||
<A NAME="AdN"></A>
|
||||
<H2>AdN - numeral-modifying adverb</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -511,6 +575,10 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="AdN"></A>
|
||||
<H2>AdN - numeral-modifying adverb</H2>
|
||||
<A NAME="AdV"></A>
|
||||
<H2>AdV - adverb directly attached to verb</H2>
|
||||
<A NAME="Adv"></A>
|
||||
<H2>Adv - verb-phrase-modifying adverb</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -571,6 +639,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Adv"></A>
|
||||
<H2>Adv - verb-phrase-modifying adverb</H2>
|
||||
<A NAME="Ant"></A>
|
||||
<H2>Ant - anteriority</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -591,6 +661,10 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Ant"></A>
|
||||
<H2>Ant - anteriority</H2>
|
||||
<A NAME="CAdv"></A>
|
||||
<H2>CAdv - comparative adverb</H2>
|
||||
<A NAME="CN"></A>
|
||||
<H2>CN - common noun (without determiner)</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -691,6 +765,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="CN"></A>
|
||||
<H2>CN - common noun (without determiner)</H2>
|
||||
<A NAME="Cl"></A>
|
||||
<H2>Cl - declarative clause, with all tenses</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -826,6 +902,14 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Cl"></A>
|
||||
<H2>Cl - declarative clause, with all tenses</H2>
|
||||
<A NAME="Comp"></A>
|
||||
<H2>Comp - complement of copula, such as AP</H2>
|
||||
<A NAME="Conj"></A>
|
||||
<H2>Conj - conjunction,</H2>
|
||||
<A NAME="DConj"></A>
|
||||
<H2>DConj - distributed conjunction</H2>
|
||||
<A NAME="Det"></A>
|
||||
<H2>Det - determiner phrase</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -906,6 +990,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Det"></A>
|
||||
<H2>Det - determiner phrase</H2>
|
||||
<A NAME="IAdv"></A>
|
||||
<H2>IAdv - interrogative adverb</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -921,6 +1007,12 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="IAdv"></A>
|
||||
<H2>IAdv - interrogative adverb</H2>
|
||||
<A NAME="IComp"></A>
|
||||
<H2>IComp - interrogative complement of copula</H2>
|
||||
<A NAME="IDet"></A>
|
||||
<H2>IDet - interrogative determiner</H2>
|
||||
<A NAME="IP"></A>
|
||||
<H2>IP - interrogative pronoun</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -946,6 +1038,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="IP"></A>
|
||||
<H2>IP - interrogative pronoun</H2>
|
||||
<A NAME="Imp"></A>
|
||||
<H2>Imp - imperative</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -971,6 +1065,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Imp"></A>
|
||||
<H2>Imp - imperative</H2>
|
||||
<A NAME="ImpForm"></A>
|
||||
<H2>ImpForm</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1076,6 +1172,12 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="N"></A>
|
||||
<H2>N - common noun</H2>
|
||||
<A NAME="N2"></A>
|
||||
<H2>N2 - relational noun</H2>
|
||||
<A NAME="N3"></A>
|
||||
<H2>N3 - three-place relational noun</H2>
|
||||
<A NAME="NP"></A>
|
||||
<H2>NP - noun phrase (subject or object)</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1201,6 +1303,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="NP"></A>
|
||||
<H2>NP - noun phrase (subject or object)</H2>
|
||||
<A NAME="Num"></A>
|
||||
<H2>Num - cardinal number (used with QuantPl)</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1226,6 +1330,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Num"></A>
|
||||
<H2>Num - cardinal number (used with QuantPl)</H2>
|
||||
<A NAME="Numeral"></A>
|
||||
<H2>Numeral</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1326,6 +1432,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Ord"></A>
|
||||
<H2>Ord - ordinal number (used in Det)</H2>
|
||||
<A NAME="PConj"></A>
|
||||
<H2>PConj - phrase-beginning conjunction</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1341,6 +1449,10 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="PConj"></A>
|
||||
<H2>PConj - phrase-beginning conjunction</H2>
|
||||
<A NAME="PN"></A>
|
||||
<H2>PN - proper name</H2>
|
||||
<A NAME="Phr"></A>
|
||||
<H2>Phr - phrase in a text</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1381,6 +1493,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Phr"></A>
|
||||
<H2>Phr - phrase in a text</H2>
|
||||
<A NAME="Pol"></A>
|
||||
<H2>Pol - polarity</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1401,6 +1515,14 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Pol"></A>
|
||||
<H2>Pol - polarity</H2>
|
||||
<A NAME="Predet"></A>
|
||||
<H2>Predet - predeterminer (prefixed Quant)</H2>
|
||||
<A NAME="Prep"></A>
|
||||
<H2>Prep - preposition, or just case</H2>
|
||||
<A NAME="Pron"></A>
|
||||
<H2>Pron - personal pronoun</H2>
|
||||
<A NAME="Punct"></A>
|
||||
<H2>Punct</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1476,6 +1598,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="QCl"></A>
|
||||
<H2>QCl - question clause, with all tenses</H2>
|
||||
<A NAME="QS"></A>
|
||||
<H2>QS - question</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1501,6 +1625,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="QS"></A>
|
||||
<H2>QS - question</H2>
|
||||
<A NAME="Quant"></A>
|
||||
<H2>Quant - quantifier with both sg and pl</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1521,6 +1647,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Quant"></A>
|
||||
<H2>Quant - quantifier with both sg and pl</H2>
|
||||
<A NAME="QuantPl"></A>
|
||||
<H2>QuantPl</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1626,6 +1754,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="RCl"></A>
|
||||
<H2>RCl - relative clause, with all tenses</H2>
|
||||
<A NAME="RP"></A>
|
||||
<H2>RP - relative pronoun</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1646,6 +1776,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="RP"></A>
|
||||
<H2>RP - relative pronoun</H2>
|
||||
<A NAME="RS"></A>
|
||||
<H2>RS - relative</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1666,6 +1798,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="RS"></A>
|
||||
<H2>RS - relative</H2>
|
||||
<A NAME="S"></A>
|
||||
<H2>S - declarative sentence</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1711,6 +1845,10 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="S"></A>
|
||||
<H2>S - declarative sentence</H2>
|
||||
<A NAME="SC"></A>
|
||||
<H2>SC - embedded sentence or question</H2>
|
||||
<A NAME="Slash"></A>
|
||||
<H2>Slash - clause missing NP (S/NP in GPSG)</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1741,6 +1879,10 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Slash"></A>
|
||||
<H2>Slash - clause missing NP (S/NP in GPSG)</H2>
|
||||
<A NAME="Subj"></A>
|
||||
<H2>Subj - subjunction,</H2>
|
||||
<A NAME="Tense"></A>
|
||||
<H2>Tense - tense</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1771,6 +1913,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Tense"></A>
|
||||
<H2>Tense - tense</H2>
|
||||
<A NAME="Text"></A>
|
||||
<H2>Text - text consisting of several phrases</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1821,6 +1965,8 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Text"></A>
|
||||
<H2>Text - text consisting of several phrases</H2>
|
||||
<A NAME="Utt"></A>
|
||||
<H2>Utt - sentence, question, word...</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -1886,6 +2032,18 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="Utt"></A>
|
||||
<H2>Utt - sentence, question, word...</H2>
|
||||
<A NAME="V"></A>
|
||||
<H2>V - one-place verb</H2>
|
||||
<A NAME="V2"></A>
|
||||
<H2>V2 - two-place verb</H2>
|
||||
<A NAME="V2A"></A>
|
||||
<H2>V2A - verb with NP and AP complement</H2>
|
||||
<A NAME="V3"></A>
|
||||
<H2>V3 - three-place verb</H2>
|
||||
<A NAME="VA"></A>
|
||||
<H2>VA - adjective-complement verb</H2>
|
||||
<A NAME="VP"></A>
|
||||
<H2>VP - verb phrase</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -2006,6 +2164,14 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="VP"></A>
|
||||
<H2>VP - verb phrase</H2>
|
||||
<A NAME="VQ"></A>
|
||||
<H2>VQ - question-complement verb</H2>
|
||||
<A NAME="VS"></A>
|
||||
<H2>VS - sentence-complement verb</H2>
|
||||
<A NAME="VV"></A>
|
||||
<H2>VV - verb-phrase-complement verb</H2>
|
||||
<A NAME="Voc"></A>
|
||||
<H2>Voc - vocative or "please"</H2>
|
||||
<TABLE CELLPADDING="4" BORDER="1">
|
||||
@@ -2021,7 +2187,9 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc43"></A>
|
||||
<A NAME="Voc"></A>
|
||||
<H2>Voc - vocative or "please"</H2>
|
||||
<A NAME="toc99"></A>
|
||||
<H1>Structural Words</H1>
|
||||
<P>
|
||||
Source: <A HREF="../abstract/Structural.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/abstract/Structural.gf</CODE></A>
|
||||
@@ -2417,7 +2585,7 @@ Source: <A HREF="../abstract/Structural.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc44"></A>
|
||||
<A NAME="toc100"></A>
|
||||
<H1>Paradigms for Danish</H1>
|
||||
<P>
|
||||
source <A HREF="../danish/ParadigmsDan.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/danish/ParadigmsDan.gf</CODE></A>
|
||||
@@ -2661,7 +2829,7 @@ source <A HREF="../danish/ParadigmsDan.gf"><CODE>http://www.cs.chalmers.se/~aarn
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc45"></A>
|
||||
<A NAME="toc101"></A>
|
||||
<H1>Paradigms for English</H1>
|
||||
<P>
|
||||
source <A HREF="../english/ParadigmsEng.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/english/ParadigmsEng.gf</CODE></A>
|
||||
@@ -2889,7 +3057,7 @@ source <A HREF="../english/ParadigmsEng.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc46"></A>
|
||||
<A NAME="toc102"></A>
|
||||
<H1>Paradigms for Finnish</H1>
|
||||
<P>
|
||||
source <A HREF="../finnish/ParadigmsFin.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/finnish/ParadigmsFin.gf</CODE></A>
|
||||
@@ -3225,7 +3393,7 @@ source <A HREF="../finnish/ParadigmsFin.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc47"></A>
|
||||
<A NAME="toc103"></A>
|
||||
<H1>Paradigms for French</H1>
|
||||
<P>
|
||||
source <A HREF="../french/ParadigmsFre.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/french/ParadigmsFre.gf</CODE></A>
|
||||
@@ -3453,7 +3621,7 @@ source <A HREF="../french/ParadigmsFre.gf"><CODE>http://www.cs.chalmers.se/~aarn
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc48"></A>
|
||||
<A NAME="toc104"></A>
|
||||
<H1>Paradigms for German</H1>
|
||||
<P>
|
||||
source <A HREF="../german/ParadigmsGer.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/german/ParadigmsGer.gf</CODE></A>
|
||||
@@ -3705,7 +3873,7 @@ source <A HREF="../german/ParadigmsGer.gf"><CODE>http://www.cs.chalmers.se/~aarn
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc49"></A>
|
||||
<A NAME="toc105"></A>
|
||||
<H1>Paradigms for Italian</H1>
|
||||
<P>
|
||||
source <A HREF="../italian/ParadigmsIta.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/italian/ParadigmsIta.gf</CODE></A>
|
||||
@@ -3937,7 +4105,7 @@ source <A HREF="../italian/ParadigmsIta.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc50"></A>
|
||||
<A NAME="toc106"></A>
|
||||
<H1>Paradigms for Norwegian</H1>
|
||||
<P>
|
||||
source <A HREF="../norwegian/ParadigmsNor.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/norwegian/ParadigmsNor.gf</CODE></A>
|
||||
@@ -4181,7 +4349,7 @@ source <A HREF="../norwegian/ParadigmsNor.gf"><CODE>http://www.cs.chalmers.se/~a
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc51"></A>
|
||||
<A NAME="toc107"></A>
|
||||
<H1>Paradigms for Russian</H1>
|
||||
<P>
|
||||
source <A HREF="../russian/ParadigmsRus.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/russian/ParadigmsRus.gf</CODE></A>
|
||||
@@ -4421,7 +4589,7 @@ source <A HREF="../russian/ParadigmsRus.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc52"></A>
|
||||
<A NAME="toc108"></A>
|
||||
<H1>Paradigms for Spanish</H1>
|
||||
<P>
|
||||
source <A HREF="../spanish/ParadigmsSpa.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/spanish/ParadigmsSpa.gf</CODE></A>
|
||||
@@ -4653,7 +4821,7 @@ source <A HREF="../spanish/ParadigmsSpa.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc53"></A>
|
||||
<A NAME="toc109"></A>
|
||||
<H1>Paradigms for Swedish</H1>
|
||||
<P>
|
||||
source <A HREF="../swedish/ParadigmsSwe.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF/lib/resource/swedish/ParadigmsSwe.gf</CODE></A>
|
||||
@@ -4893,7 +5061,7 @@ source <A HREF="../swedish/ParadigmsSwe.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<A NAME="toc54"></A>
|
||||
<A NAME="toc110"></A>
|
||||
<H1>Browsing the libraries with GF commands</H1>
|
||||
<P>
|
||||
All of the following assume
|
||||
@@ -4930,7 +5098,7 @@ To view linearizations in all languages by parsing from English:
|
||||
> p -cat=S -lang=LangEng "this grammar is too big" | tb
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc55"></A>
|
||||
<A NAME="toc111"></A>
|
||||
<H1>An Example of Usage</H1>
|
||||
<P>
|
||||
The standard way of building an application has the following modules.
|
||||
|
||||
Reference in New Issue
Block a user