improved absfuns.html generation, added links, improved comments in source files to give better documentation

This commit is contained in:
aarne
2015-10-14 09:05:37 +00:00
parent d277fe88e1
commit bb289d9297
11 changed files with 883 additions and 826 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 ;

View File

@@ -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
}

View File

@@ -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:

View File

@@ -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

View File

@@ -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
}

View File

@@ -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! ...