mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-02 15:52:50 -06:00
improved absfuns.html generation, added links, improved comments in source files to give better documentation
This commit is contained in:
@@ -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 ;
|
||||
ConjIAdv : Conj -> [IAdv] -> IAdv ; -- "where and with whom"
|
||||
ConjCN : Conj -> [CN] -> CN ; -- "man and woman"
|
||||
ConjDet : Conj -> [DAP] -> Det ; -- "his or her"
|
||||
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
|
||||
|
||||
--2 Categories
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ abstract Noun = Cat ** {
|
||||
|
||||
-- A noun phrase already formed can be modified by a $Predet$erminer.
|
||||
|
||||
PredetNP : Predet -> NP -> NP; -- only the man
|
||||
PredetNP : Predet -> NP -> NP ; -- only the man
|
||||
|
||||
-- A noun phrase can also be postmodified by the past participle of a
|
||||
-- verb, by an adverb, or by a relative clause
|
||||
@@ -50,9 +50,9 @@ abstract Noun = Cat ** {
|
||||
-- the "kernel" of a determiner. It is, however, the $Num$ that determines
|
||||
-- the inherent number.
|
||||
|
||||
NumSg : Num ;
|
||||
NumPl : Num ;
|
||||
NumCard : Card -> Num ;
|
||||
NumSg : Num ; -- [no numeral, but marked as singular]
|
||||
NumPl : Num ; -- [no numeral, but marked as plural]
|
||||
NumCard : Card -> Num ; -- one/five [explicit numeral]
|
||||
|
||||
-- $Card$ consists of either digits or numeral words.
|
||||
|
||||
@@ -82,8 +82,8 @@ abstract Noun = Cat ** {
|
||||
-- neatly distinct words (Spanish "un, unos ; el, los") but also without
|
||||
-- any particular word (Finnish; Swedish definites).
|
||||
|
||||
IndefArt : Quant ;
|
||||
DefArt : Quant ;
|
||||
IndefArt : Quant ; -- a/an
|
||||
DefArt : Quant ; -- the
|
||||
|
||||
-- Nouns can be used without an article as mass nouns. The resource does
|
||||
-- not distinguish mass nouns from other common nouns, which can result
|
||||
|
||||
@@ -27,7 +27,7 @@ cat
|
||||
Sub1000000 ; -- 1..999999
|
||||
|
||||
data
|
||||
num : Sub1000000 -> Numeral ;
|
||||
num : Sub1000000 -> Numeral ; -- 123456 [coercion to top category]
|
||||
|
||||
n2, n3, n4, n5, n6, n7, n8, n9 : Digit ;
|
||||
|
||||
|
||||
@@ -36,13 +36,13 @@ abstract Phrase = Cat ** {
|
||||
-- The phrasal conjunction is optional. A sentence conjunction
|
||||
-- can also be used to prefix an utterance.
|
||||
|
||||
NoPConj : PConj ;
|
||||
NoPConj : PConj ; -- [plain phrase without conjunction in front]
|
||||
PConjConj : Conj -> PConj ; -- and
|
||||
|
||||
-- The vocative is optional. Any noun phrase can be made into vocative,
|
||||
-- which may be overgenerating (e.g. "I").
|
||||
|
||||
NoVoc : Voc ;
|
||||
NoVoc : Voc ; -- [plain phrase without vocative]
|
||||
VocNP : NP -> Voc ; -- my friend
|
||||
|
||||
}
|
||||
|
||||
@@ -57,10 +57,10 @@ abstract Sentence = Cat ** {
|
||||
-- anteriority, which are defined in [``Common`` Common.html].
|
||||
|
||||
fun
|
||||
UseCl : Temp -> Pol -> Cl -> S ;
|
||||
UseQCl : Temp -> Pol -> QCl -> QS ;
|
||||
UseRCl : Temp -> Pol -> RCl -> RS ;
|
||||
UseSlash : Temp -> Pol -> ClSlash -> SSlash ;
|
||||
UseCl : Temp -> Pol -> Cl -> S ; -- she had not slept
|
||||
UseQCl : Temp -> Pol -> QCl -> QS ; -- who had not slept
|
||||
UseRCl : Temp -> Pol -> RCl -> RS ; -- that had not slept
|
||||
UseSlash : Temp -> Pol -> ClSlash -> SSlash ; -- (that) she had not seen
|
||||
|
||||
-- An adverb can be added to the beginning of a sentence, either with comma ("externally")
|
||||
-- or without:
|
||||
|
||||
@@ -12,7 +12,7 @@ fun
|
||||
SymbPN : Symb -> PN ; -- x
|
||||
IntPN : Int -> PN ; -- 27
|
||||
FloatPN : Float -> PN ; -- 3.14159
|
||||
NumPN : Card -> PN ;
|
||||
NumPN : Card -> PN ; -- twelve [as proper name]
|
||||
CNNumNP : CN -> Card -> NP ; -- level five ; level 5
|
||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||
|
||||
@@ -37,7 +37,7 @@ cat
|
||||
[Symb]{2} ;
|
||||
|
||||
fun
|
||||
MkSymb : String -> Symb ;
|
||||
MkSymb : String -> Symb ; -- foo [making a symbol from a string]
|
||||
|
||||
--2 Obsolescent
|
||||
|
||||
|
||||
@@ -11,12 +11,15 @@
|
||||
abstract Tense = Common ** {
|
||||
|
||||
fun
|
||||
TTAnt : Tense -> Ant -> Temp ;
|
||||
TTAnt : Tense -> Ant -> Temp ; -- [combination of tense and anteriority, e.g. past anterior]
|
||||
|
||||
PPos, PNeg : Pol ; -- I sleep/don't sleep
|
||||
PPos : Pol ; -- I sleep [positive polarity]
|
||||
PNeg : Pol ; -- I don't sleep [negative polarity]
|
||||
|
||||
TPres : Tense ;
|
||||
ASimul : Ant ;
|
||||
TPast, TFut, TCond : Tense ; -- I slept/will sleep/would sleep --# notpresent
|
||||
AAnter : Ant ; -- I have slept --# notpresent
|
||||
TPres : Tense ; -- I sleep/have slept [present]
|
||||
ASimul : Ant ; -- I sleep/slept [simultaneous, not compound]
|
||||
TPast : Tense ; -- I slept [past, "imperfect"] --# notpresent
|
||||
TFut : Tense ; -- I will sleep [future] --# notpresent
|
||||
TCond : Tense ; -- I would sleep [conditional] --# notpresent
|
||||
AAnter : Ant ; -- I have slept/had slept [anterior, "compound", "perfect"] --# notpresent
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
abstract Text = Common ** {
|
||||
|
||||
fun
|
||||
TEmpty : Text ; --
|
||||
TEmpty : Text ; -- [empty text, no sentences]
|
||||
TFullStop : Phr -> Text -> Text ; -- John walks. ...
|
||||
TQuestMark : Phr -> Text -> Text ; -- Are they here? ...
|
||||
TExclMark : Phr -> Text -> Text ; -- Let's go! ...
|
||||
|
||||
Reference in New Issue
Block a user