diff --git a/lib/doc/AbsFunDoc.hs b/lib/doc/AbsFunDoc.hs index ddf2b193a..55656836c 100644 --- a/lib/doc/AbsFunDoc.hs +++ b/lib/doc/AbsFunDoc.hs @@ -16,11 +16,13 @@ main = do deps <- readFile "../src/uddeps.labels" >>= return . lines let depmap = M.fromList [(fun,deps) | fun:deps <- map words deps] let rows = sort $ filter (flip S.notMember hiddenModules . last) $ map (mkRow depmap) (map words funs) - let entries = map sepFields rows - putStrLn $ "GF RGL Functions" - putStrLn $ "generated by lib/src/doc/AbsFunFoc.hs" - putStrLn $ "" - putStrLn $ sepFields ["Function","Type","Example","Dependencies","Module"] + let entries = map (sepFields . addLink) rows + putStrLnIf $ "GF RGL Functions" + putStrLnIf $ "generated by lib/src/doc/AbsFunFoc.hs" + putStrLnIf $ "%%date" + putStrLnIf $ "" + putStrLnIf $ "Functions in this table have links, e.g. http://www.grammaticalframework.org/lib/doc/absfuns.html#PredVP" + putStrLn $ sepFields ["**Function**","**Type**","**Example**","**Dependencies**","**Module**"] putStrLn $ unlines entries @@ -29,14 +31,27 @@ hiddenModules = S.fromList "Documentation","Lexicon","NumeralTransfer","Terminology","Transfer","MarkHTML","Markup","ERROR"] ---- mkRow depmap ws = case ws of - file:fun:":":typecomment -> fun : getTypeComment typecomment ++ [getDep fun, getModule file] + file:fun:":":typecomment -> named fun : getTypeComment typecomment ++ [getDep fun, getModule file] _ -> ["ERROR"] where getModule = reverse . takeWhile (/='/') . tail . dropWhile (/='.') . reverse -- ../src/abstract/Adverb.gf: --> Adverb getTypeComment ws = case span (/= ";") ws of - (ty,rest) -> [unwords ty, unwords (drop 2 rest)] -- PredVP : NP -> VP -> Cl ; -- John walks + (ty,rest) -> [unwords ty, italics (unwords (drop 2 rest))] -- PredVP : NP -> VP -> Cl ; -- John walks getDep fun = maybe "-" (unwords . takeWhile (/="--")) $ M.lookup fun depmap --- sepFields = concat . intersperse "\t" +-- for html (via txt2tags) generation sepFields fs = "| " ++ concat (intersperse " | " fs) ++ " |" +named f = f ++ "''''" +italics e = "//" ++ map (\c -> case c of '[' -> '(' ; ']'->')'; _ -> c) e ++ "//" +putStrLnIf = putStrLn +addLink fs = + let m = last fs ; abstract = case m of "Extensions" -> "translator/" ; _ -> "abstract/" + in init fs ++ ["[" ++ m ++ " ../src/" ++ abstract ++ m ++ ".gf]"] + +-- for tab separated generation +-- sepFields = concat . intersperse "\t" +-- named f = f +-- italics e = e +-- putStrLnIf = return () +-- addLink fs = fs diff --git a/lib/doc/absfuns.html b/lib/doc/absfuns.html index 9cf5dbbce..0348215ab 100644 --- a/lib/doc/absfuns.html +++ b/lib/doc/absfuns.html @@ -7,1780 +7,1819 @@
+Functions in this table have links, e.g. http://www.grammaticalframework.org/lib/doc/absfuns.html#PredVP +
| Function | -Type | -Example | -Dependencies | -Module | +Function | +Type | +Example | +Dependencies | +Module |
| AAnter | +AAnter | Ant | -I have slept --# notpresent | +I have slept/had slept (anterior, "compound", "perfect") --# notpresent | - | -Tense | +Tense | ||
| ASimul | +ASimul | Ant | -+ | I sleep/slept (simultaneous, not compound) | - | -Tense | +Tense | ||
| AdAP | +AdAP | AdA -> AP -> AP | -very warm | +very warm | advmod head | -Adjective | +Adjective | ||
| AdAdV | +AdAdV | AdA -> AdV -> AdV | -almost always | +almost always | amod head | -Extensions | +Extensions | ||
| AdAdv | +AdAdv | AdA -> Adv -> Adv | -very quickly | +very quickly | amod head | -Adverb | +Adverb | ||
| AdNum | +AdNum | AdN -> Card -> Card | -almost 51 | +almost 51 | advmod head | -Noun | +Noun | ||
| AdVVP | +AdVVP | AdV -> VP -> VP | -always sleep | +always sleep | advmod head | -Verb | +Verb | ||
| AdVVPSlash | +AdVVPSlash | AdV -> VPSlash -> VPSlash | -always use (it) | +always use (it) | advmod head | -Verb | +Verb | ||
| AddAdvQVP | +AddAdvQVP | QVP -> IAdv -> QVP | -buys what where | +buys what where | head advmod | -Question | +Question | ||
| AdjCN | +AdjCN | AP -> CN -> CN | -big house | +big house | amod head | -Noun | +Noun | ||
| AdjDAP | +AdjDAP | DAP -> AP -> DAP | -the large (one) | +the large (one) | head amod | -Noun | +Noun | ||
| AdjOrd | +AdjOrd | Ord -> AP | -warmest | +warmest | - | -Adjective | +Adjective | ||
| AdnCAdv | +AdnCAdv | CAdv -> AdN | -less (than five) | +less (than five) | - | -Adverb | +Adverb | ||
| AdvAP | +AdvAP | AP -> Adv -> AP | -warm by nature | +warm by nature | head advmod | -Adjective | +Adjective | ||
| AdvCN | +AdvCN | CN -> Adv -> CN | -house on the hill | +house on the hill | head nmod | -Noun | +Noun | ||
| AdvIAdv | +AdvIAdv | IAdv -> Adv -> IAdv | -where in Paris | +where in Paris | advmod head | -Question | +Question | ||
| AdvIP | +AdvIP | IP -> Adv -> IP | -who in Paris | +who in Paris | - | -Question | +Question | ||
| AdvNP | +AdvNP | NP -> Adv -> NP | -Paris today | +Paris today | head nmod | -Noun | +Noun | ||
| AdvQVP | +AdvQVP | VP -> IAdv -> QVP | -lives where | +lives where | head dobj | -Question | +Question | ||
| AdvS | +AdvS | Adv -> S -> S | -then I will go home | +then I will go home | advmod head | -Sentence | +Sentence | ||
| AdvSlash | +AdvSlash | ClSlash -> Adv -> ClSlash | -(whom) he sees today | +(whom) he sees today | head advmod | -Sentence | +Sentence | ||
| AdvVP | +AdvVP | VP -> Adv -> VP | -sleep here | +sleep here | head advmod | -Verb | +Verb | ||
| AdvVPSlash | +AdvVPSlash | VPSlash -> Adv -> VPSlash | -use (it) here | +use (it) here | head advmod | -Verb | +Verb | ||
| ApposCN | +ApposCN | CN -> NP -> CN | -city Paris (, numbers x and y) | +city Paris (, numbers x and y) | head appos | -Noun | +Noun | ||
| ApposNP | +ApposNP | NP -> NP -> NP | -Mr Hollande, the president of France, | +Mr Hollande, the president of France, | head appos | -Extensions | +Extensions | ||
| ByVP | +ByVP | VP -> Adv | -by publishing the document | +by publishing the document | - | -Extensions | +Extensions | ||
| CAdvAP | +CAdvAP | CAdv -> AP -> NP -> AP | -as cool as John | +as cool as John | case amod head | -Adjective | +Adjective | ||
| CNIntNP | +CNIntNP | CN -> Int -> NP | -level 53 (covered by CNNumNP) | +level 53 (covered by CNNumNP) | - | -Symbol | +Symbol | ||
| CNNumNP | +CNNumNP | CN -> Card -> NP | -level five ; level 5 | +level five ; level 5 | head nummod | -Symbol | +Symbol | ||
| CNSymbNP | +CNSymbNP | Det -> CN -> [Symb] -> NP | -(the) (2) numbers x and y | +(the) (2) numbers x and y | - | -Symbol | +Symbol | ||
| CleftAdv | +CleftAdv | Adv -> S -> Cl | -it is here she slept | +it is here she slept | head advcl | -Idiom | +Idiom | ||
| CleftNP | +CleftNP | NP -> RS -> Cl | -it is I who did it | +it is I who did it | head acl | -Idiom | +Idiom | ||
| CompAP | +CompAP | AP -> Comp | -(be) small | +(be) small | - | -Verb | +Verb | ||
| CompAdv | +CompAdv | Adv -> Comp | -(be) here | +(be) here | - | -Verb | +Verb | ||
| CompCN | +CompCN | CN -> Comp | -(be) a man/men | +(be) a man/men | - | -Verb | +Verb | ||
| CompIAdv | +CompIAdv | IAdv -> IComp | -where (is it) | +where (is it) | - | -Question | +Question | ||
| CompIP | +CompIP | IP -> IComp | -who (is it) | +who (is it) | - | -Question | +Question | ||
| CompNP | +CompNP | NP -> Comp | -(be) the man | +(be) the man | - | -Verb | +Verb | ||
| CompQS | +CompQS | QS -> Comp | -(the question is) who sleeps | +(the question is) who sleeps | - | -Extensions | +Extensions | ||
| CompS | +CompS | S -> Comp | -(the fact is) that she sleeps | +(the fact is) that she sleeps | - | -Extensions | +Extensions | ||
| CompVP | +CompVP | Ant -> Pol -> VP -> Comp | -(she is) to go | +(she is) to go | - | -Extensions | +Extensions | ||
| ComparA | +ComparA | A -> NP -> AP | -warmer than I | +warmer than I | amod head | -Adjective | +Adjective | ||
| ComparAdvAdj | +ComparAdvAdj | CAdv -> A -> NP -> Adv | -more warmly than John | +more warmly than John | advmod amod head | -Adverb | +Adverb | ||
| ComparAdvAdjS | +ComparAdvAdjS | CAdv -> A -> S -> Adv | -more warmly than he runs | +more warmly than he runs | advmod amod head | -Adverb | +Adverb | ||
| ComplA2 | +ComplA2 | A2 -> NP -> AP | -married to her | +married to her | amod head | -Adjective | +Adjective | ||
| ComplN2 | +ComplN2 | N2 -> NP -> CN | -mother of the king | +mother of the king | head nmod | -Noun | +Noun | ||
| ComplN3 | +ComplN3 | N3 -> NP -> N2 | -distance from this city (to Paris) | +distance from this city (to Paris) | nmod head | -Noun | +Noun | ||
| ComplSlash | +ComplSlash | VPSlash -> NP -> VP | -love it | +love it | head dobj | -Verb | +Verb | ||
| ComplSlashIP | +ComplSlashIP | VPSlash -> IP -> QVP | -buys what | +buys what | head dobj | -Question | +Question | ||
| ComplVA | +ComplVA | VA -> AP -> VP | -they become red | +they become red | head xcomp | -Verb | +Verb | ||
| ComplVPIVV | +ComplVPIVV | VV -> VPI -> VP | -+ | want to walk and drink beer | - | -Extensions | +Extensions | ||
| ComplVQ | +ComplVQ | VQ -> QS -> VP | -wonder who runs | +wonder who runs | head ccomp | -Verb | +Verb | ||
| ComplVS | +ComplVS | VS -> S -> VP | -say that she runs | +say that she runs | head ccomp | -Verb | +Verb | ||
| ComplVV | +ComplVV | VV -> Ant -> Pol -> VP -> VP | -want not to have slept | +want not to have slept | head xcomp | -Extensions | +Extensions | ||
| ComplVV | +ComplVV | VV -> VP -> VP | -want to run | +want to run | head xcomp | -Verb | +Verb | ||
| CompoundAP | +CompoundAP | N -> A -> AP | -language independent / language-independent | +language independent / language-independent | head amod | -Extensions | +Extensions | ||
| CompoundN | +CompoundN | N -> N -> N | -control system / controls system / control-system | +control system / controls system / control-system | compound head | -Extensions | +Extensions | ||
| ConjAP | +ConjAP | Conj -> [AP] -> AP | -"cold and warm" | +cold and warm | cc head | -Conjunction | +Conjunction | ||
| ConjAdV | +ConjAdV | Conj -> [AdV] -> AdV | -+ | always or sometimes | cc head | -Conjunction | +Conjunction | ||
| ConjAdv | +ConjAdv | Conj -> [Adv] -> Adv | -"here or there" | +here or there | cc head | -Conjunction | +Conjunction | ||
| ConjCN | +ConjCN | Conj -> [CN] -> CN | -"man and woman" | +man and woman | cc head | -Conjunction | +Conjunction | ||
| ConjDet | +ConjDet | Conj -> [DAP] -> Det | -"his or her" | +his or her | cc head | -Conjunction | +Conjunction | ||
| ConjIAdv | +ConjIAdv | Conj -> [IAdv] -> IAdv | -"where and with whom" | +where and with whom | cc head | -Conjunction | +Conjunction | ||
| ConjNP | +ConjNP | Conj -> [NP] -> NP | -"she or we" | +she or we | cc head | -Conjunction | +Conjunction | ||
| ConjRS | +ConjRS | Conj -> [RS] -> RS | -"who walks and whose mother runs" | +who walks and whose mother runs | cc head | -Conjunction | +Conjunction | ||
| ConjS | +ConjS | Conj -> [S] -> S | -"he walks and she runs" | +he walks and she runs | cc head | -Conjunction | +Conjunction | ||
| ConjVPI | +ConjVPI | Conj -> [VPI] -> VPI | -+ | to walk and drink beer | - | -Extensions | +Extensions | ||
| ConjVPS | +ConjVPS | Conj -> [VPS] -> VPS | -+ | had walked and drank beer | - | -Extensions | +Extensions | ||
| CountNP | +CountNP | Det -> NP -> NP | -three of them, some of the boys | +three of them, some of the boys | det head | -Noun | +Noun | ||
| DefArt | +DefArt | Quant | -+ | the | - | -Noun | +Noun | ||
| DetCN | +DetCN | Det -> CN -> NP | -the man | +the man | det head | -Noun | +Noun | ||
| DetDAP | +DetDAP | Det -> DAP | -this (or that) | +this (or that) | - | -Noun | +Noun | ||
| DetNP | +DetNP | Det -> NP | -these five | +these five | - | -Noun | +Noun | ||
| DetQuant | +DetQuant | Quant -> Num -> Det | -these five | +these five | head nummod | -Noun | +Noun | ||
| DetQuantOrd | +DetQuantOrd | Quant -> Num -> Ord -> Det | -these five best | +these five best | head nummod amod | -Noun | +Noun | ||
| DirectComplVQ | +DirectComplVQ | Temp -> NP -> VQ -> QS -> S | -who is there, she asked / she asked: who is there -- no negation possible | +who is there, she asked / she asked: who is there -- no negation possible | empty nsubj head ccomp | -Extensions | +Extensions | ||
| DirectComplVS | +DirectComplVS | Temp -> NP -> VS -> Utt -> S | -I am here, she said / she said: I am here -- no negation possible | +I am here, she said / she said: I am here -- no negation possible | empty nsubj head ccomp | -Extensions | +Extensions | ||
| EmbedQS | +EmbedQS | QS -> SC | -who goes | +who goes | - | -Sentence | +Sentence | ||
| EmbedS | +EmbedS | S -> SC | -that she goes | +that she goes | - | -Sentence | +Sentence | ||
| EmbedVP | +EmbedVP | VP -> SC | -to go | +to go | - | -Sentence | +Sentence | ||
| EmptyRelSlash | +EmptyRelSlash | ClSlash -> RCl | -(the city) he lives in | +(the city) he lives in | - | -Extensions | +Extensions | ||
| ExistIP | +ExistIP | IP -> QCl | -which houses are there | +which houses are there | - | -Idiom | +Idiom | ||
| ExistIPAdv | +ExistIPAdv | IP -> Adv -> QCl | -which houses are there in Paris | +which houses are there in Paris | head advmod | -Idiom | +Idiom | ||
| ExistNP | +ExistNP | NP -> Cl | -there is a house | +there is a house | - | -Idiom | +Idiom | ||
| ExistNPAdv | +ExistNPAdv | NP -> Adv -> Cl | -there is a house in Paris | +there is a house in Paris | head nmod | -Idiom | +Idiom | ||
| ExtAdvS | +ExtAdvS | Adv -> S -> S | -next week, I will go home | +next week, I will go home | advmod head | -Sentence | +Sentence | ||
| ExtAdvVP | +ExtAdvVP | VP -> Adv -> VP | -sleep , even though ... | +sleep , even though ... | head advmod | -Verb | +Verb | ||
| FloatPN | +FloatPN | Float -> PN | -3.14159 | +3.14159 | - | -Symbol | +Symbol | ||
| FocusObjS | +FocusObjS | NP -> SSlash -> S | -this woman I love -- in declarative S, not in QS | +this woman I love -- in declarative S, not in QS | nsubj head | -Extensions | +Extensions | ||
| FunRP | +FunRP | Prep -> NP -> RP -> RP | -the mother of whom | +the mother of whom | - | -Relative | +Relative | ||
| GenIP | +GenIP | IP -> IQuant | -whose | +whose | - | -Extensions | +Extensions | ||
| GenNP | +GenNP | NP -> Quant | -this man's | +this man's | - | -Extensions | +Extensions | ||
| GenRP | +GenRP | Num -> CN -> RP | -whose car(s) | +whose car(s) | - | -Extensions | +Extensions | ||
| GenericCl | +GenericCl | VP -> Cl | -one sleeps | +one sleeps | - | -Idiom | +Idiom | ||
| GerundAdv | +GerundAdv | VP -> Adv | -publishing the document (prepositionless adverb) | +publishing the document (prepositionless adverb) | - | -Extensions | +Extensions | ||
| GerundCN | +GerundCN | VP -> CN | -publishing of the document (can get a determiner) | +publishing of the document (can get a determiner) | - | -Extensions | +Extensions | ||
| GerundNP | +GerundNP | VP -> NP | -publishing the document (by nature definite) | +publishing the document (by nature definite) | - | -Extensions | +Extensions | ||
| IDig | +IDig | Dig -> Digits | -8 | +8 | - | -Numeral | +Numeral | ||
| IIDig | +IIDig | Dig -> Digits -> Digits | -876 | +876 | head goeswith | -Numeral | +Numeral | ||
| IdRP | +IdRP | RP | -which | +which | - | -Relative | +Relative | ||
| IdetCN | +IdetCN | IDet -> CN -> IP | -which five songs | +which five songs | - | -Question | +Question | ||
| IdetIP | +IdetIP | IDet -> IP | -which five | +which five | - | -Question | +Question | ||
| IdetQuant | +IdetQuant | IQuant -> Num -> IDet | -which (five) | +which (five) | - | -Question | +Question | ||
| ImpP3 | +ImpP3 | NP -> VP -> Utt | -let John walk | +let John walk | - | -Idiom | +Idiom | ||
| ImpPl1 | +ImpPl1 | VP -> Utt | -let's go | +let's go | - | -Idiom | +Idiom | ||
| ImpVP | +ImpVP | VP -> Imp | -love yourselves | +love yourselves | - | -Sentence | +Sentence | ||
| ImpersCl | +ImpersCl | VP -> Cl | -it is hot | +it is hot | - | -Idiom | +Idiom | ||
| InOrderToVP | +InOrderToVP | VP -> Adv | -(in order) to publish the document | +(in order) to publish the document | - | -Extensions | +Extensions | ||
| IndefArt | +IndefArt | Quant | -+ | a/an | - | -Noun | +Noun | ||
| IntPN | +IntPN | Int -> PN | -27 | +27 | - | -Symbol | +Symbol | ||
| MassNP | +MassNP | CN -> NP | -(beer) | +(beer) | - | -Noun | +Noun | ||
| MkSymb | +MkSymb | String -> Symb | -+ | foo (making a symbol from a string) | - | -Symbol | +Symbol | ||
| MkVPI | +MkVPI | VP -> VPI | -+ | to walk | - | -Extensions | +Extensions | ||
| MkVPS | +MkVPS | Temp -> Pol -> VP -> VPS | -+ | had walked | empty empty head | -Extensions | +Extensions | ||
| ModSubjS | +ModSubjS | S -> Subj -> S -> S | -she sleeps, because she is old | +she sleeps, because she is old | - | -Sentence | +Sentence | ||
| NoPConj | +NoPConj | PConj | -+ | (plain phrase without conjunction in front) | - | -Phrase | +Phrase | ||
| NoVoc | +NoVoc | Voc | -+ | (plain phrase without vocative) | - | -Phrase | +Phrase | ||
| NumCard | +NumCard | Card -> Num | -+ | one/five (explicit numeral) | - | -Noun | +Noun | ||
| NumDigits | +NumDigits | Digits -> Card | -51 | +51 | - | -Noun | +Noun | ||
| NumNumeral | +NumNumeral | Numeral -> Card | -fifty-one | +fifty-one | - | -Noun | +Noun | ||
| NumPN | +NumPN | Card -> PN | -+ | twelve (as proper name) | - | -Symbol | +Symbol | ||
| NumPl | +NumPl | Num | -+ | (no numeral, but marked as plural) | - | -Noun | +Noun | ||
| NumSg | +NumSg | Num | -+ | (no numeral, but marked as singular) | - | -Noun | +Noun | ||
| OrdDigits | +OrdDigits | Digits -> Ord | -51st | +51st | - | -Noun | +Noun | ||
| OrdNumeral | +OrdNumeral | Numeral -> Ord | -fifty-first | +fifty-first | - | -Noun | +Noun | ||
| OrdNumeralSuperl | +OrdNumeralSuperl | Numeral -> A -> Ord | -third largest | +third largest | nummod head | -Noun | +Noun | ||
| OrdSuperl | +OrdSuperl | A -> Ord | -warmest | +warmest | - | -Noun | +Noun | ||
| PConjConj | +PConjConj | Conj -> PConj | -and | +and | - | -Phrase | +Phrase | ||
| PPartNP | +PNeg | +Pol | +I don't sleep (negative polarity) | +- | +Tense | +||||
| PPartNP | NP -> V2 -> NP | -the man seen | +the man seen | - | -Noun | +Noun | |||
| PartNP | +PPos | +Pol | +I sleep (positive polarity) | +- | +Tense | +||||
| PartNP | CN -> NP -> CN | -glass of wine | +glass of wine | nmod head | -Noun | +Noun | |||
| PassAgentVPSlash | +PassAgentVPSlash | VPSlash -> NP -> VP | -be begged by her to go | +be begged by her to go | head nmod | -Extensions | +Extensions | ||
| PassV2 | +PassV2 | V2 -> VP | -be loved | +be loved | - | -Verb | +Verb | ||
| PassVPSlash | +PassVPSlash | VPSlash -> VP | -be forced to sleep | +be forced to sleep | - | -Extensions | +Extensions | ||
| PastPartAP | +PastPartAP | VPSlash -> AP | -lost (opportunity) ; (opportunity) lost in space | +lost (opportunity) ; (opportunity) lost in space | - | -Extensions | +Extensions | ||
| PastPartAgentAP | +PastPartAgentAP | VPSlash -> NP -> AP | -(opportunity) lost by the company | +(opportunity) lost by the company | head dobj | -Extensions | +Extensions | ||
| PastPartRS | +PastPartRS | Ant -> Pol -> VPSlash -> RS | -(man) not seen by her --- maybe no Anter | +(man) not seen by her --- maybe no Anter | - | -Extensions | +Extensions | ||
| PhrUtt | +PhrUtt | PConj -> Utt -> Voc -> Phr | -but come here, my friend | +but come here, my friend | cc head discourse | -Phrase | +Phrase | ||
| PositA | +PositA | A -> AP | -warm | +warm | - | -Adjective | +Adjective | ||
| PositAdAAdj | +PositAdAAdj | A -> AdA | -extremely | +extremely | - | -Adverb | +Adverb | ||
| PositAdVAdj | +PositAdVAdj | A -> AdV | -(that she) positively (sleeps) | +(that she) positively (sleeps) | - | -Extensions | +Extensions | ||
| PositAdvAdj | +PositAdvAdj | A -> Adv | -warmly | +warmly | - | -Adverb | +Adverb | ||
| PossNP | +PossNP | CN -> NP -> CN | -house of Paris, house of mine | +house of Paris, house of mine | nmod head | -Noun | +Noun | ||
| PossPron | +PossPron | Pron -> Quant | -my (house) | +my (house) | - | -Noun | +Noun | ||
| PredFrontVQ | +PredFrontVQ | Temp -> NP -> VQ -> QS -> S | -are you here, she asked -- no negation; direct order | +are you here, she asked -- no negation; direct order | - | -Extensions | +Extensions | ||
| PredFrontVS | +PredFrontVS | Temp -> NP -> VS -> S -> S | -I am here, she said -- no negation | +I am here, she said -- no negation | - | -Extensions | +Extensions | ||
| PredSCVP | +PredSCVP | SC -> VP -> Cl | -that she goes is good | +that she goes is good | csubj head | -Sentence | +Sentence | ||
| PredVP | +PredVP | NP -> VP -> Cl | -John walks | +John walks | PassVPSlash nsubjpass head | -Sentence | +Sentence | ||
| PredVPS | +PredVPS | NP -> VPS -> S | -+ | I had walked and drank beer | nsubj head | -Extensions | +Extensions | ||
| PredetNP | -Predet -> NP -> NP; -- only the man | -+ | PredetNP | +Predet -> NP -> NP | +only the man | det head | -Noun | +Noun | |
| PrepIP | +PrepIP | Prep -> IP -> IAdv | -with whom | +with whom | case head | -Question | +Question | ||
| PrepNP | +PrepNP | Prep -> NP -> Adv | -in the house | +in the house | case head | -Adverb | +Adverb | ||
| PresPartAP | +PresPartAP | VP -> AP | -sleeping (man), (man) sleeping in the car | +sleeping (man), (man) sleeping in the car | - | -Extensions | +Extensions | ||
| PresPartRS | +PresPartRS | Ant -> Pol -> VP -> RS | -(man) not having seen her | +(man) not having seen her | - | -Extensions | +Extensions | ||
| ProgrVP | +ProgrVP | VP -> VP | -be sleeping | +be sleeping | - | -Idiom | +Idiom | ||
| QuestCl | +QuestCl | Cl -> QCl | -does John walk | +does John walk | - | -Question | +Question | ||
| QuestIAdv | +QuestIAdv | IAdv -> Cl -> QCl | -why does John walk | +why does John walk | advmod head | -Question | +Question | ||
| QuestIComp | +QuestIComp | IComp -> NP -> QCl | -where is John | +where is John | head nsubj | -Question | +Question | ||
| QuestQVP | +QuestQVP | IP -> QVP -> QCl | -who buys what where | +who buys what where | nsubj head | -Question | +Question | ||
| QuestSlash | +QuestSlash | IP -> ClSlash -> QCl | -whom does John love | +whom does John love | dobj head | -Question | +Question | ||
| QuestVP | +QuestVP | IP -> VP -> QCl | -who walks | +who walks | nsubj head | -Question | +Question | ||
| ReflA2 | +ReflA2 | A2 -> AP | -married to itself | +married to itself | - | -Adjective | +Adjective | ||
| ReflVP | +ReflVP | VPSlash -> VP | -love himself | +love himself | - | -Verb | +Verb | ||
| RelCN | +RelCN | CN -> RS -> CN | -house that John bought | +house that John bought | head acl | -Noun | +Noun | ||
| RelCl | +RelCl | Cl -> RCl | -such that John loves her | +such that John loves her | - | -Relative | +Relative | ||
| RelNP | +RelNP | NP -> RS -> NP | -Paris, which is here | +Paris, which is here | head acl | -Noun | +Noun | ||
| RelS | +RelS | S -> RS -> S | -she sleeps, which is good | +she sleeps, which is good | head advcl | -Sentence | +Sentence | ||
| RelSlash | +RelSlash | RP -> ClSlash -> RCl | -whom John loves | +whom John loves | mark head | -Relative | +Relative | ||
| RelVP | +RelVP | RP -> VP -> RCl | -who loves John | +who loves John | mark head | -Relative | +Relative | ||
| SSubjS | +SSubjS | S -> Subj -> S -> S | -I go home if she comes | +I go home if she comes | head mark advcl | -Sentence | +Sentence | ||
| SelfAdVVP | +SelfAdVVP | VP -> VP | -is himself at home | +is himself at home | - | -Idiom | +Idiom | ||
| SelfAdvVP | +SelfAdvVP | VP -> VP | -is at home himself | +is at home himself | - | -Idiom | +Idiom | ||
| SelfNP | +SelfNP | NP -> NP | -the president himself (is at home) | +the president himself (is at home) | - | -Idiom | +Idiom | ||
| SentAP | +SentAP | AP -> SC -> AP | -good that she is here | +good that she is here | amod acl | -Adjective | +Adjective | ||
| SentCN | +SentCN | CN -> SC -> CN | -question where she sleeps | +question where she sleeps | head acl | -Noun | +Noun | ||
| Slash2V3 | +Slash2V3 | V3 -> NP -> VPSlash | -give it (to her) | +give it (to her) | head iobj | -Verb | +Verb | ||
| Slash3V3 | +Slash3V3 | V3 -> NP -> VPSlash | -give (it) to her | +give (it) to her | head dobj | -Verb | +Verb | ||
| SlashPrep | +SlashPrep | Cl -> Prep -> ClSlash | -(with whom) he walks | +(with whom) he walks | head case | -Sentence | +Sentence | ||
| SlashSlashV2V | +SlashSlashV2V | V2V -> Ant -> Pol -> VPSlash -> VPSlash | -induce them to sell (it) -- analogous to Verb.SlashVV | +induce them to sell (it) -- analogous to Verb.SlashVV | - | -Extensions | +Extensions | ||
| SlashV2A | +SlashV2A | V2A -> AP -> VPSlash | -paint (it) red | +paint (it) red | head xcomp | -Verb | +Verb | ||
| SlashV2Q | +SlashV2Q | V2Q -> QS -> VPSlash | -ask (him) who came | +ask (him) who came | head ccomp | -Verb | +Verb | ||
| SlashV2S | +SlashV2S | V2S -> S -> VPSlash | -answer (to him) that it is good | +answer (to him) that it is good | head ccomp | -Verb | +Verb | ||
| SlashV2V | +SlashV2V | V2V -> Ant -> Pol -> VP -> VPSlash | -force (her) not to have slept | +force (her) not to have slept | head xcomp | -Extensions | +Extensions | ||
| SlashV2V | +SlashV2V | V2V -> VP -> VPSlash | -beg (her) to go | +beg (her) to go | head xcomp | -Verb | +Verb | ||
| SlashV2VNP | +SlashV2VNP | V2V -> NP -> VPSlash -> VPSlash | -beg me to buy | +beg me to buy | head dobj xcomp | -Verb | +Verb | ||
| SlashV2a | +SlashV2a | V2 -> VPSlash | -love (it) | +love (it) | - | -Verb | +Verb | ||
| SlashVP | +SlashVP | NP -> VPSlash -> ClSlash | -(whom) he sees | +(whom) he sees | nsubj head | -Sentence | +Sentence | ||
| SlashVPIV2V | +SlashVPIV2V | V2V -> Pol -> VPI -> VPSlash | -force (her) not to sleep and dream | +force (her) not to sleep and dream | - | -Extensions | +Extensions | ||
| SlashVS | +SlashVS | NP -> VS -> SSlash -> ClSlash | -(whom) she says that he loves | +(whom) she says that he loves | nsubj head ccomp | -Sentence | +Sentence | ||
| SlashVV | +SlashVV | VV -> VPSlash -> VPSlash | -want to buy | +want to buy | head acl | -Verb | +Verb | ||
| SubjS | +SubjS | Subj -> S -> Adv | -when she sleeps | +when she sleeps | mark head | -Adverb | +Adverb | ||
| SymbNum | +SymbNum | Symb -> Card | -n | +n | - | -Symbol | +Symbol | ||
| SymbOrd | +SymbOrd | Symb -> Ord | -n'th | +n'th | - | -Symbol | +Symbol | ||
| SymbPN | +SymbPN | Symb -> PN | -x | +x | - | -Symbol | +Symbol | ||
| SymbS | +SymbS | Symb -> S | -A | +A | - | -Symbol | +Symbol | ||
| TEmpty | -Text | -- | - | -Text | -|||||
| TExclMark | -Phr -> Text -> Text | -Let's go! ... | -- | -Text | -|||||
| TFullStop | -Phr -> Text -> Text | -John walks. ... | -- | -Text | -|||||
| TPres | +TCond | Tense | -+ | I would sleep (conditional) --# notpresent | - | -Tense | +Tense | ||
| TQuestMark | -Phr -> Text -> Text | -Are they here? ... | -- | +TEmpty | Text | +(empty text, no sentences) | +- | +Text | |
| TTAnt | +TExclMark | +Phr -> Text -> Text | +Let's go! ... | +- | +Text | +||||
| TFullStop | +Phr -> Text -> Text | +John walks. ... | +- | +Text | +|||||
| TFut | +Tense | +I will sleep (future) --# notpresent | +- | +Tense | +|||||
| TPast | +Tense | +I slept (past, "imperfect") --# notpresent | +- | +Tense | +|||||
| TPres | +Tense | +I sleep/have slept (present) | +- | +Tense | +|||||
| TQuestMark | +Phr -> Text -> Text | +Are they here? ... | +- | +Text | +|||||
| TTAnt | Tense -> Ant -> Temp | -+ | (combination of tense and anteriority, e.g. past anterior) | empty empty head | -Tense | +Tense | |||
| Use2N3 | +Use2N3 | N3 -> N2 | -distance (from this city) | +distance (from this city) | - | -Noun | +Noun | ||
| Use3N3 | +Use3N3 | N3 -> N2 | -distance (to Paris) | +distance (to Paris) | - | -Noun | +Noun | ||
| UseA2 | +UseA2 | A2 -> AP | -married | +married | - | -Adjective | +Adjective | ||
| UseCl | +UseCl | Temp -> Pol -> Cl -> S | -+ | she had not slept | empty empty head | -Sentence | +Sentence | ||
| UseComp | +UseComp | Comp -> VP | -be warm | +be warm | - | -Verb | +Verb | ||
| UseComparA | +UseComparA | A -> AP | -warmer | +warmer | - | -Adjective | +Adjective | ||
| UseCopula | +UseCopula | VP | -be | +be | - | -Verb | +Verb | ||
| UseN | +UseN | N -> CN | -house | +house | - | -Noun | +Noun | ||
| UseN2 | +UseN2 | N2 -> CN | -mother | +mother | - | -Noun | +Noun | ||
| UsePN | +UsePN | PN -> NP | -John | +John | - | -Noun | +Noun | ||
| UsePron | +UsePron | Pron -> NP | -he | +he | - | -Noun | +Noun | ||
| UseQCl | +UseQCl | Temp -> Pol -> QCl -> QS | -+ | who had not slept | empty empty head | -Sentence | +Sentence | ||
| UseQuantPN | -Quant -> PN -> NP; -- this John | -+ | UseQuantPN | +Quant -> PN -> NP | +this John | - | -Extensions | +Extensions | |
| UseRCl | +UseRCl | Temp -> Pol -> RCl -> RS | -+ | that had not slept | empty empty head | -Sentence | +Sentence | ||
| UseSlash | +UseSlash | Temp -> Pol -> ClSlash -> SSlash | -+ | (that) she had not seen | empty empty head | -Sentence | +Sentence | ||
| UseV | +UseV | V -> VP | -sleep | +sleep | - | -Verb | +Verb | ||
| UttAP | +UttAP | AP -> Utt | -fine | +fine | - | -Phrase | +Phrase | ||
| UttAdV | -AdV -> Utt; -- always! | -+ | UttAdV | +AdV -> Utt | +always(!) | - | -Extensions | +Extensions | |
| UttAdv | +UttAdv | Adv -> Utt | -here | +here | - | -Phrase | +Phrase | ||
| UttCN | +UttCN | CN -> Utt | -house | +house | - | -Phrase | +Phrase | ||
| UttCard | +UttCard | Card -> Utt | -five | +five | - | -Phrase | +Phrase | ||
| UttIAdv | +UttIAdv | IAdv -> Utt | -why | +why | - | -Phrase | +Phrase | ||
| UttIP | +UttIP | IP -> Utt | -who | +who | - | -Phrase | +Phrase | ||
| UttImpPl | +UttImpPl | Pol -> Imp -> Utt | -(don't) love yourselves | +(don't) love yourselves | empty head | -Phrase | +Phrase | ||
| UttImpPol | +UttImpPol | Pol -> Imp -> Utt | -(don't) sleep (polite) | +(don't) sleep (polite) | empty head | -Phrase | +Phrase | ||
| UttImpSg | +UttImpSg | Pol -> Imp -> Utt | -(don't) love yourself | +(don't) love yourself | empty head | -Phrase | +Phrase | ||
| UttInterj | +UttInterj | Interj -> Utt | -alas | +alas | - | -Phrase | +Phrase | ||
| UttNP | +UttNP | NP -> Utt | -this man | +this man | - | -Phrase | +Phrase | ||
| UttQS | +UttQS | QS -> Utt | -is it good | +is it good | - | -Phrase | +Phrase | ||
| UttS | +UttS | S -> Utt | -John walks | +John walks | - | -Phrase | +Phrase | ||
| UttVP | +UttVP | VP -> Utt | -to sleep | +to sleep | - | -Phrase | +Phrase | ||
| VPSlashPrep | +VPSlashPrep | VP -> Prep -> VPSlash | -live in (it) | +live in (it) | head case | -Verb | +Verb | ||
| VPSlashVS | +VPSlashVS | VS -> VP -> VPSlash | -to believe (her) to sleep --- she was believed to sleep | +to believe (her) to sleep --- she was believed to sleep | - | -Extensions | +Extensions | ||
| VocNP | +VocNP | NP -> Voc | -my friend | +my friend | - | -Phrase | +Phrase | ||
| WithoutVP | +WithoutVP | VP -> Adv | -without publishing the document | +without publishing the document | - | -Extensions | +Extensions | ||
| num | +num | Sub1000000 -> Numeral | -+ | 123456 (coercion to top category) | - | -Numeral | +Numeral | ||
| pot0 | +pot0 | Digit -> Sub10 | -d * 1 | +d * 1 | - | -Numeral | +Numeral | ||
| pot01 | +pot01 | Sub10 | -1 | +1 | - | -Numeral | +Numeral | ||
| pot0as1 | +pot0as1 | Sub10 -> Sub100 | -coercion of 1..9 | +coercion of 1..9 | - | -Numeral | +Numeral | ||
| pot1 | +pot1 | Digit -> Sub100 | -d * 10 | +d * 10 | - | -Numeral | +Numeral | ||
| pot110 | +pot110 | Sub100 | -10 | +10 | - | -Numeral | +Numeral | ||
| pot111 | +pot111 | Sub100 | -11 | +11 | - | -Numeral | +Numeral | ||
| pot1as2 | +pot1as2 | Sub100 -> Sub1000 | -coercion of 1..99 | +coercion of 1..99 | - | -Numeral | +Numeral | ||
| pot1plus | +pot1plus | Digit -> Sub10 -> Sub100 | -d * 10 + n | +d * 10 + n | - | -Numeral | +Numeral | ||
| pot1to19 | +pot1to19 | Digit -> Sub100 | -10 + d | +10 + d | - | -Numeral | +Numeral | ||
| pot2 | +pot2 | Sub10 -> Sub1000 | -m * 100 | +m * 100 | - | -Numeral | +Numeral | ||
| pot2as3 | +pot2as3 | Sub1000 -> Sub1000000 | -coercion of 1..999 | +coercion of 1..999 | - | -Numeral | +Numeral | ||
| pot2plus | +pot2plus | Sub10 -> Sub100 -> Sub1000 | -m * 100 + n | +m * 100 + n | - | -Numeral | +Numeral | ||
| pot3 | +pot3 | Sub1000 -> Sub1000000 | -m * 1000 | +m * 1000 | - | -Numeral | +Numeral | ||
| pot3plus | +pot3plus | Sub1000 -> Sub1000 -> Sub1000000 | -m * 1000 + n | +m * 1000 + n | - | -Numeral | +Numeral | ||
| that_RP | +that_RP | RP | -+ | that (relative pronoun) | - | -Extensions | +Extensions | ||
| who_RP | +who_RP | RP | -+ | who (relative pronoun) | - | -Extensions | +Extensions |