From d277fe88e113fc569faf9c29a251ea5a83afeb73 Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 14 Oct 2015 08:04:09 +0000 Subject: [PATCH] added a copy of uddeps.labels; script for generating a table of abstract RGL functions and information on them; an instance of running the script, absfuns.html, to be used as documentation --- lib/doc/AbsFunDoc.hs | 42 + lib/doc/absfuns.html | 1789 ++++++++++++++++++++++++++++++++++++ lib/src/abstract/Common.gf | 4 +- lib/src/abstract/Phrase.gf | 4 +- lib/src/uddeps.labels | 152 +++ 5 files changed, 1987 insertions(+), 4 deletions(-) create mode 100644 lib/doc/AbsFunDoc.hs create mode 100644 lib/doc/absfuns.html create mode 100644 lib/src/uddeps.labels diff --git a/lib/doc/AbsFunDoc.hs b/lib/doc/AbsFunDoc.hs new file mode 100644 index 000000000..ddf2b193a --- /dev/null +++ b/lib/doc/AbsFunDoc.hs @@ -0,0 +1,42 @@ +import System.Process(system) +import qualified Data.Map as M +import qualified Data.Set as S +import Data.List + + +-- building a table of RGL functions and their types, examples, and documentation +-- to run: +-- $ runghc AbsFunDoc.hs >absfuns.txt +-- $ txt2tags -thtml absfuns.txt +-- this creates the file absfuns.html + +main = do + system "grep \" : \" ../src/abstract/*.gf ../src/translator/Extensions.gf >absfuns.tmp" + funs <- readFile "absfuns.tmp" >>= return . lines + 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"] + putStrLn $ unlines entries + + +hiddenModules = S.fromList + ["Backward","Structural","Extra","Construction","Compatibility", + "Documentation","Lexicon","NumeralTransfer","Terminology","Transfer","MarkHTML","Markup","ERROR"] ---- + +mkRow depmap ws = case ws of + file:fun:":":typecomment -> 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 + getDep fun = maybe "-" (unwords . takeWhile (/="--")) $ M.lookup fun depmap + +-- sepFields = concat . intersperse "\t" +sepFields fs = "| " ++ concat (intersperse " | " fs) ++ " |" + diff --git a/lib/doc/absfuns.html b/lib/doc/absfuns.html new file mode 100644 index 000000000..9cf5dbbce --- /dev/null +++ b/lib/doc/absfuns.html @@ -0,0 +1,1789 @@ + + + + +GF RGL Functions + +
+

GF RGL Functions

+generated by lib/src/doc/AbsFunFoc.hs
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionTypeExampleDependenciesModule
AAnterAntI have slept --# notpresent-Tense
ASimulAnt-Tense
AdAPAdA -> AP -> APvery warmadvmod headAdjective
AdAdVAdA -> AdV -> AdValmost alwaysamod headExtensions
AdAdvAdA -> Adv -> Advvery quicklyamod headAdverb
AdNumAdN -> Card -> Cardalmost 51advmod headNoun
AdVVPAdV -> VP -> VPalways sleepadvmod headVerb
AdVVPSlashAdV -> VPSlash -> VPSlashalways use (it)advmod headVerb
AddAdvQVPQVP -> IAdv -> QVPbuys what wherehead advmodQuestion
AdjCNAP -> CN -> CNbig houseamod headNoun
AdjDAPDAP -> AP -> DAPthe large (one)head amodNoun
AdjOrdOrd -> APwarmest-Adjective
AdnCAdvCAdv -> AdNless (than five)-Adverb
AdvAPAP -> Adv -> APwarm by naturehead advmodAdjective
AdvCNCN -> Adv -> CNhouse on the hillhead nmodNoun
AdvIAdvIAdv -> Adv -> IAdvwhere in Parisadvmod headQuestion
AdvIPIP -> Adv -> IPwho in Paris-Question
AdvNPNP -> Adv -> NPParis todayhead nmodNoun
AdvQVPVP -> IAdv -> QVPlives wherehead dobjQuestion
AdvSAdv -> S -> Sthen I will go homeadvmod headSentence
AdvSlashClSlash -> Adv -> ClSlash(whom) he sees todayhead advmodSentence
AdvVPVP -> Adv -> VPsleep herehead advmodVerb
AdvVPSlashVPSlash -> Adv -> VPSlashuse (it) herehead advmodVerb
ApposCNCN -> NP -> CNcity Paris (, numbers x and y)head apposNoun
ApposNPNP -> NP -> NPMr Hollande, the president of France,head apposExtensions
ByVPVP -> Advby publishing the document-Extensions
CAdvAPCAdv -> AP -> NP -> APas cool as Johncase amod headAdjective
CNIntNPCN -> Int -> NPlevel 53 (covered by CNNumNP)-Symbol
CNNumNPCN -> Card -> NPlevel five ; level 5head nummodSymbol
CNSymbNPDet -> CN -> [Symb] -> NP(the) (2) numbers x and y-Symbol
CleftAdvAdv -> S -> Clit is here she slepthead advclIdiom
CleftNPNP -> RS -> Clit is I who did ithead aclIdiom
CompAPAP -> Comp(be) small-Verb
CompAdvAdv -> Comp(be) here-Verb
CompCNCN -> Comp(be) a man/men-Verb
CompIAdvIAdv -> ICompwhere (is it)-Question
CompIPIP -> ICompwho (is it)-Question
CompNPNP -> Comp(be) the man-Verb
CompQSQS -> Comp(the question is) who sleeps-Extensions
CompSS -> Comp(the fact is) that she sleeps-Extensions
CompVPAnt -> Pol -> VP -> Comp(she is) to go-Extensions
ComparAA -> NP -> APwarmer than Iamod headAdjective
ComparAdvAdjCAdv -> A -> NP -> Advmore warmly than Johnadvmod amod headAdverb
ComparAdvAdjSCAdv -> A -> S -> Advmore warmly than he runsadvmod amod headAdverb
ComplA2A2 -> NP -> APmarried to heramod headAdjective
ComplN2N2 -> NP -> CNmother of the kinghead nmodNoun
ComplN3N3 -> NP -> N2distance from this city (to Paris)nmod headNoun
ComplSlashVPSlash -> NP -> VPlove ithead dobjVerb
ComplSlashIPVPSlash -> IP -> QVPbuys whathead dobjQuestion
ComplVAVA -> AP -> VPthey become redhead xcompVerb
ComplVPIVVVV -> VPI -> VP-Extensions
ComplVQVQ -> QS -> VPwonder who runshead ccompVerb
ComplVSVS -> S -> VPsay that she runshead ccompVerb
ComplVVVV -> Ant -> Pol -> VP -> VPwant not to have slepthead xcompExtensions
ComplVVVV -> VP -> VPwant to runhead xcompVerb
CompoundAPN -> A -> APlanguage independent / language-independenthead amodExtensions
CompoundNN -> N -> Ncontrol system / controls system / control-systemcompound headExtensions
ConjAPConj -> [AP] -> AP"cold and warm"cc headConjunction
ConjAdVConj -> [AdV] -> AdVcc headConjunction
ConjAdvConj -> [Adv] -> Adv"here or there"cc headConjunction
ConjCNConj -> [CN] -> CN"man and woman"cc headConjunction
ConjDetConj -> [DAP] -> Det"his or her"cc headConjunction
ConjIAdvConj -> [IAdv] -> IAdv"where and with whom"cc headConjunction
ConjNPConj -> [NP] -> NP"she or we"cc headConjunction
ConjRSConj -> [RS] -> RS"who walks and whose mother runs"cc headConjunction
ConjSConj -> [S] -> S"he walks and she runs"cc headConjunction
ConjVPIConj -> [VPI] -> VPI-Extensions
ConjVPSConj -> [VPS] -> VPS-Extensions
CountNPDet -> NP -> NPthree of them, some of the boysdet headNoun
DefArtQuant-Noun
DetCNDet -> CN -> NPthe mandet headNoun
DetDAPDet -> DAPthis (or that)-Noun
DetNPDet -> NPthese five-Noun
DetQuantQuant -> Num -> Detthese fivehead nummodNoun
DetQuantOrdQuant -> Num -> Ord -> Detthese five besthead nummod amodNoun
DirectComplVQTemp -> NP -> VQ -> QS -> Swho is there, she asked / she asked: who is there -- no negation possibleempty nsubj head ccompExtensions
DirectComplVSTemp -> NP -> VS -> Utt -> SI am here, she said / she said: I am here -- no negation possibleempty nsubj head ccompExtensions
EmbedQSQS -> SCwho goes-Sentence
EmbedSS -> SCthat she goes-Sentence
EmbedVPVP -> SCto go-Sentence
EmptyRelSlashClSlash -> RCl(the city) he lives in-Extensions
ExistIPIP -> QClwhich houses are there-Idiom
ExistIPAdvIP -> Adv -> QClwhich houses are there in Parishead advmodIdiom
ExistNPNP -> Clthere is a house-Idiom
ExistNPAdvNP -> Adv -> Clthere is a house in Parishead nmodIdiom
ExtAdvSAdv -> S -> Snext week, I will go homeadvmod headSentence
ExtAdvVPVP -> Adv -> VPsleep , even though ...head advmodVerb
FloatPNFloat -> PN3.14159-Symbol
FocusObjSNP -> SSlash -> Sthis woman I love -- in declarative S, not in QSnsubj headExtensions
FunRPPrep -> NP -> RP -> RPthe mother of whom-Relative
GenIPIP -> IQuantwhose-Extensions
GenNPNP -> Quantthis man's-Extensions
GenRPNum -> CN -> RPwhose car(s)-Extensions
GenericClVP -> Clone sleeps-Idiom
GerundAdvVP -> Advpublishing the document (prepositionless adverb)-Extensions
GerundCNVP -> CNpublishing of the document (can get a determiner)-Extensions
GerundNPVP -> NPpublishing the document (by nature definite)-Extensions
IDigDig -> Digits8-Numeral
IIDigDig -> Digits -> Digits876head goeswithNumeral
IdRPRPwhich-Relative
IdetCNIDet -> CN -> IPwhich five songs-Question
IdetIPIDet -> IPwhich five-Question
IdetQuantIQuant -> Num -> IDetwhich (five)-Question
ImpP3NP -> VP -> Uttlet John walk-Idiom
ImpPl1VP -> Uttlet's go-Idiom
ImpVPVP -> Implove yourselves-Sentence
ImpersClVP -> Clit is hot-Idiom
InOrderToVPVP -> Adv(in order) to publish the document-Extensions
IndefArtQuant-Noun
IntPNInt -> PN27-Symbol
MassNPCN -> NP(beer)-Noun
MkSymbString -> Symb-Symbol
MkVPIVP -> VPI-Extensions
MkVPSTemp -> Pol -> VP -> VPSempty empty headExtensions
ModSubjSS -> Subj -> S -> Sshe sleeps, because she is old-Sentence
NoPConjPConj-Phrase
NoVocVoc-Phrase
NumCardCard -> Num-Noun
NumDigitsDigits -> Card51-Noun
NumNumeralNumeral -> Cardfifty-one-Noun
NumPNCard -> PN-Symbol
NumPlNum-Noun
NumSgNum-Noun
OrdDigitsDigits -> Ord51st-Noun
OrdNumeralNumeral -> Ordfifty-first-Noun
OrdNumeralSuperlNumeral -> A -> Ordthird largestnummod headNoun
OrdSuperlA -> Ordwarmest-Noun
PConjConjConj -> PConjand-Phrase
PPartNPNP -> V2 -> NPthe man seen-Noun
PartNPCN -> NP -> CNglass of winenmod headNoun
PassAgentVPSlashVPSlash -> NP -> VPbe begged by her to gohead nmodExtensions
PassV2V2 -> VPbe loved-Verb
PassVPSlashVPSlash -> VPbe forced to sleep-Extensions
PastPartAPVPSlash -> APlost (opportunity) ; (opportunity) lost in space-Extensions
PastPartAgentAPVPSlash -> NP -> AP(opportunity) lost by the companyhead dobjExtensions
PastPartRSAnt -> Pol -> VPSlash -> RS(man) not seen by her --- maybe no Anter-Extensions
PhrUttPConj -> Utt -> Voc -> Phrbut come here, my friendcc head discoursePhrase
PositAA -> APwarm-Adjective
PositAdAAdjA -> AdAextremely-Adverb
PositAdVAdjA -> AdV(that she) positively (sleeps)-Extensions
PositAdvAdjA -> Advwarmly-Adverb
PossNPCN -> NP -> CNhouse of Paris, house of minenmod headNoun
PossPronPron -> Quantmy (house)-Noun
PredFrontVQTemp -> NP -> VQ -> QS -> Sare you here, she asked -- no negation; direct order-Extensions
PredFrontVSTemp -> NP -> VS -> S -> SI am here, she said -- no negation-Extensions
PredSCVPSC -> VP -> Clthat she goes is goodcsubj headSentence
PredVPNP -> VP -> ClJohn walksPassVPSlash nsubjpass headSentence
PredVPSNP -> VPS -> Snsubj headExtensions
PredetNPPredet -> NP -> NP; -- only the mandet headNoun
PrepIPPrep -> IP -> IAdvwith whomcase headQuestion
PrepNPPrep -> NP -> Advin the housecase headAdverb
PresPartAPVP -> APsleeping (man), (man) sleeping in the car-Extensions
PresPartRSAnt -> Pol -> VP -> RS(man) not having seen her-Extensions
ProgrVPVP -> VPbe sleeping-Idiom
QuestClCl -> QCldoes John walk-Question
QuestIAdvIAdv -> Cl -> QClwhy does John walkadvmod headQuestion
QuestICompIComp -> NP -> QClwhere is Johnhead nsubjQuestion
QuestQVPIP -> QVP -> QClwho buys what wherensubj headQuestion
QuestSlashIP -> ClSlash -> QClwhom does John lovedobj headQuestion
QuestVPIP -> VP -> QClwho walksnsubj headQuestion
ReflA2A2 -> APmarried to itself-Adjective
ReflVPVPSlash -> VPlove himself-Verb
RelCNCN -> RS -> CNhouse that John boughthead aclNoun
RelClCl -> RClsuch that John loves her-Relative
RelNPNP -> RS -> NPParis, which is herehead aclNoun
RelSS -> RS -> Sshe sleeps, which is goodhead advclSentence
RelSlashRP -> ClSlash -> RClwhom John lovesmark headRelative
RelVPRP -> VP -> RClwho loves Johnmark headRelative
SSubjSS -> Subj -> S -> SI go home if she comeshead mark advclSentence
SelfAdVVPVP -> VPis himself at home-Idiom
SelfAdvVPVP -> VPis at home himself-Idiom
SelfNPNP -> NPthe president himself (is at home)-Idiom
SentAPAP -> SC -> APgood that she is hereamod aclAdjective
SentCNCN -> SC -> CNquestion where she sleepshead aclNoun
Slash2V3V3 -> NP -> VPSlashgive it (to her)head iobjVerb
Slash3V3V3 -> NP -> VPSlashgive (it) to herhead dobjVerb
SlashPrepCl -> Prep -> ClSlash(with whom) he walkshead caseSentence
SlashSlashV2VV2V -> Ant -> Pol -> VPSlash -> VPSlashinduce them to sell (it) -- analogous to Verb.SlashVV-Extensions
SlashV2AV2A -> AP -> VPSlashpaint (it) redhead xcompVerb
SlashV2QV2Q -> QS -> VPSlashask (him) who camehead ccompVerb
SlashV2SV2S -> S -> VPSlashanswer (to him) that it is goodhead ccompVerb
SlashV2VV2V -> Ant -> Pol -> VP -> VPSlashforce (her) not to have slepthead xcompExtensions
SlashV2VV2V -> VP -> VPSlashbeg (her) to gohead xcompVerb
SlashV2VNPV2V -> NP -> VPSlash -> VPSlashbeg me to buyhead dobj xcompVerb
SlashV2aV2 -> VPSlashlove (it)-Verb
SlashVPNP -> VPSlash -> ClSlash(whom) he seesnsubj headSentence
SlashVPIV2VV2V -> Pol -> VPI -> VPSlashforce (her) not to sleep and dream-Extensions
SlashVSNP -> VS -> SSlash -> ClSlash(whom) she says that he lovesnsubj head ccompSentence
SlashVVVV -> VPSlash -> VPSlashwant to buyhead aclVerb
SubjSSubj -> S -> Advwhen she sleepsmark headAdverb
SymbNumSymb -> Cardn-Symbol
SymbOrdSymb -> Ordn'th-Symbol
SymbPNSymb -> PNx-Symbol
SymbSSymb -> SA-Symbol
TEmptyText-Text
TExclMarkPhr -> Text -> TextLet's go! ...-Text
TFullStopPhr -> Text -> TextJohn walks. ...-Text
TPresTense-Tense
TQuestMarkPhr -> Text -> TextAre they here? ...-Text
TTAntTense -> Ant -> Tempempty empty headTense
Use2N3N3 -> N2distance (from this city)-Noun
Use3N3N3 -> N2distance (to Paris)-Noun
UseA2A2 -> APmarried-Adjective
UseClTemp -> Pol -> Cl -> Sempty empty headSentence
UseCompComp -> VPbe warm-Verb
UseComparAA -> APwarmer-Adjective
UseCopulaVPbe-Verb
UseNN -> CNhouse-Noun
UseN2N2 -> CNmother-Noun
UsePNPN -> NPJohn-Noun
UsePronPron -> NPhe-Noun
UseQClTemp -> Pol -> QCl -> QSempty empty headSentence
UseQuantPNQuant -> PN -> NP; -- this John-Extensions
UseRClTemp -> Pol -> RCl -> RSempty empty headSentence
UseSlashTemp -> Pol -> ClSlash -> SSlashempty empty headSentence
UseVV -> VPsleep-Verb
UttAPAP -> Uttfine-Phrase
UttAdVAdV -> Utt; -- always!-Extensions
UttAdvAdv -> Utthere-Phrase
UttCNCN -> Utthouse-Phrase
UttCardCard -> Uttfive-Phrase
UttIAdvIAdv -> Uttwhy-Phrase
UttIPIP -> Uttwho-Phrase
UttImpPlPol -> Imp -> Utt(don't) love yourselvesempty headPhrase
UttImpPolPol -> Imp -> Utt(don't) sleep (polite)empty headPhrase
UttImpSgPol -> Imp -> Utt(don't) love yourselfempty headPhrase
UttInterjInterj -> Uttalas-Phrase
UttNPNP -> Uttthis man-Phrase
UttQSQS -> Uttis it good-Phrase
UttSS -> UttJohn walks-Phrase
UttVPVP -> Uttto sleep-Phrase
VPSlashPrepVP -> Prep -> VPSlashlive in (it)head caseVerb
VPSlashVSVS -> VP -> VPSlashto believe (her) to sleep --- she was believed to sleep-Extensions
VocNPNP -> Vocmy friend-Phrase
WithoutVPVP -> Advwithout publishing the document-Extensions
numSub1000000 -> Numeral-Numeral
pot0Digit -> Sub10d * 1-Numeral
pot01Sub101-Numeral
pot0as1Sub10 -> Sub100coercion of 1..9-Numeral
pot1Digit -> Sub100d * 10-Numeral
pot110Sub10010-Numeral
pot111Sub10011-Numeral
pot1as2Sub100 -> Sub1000coercion of 1..99-Numeral
pot1plusDigit -> Sub10 -> Sub100d * 10 + n-Numeral
pot1to19Digit -> Sub10010 + d-Numeral
pot2Sub10 -> Sub1000m * 100-Numeral
pot2as3Sub1000 -> Sub1000000coercion of 1..999-Numeral
pot2plusSub10 -> Sub100 -> Sub1000m * 100 + n-Numeral
pot3Sub1000 -> Sub1000000m * 1000-Numeral
pot3plusSub1000 -> Sub1000 -> Sub1000000m * 1000 + n-Numeral
that_RPRP-Extensions
who_RPRP-Extensions
+ + + + diff --git a/lib/src/abstract/Common.gf b/lib/src/abstract/Common.gf index 12c810514..0e7a57637 100644 --- a/lib/src/abstract/Common.gf +++ b/lib/src/abstract/Common.gf @@ -1,7 +1,7 @@ --1 Common: Structures with Common Implementations. --- This module defines the categories that uniformly have the linearization --- ${s : Str}$ in all languages. +-- This module defines the categories that uniformly have the +-- linearization type ${s:Str}$ in all languages. abstract Common = { diff --git a/lib/src/abstract/Phrase.gf b/lib/src/abstract/Phrase.gf index 84af913e8..f954d0a90 100644 --- a/lib/src/abstract/Phrase.gf +++ b/lib/src/abstract/Phrase.gf @@ -13,8 +13,8 @@ abstract Phrase = Cat ** { UttS : S -> Utt ; -- John walks UttQS : QS -> Utt ; -- is it good - UttImpSg : Pol -> Imp -> Utt; -- (don't) love yourself - UttImpPl : Pol -> Imp -> Utt; -- (don't) love yourselves + UttImpSg : Pol -> Imp -> Utt ; -- (don't) love yourself + UttImpPl : Pol -> Imp -> Utt ; -- (don't) love yourselves UttImpPol : Pol -> Imp -> Utt ; -- (don't) sleep (polite) -- There are also 'one-word utterances'. A typical use of them is diff --git a/lib/src/uddeps.labels b/lib/src/uddeps.labels new file mode 100644 index 000000000..24a544c33 --- /dev/null +++ b/lib/src/uddeps.labels @@ -0,0 +1,152 @@ +PredVP nsubj head +PredVPS nsubj head +DirectComplVQ empty nsubj head ccomp -- Temp argument can only be empty in English +DirectComplVS empty nsubj head ccomp -- Temp argument can only be empty in English +SlashVP nsubj head +SlashVS nsubj head ccomp +FocusObjS nsubj head -- again might be wrong; more correct to call it dobj +QuestIAdv advmod head -- "where does John sleep" cf. AdvVP +QuestIComp head nsubj -- "where is John": John is clearly nsubj, but is where the head? +QuestQVP nsubj head +QuestSlash dobj head +QuestVP nsubj head + +PredVP PassVPSlash nsubjpass head + +PredSCVP csubj head + +ComplSlash head dobj +ComplSlashIP head dobj +Slash3V3 head dobj +SlashV2VNP head dobj xcomp +PastPartAgentAP head dobj +AdvQVP head dobj + +Slash2V3 head iobj + +ComplVS head ccomp +ComplVQ head ccomp +SlashV2S head ccomp +SlashV2Q head ccomp +CleftAdv head advcl -- not sure + +ComplVA head xcomp +ComplVV head xcomp +SlashVV head acl +SlashV2A head xcomp +SlashV2V head xcomp + +AdvNP head nmod -- not sure +ExtAdvNP head nmod -- not sure +PassAgentVPSlash head nmod -- not sure +CleftNP head acl -- this cannot be nmod, not with type RS + +SSubjS head mark advcl +RelS head advcl + +AdNum advmod head +AdAP advmod head +AdvAP head advmod +ComparAdvAdj advmod amod head +ComparAdvAdjS advmod amod head +AdvIAdv advmod head +AdVVP advmod head +AdvVP head advmod +ExtAdvVP head advmod +AddAdvQVP head advmod +AdVVPSlash advmod head +AdvVPSlash head advmod +AdvSlash head advmod +ExistIPAdv head advmod +AdvS advmod head +ExtAdvS advmod head + +SubjS mark head +RelVP mark head +RelSlash mark head + +ComplN2 head nmod +ComplN3 nmod head +AdvCN head nmod +PossNP nmod head +PartNP nmod head +ExistNPAdv head nmod + +OrdNumeralSuperl nummod head -- quite wrong; cannot find relevant details in the documentation; but most probably head lies outside the score of this function +DetQuant head nummod -- quite wrong; I think the head lies outside the scope of the function +CNNumNP head nummod + +ApposCN head appos +ApposNP head appos + +RelNP head acl +RelCN head acl +SentCN head acl +SentAP amod acl + +DetQuantOrd head nummod amod -- quite wrong; again for same reason as DetQuant function +DetCN det head +CountNP det head +PredetNP det head + +AdjCN amod head +AdjDAP head amod +CAdvAP case amod head +ComparA amod head +ComplA2 amod head +CompoundAP head amod +AdAdV amod head +AdAdv amod head + +CompoundN compound head + +IIDig head goeswith + +PrepNP case head +PrepIP case head +SlashPrep head case +VPSlashPrep head case + +UttImpPl empty head +UttImpPol empty head +UttImpSg empty head + +MkVPS empty empty head + +UseCl empty empty head +UseQCl empty empty head +UseRCl empty empty head +UseSlash empty empty head +UseVC empty empty head + +BaseAP head conj +BaseAdV head conj +BaseAdv head conj +BaseCN head conj +BaseDAP head conj +BaseIAdv head conj +BaseNP head conj +BaseRS head conj +BaseS head conj +ConsAP head conj +ConsAdV head conj +ConsAdv head conj +ConsCN head conj +ConsDAP head conj +ConsIAdv head conj +ConsNP head conj +ConsRS head conj +ConsS head conj +ConjAP cc head +ConjAdV cc head +ConjAdv cc head +ConjCN cc head +ConjDet cc head +ConjIAdv cc head +ConjNP cc head +ConjRS cc head +ConjS cc head +PhrUtt cc head discourse + +PlusChunk head dep +TTAnt empty empty head