english.tfile | source file |
Classes Summary | Objects Summary | Functions Summary Details |
This is the English implementation of the generic language interfaces. All of the code here is English-specific, so other language modules will replace the actual implementation. However, somef of the methods and properties are part of the generic interface - this means that each language module must define methods and properties with these names, and with the abstract behavior described. How they actually implement the behavior is up to them.
Methods and properties that are part of the generic interface are identified with [Required].
CustomVocab
LCommandTopicHelper
LMentionable
LState
actorActionContinuer_
decimalPreParser
DirState
disambigPreParser
englishCustomVocab
englishMessageParams
englishOptions
enumTabObj
finishOptionsLister
getOnGroundDoer
libMessages
LitUnlit
OpenClosed
prevDummy_
pronounPreinit
putOnGroundDoer
removeDoer
subLister
takePathDoer
andList
announceBestChoice
askAmbiguous
askMissingNoun
conjugate
conjugateBe
conjugateBeNot
conjugateCan
conjugateDoNot
conjugateDont
conjugateHavenot
conjugateHavnt
conjugateIm
conjugateIsnt
conjugateIve
conjugateMust
conjugateRegular
conjugateWas
conjugateWasnot
conjugateWasnt
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefMood
DefStance
DefStance
DefStance
DefStance
DefStance
DefStance
DefStance
DefStance
DefStance
DefStance
DefStance
genList
isListStr
langAdjust
listStrIs
makeCountedPlural
makeListInStr
makeListStr
makeSentence
mentionA
mentionThe
mergeDuplicates
nounRoleQuestion
npListPronoun
orList
pastParticiple
spelledToInt
spellNumber
stripArticle
yesOrNo
andList (lst) | english.t[3525] |
announceBestChoice (action, obj, role) | english.t[3915] |
askAmbiguous (cmd, role, names) | english.t[3800] |
'cmd' is the command, 'role' is the noun phrase's role in the predicate (DirectObject, etc), and 'nameList' is a list of strings determined by the Distinguisher process.
[Required]
askMissingNoun (cmd, role) | english.t[3784] |
'cmd' is the Command object. The other objects in the command, if any, have been resolved as much as possible when this is called. 'role' is the NounRole object telling us which predicate role is missing (DirectObject, IndirectObject, etc).
[Required]
conjugate (ctx, params) | english.t[4715] |
conjugateBe (ctx, params) | english.t[4908] |
conjugateBeNot (ctx, params) | english.t[4953] |
conjugateCan (ctx, params, beFunc, present, past) | english.t[5327] |
conjugateDoNot (ctx, params) | english.t[5279] |
conjugateDont (ctx, params) | english.t[5232] |
conjugateHavenot (ctx, params) | english.t[5205] |
conjugateHavnt (ctx, params) | english.t[5183] |
conjugateIm (ctx, params) | english.t[5043] |
conjugateIsnt (ctx, params) | english.t[4998] |
conjugateIve (ctx, params) | english.t[5155] |
conjugateMust (ctx, params) | english.t[5353] |
conjugateRegular (ctx, params) | english.t[4798] |
conjugateWas (ctx, params) | english.t[5089] |
conjugateWasnot (ctx, params) | english.t[5129] |
conjugateWasnt (ctx, params) | english.t[5109] |
DefMood (neutral) | english.t[6170] |
DefMood (calm) | english.t[6171] |
DefMood (happy) | english.t[6172] |
DefMood (euphoric) | english.t[6173] |
DefMood (contented) | english.t[6174] |
DefMood (sad) | english.t[6175] |
DefMood (depressed) | english.t[6176] |
DefMood (angry) | english.t[6177] |
DefMood (furious) | english.t[6178] |
DefMood (afraid) | english.t[6179] |
DefMood (terrified) | english.t[6180] |
DefMood (confident) | english.t[6181] |
DefMood (bold) | english.t[6182] |
DefMood (lonely) | english.t[6183] |
DefMood (bored) | english.t[6184] |
DefMood (excited) | english.t[6185] |
DefStance (amorous, 50) | english.t[6153] |
DefStance (loving, 40) | english.t[6154] |
DefStance (warm, 30) | english.t[6155] |
DefStance (friendly, 20) | english.t[6156] |
DefStance (cordial, 10) | english.t[6157] |
DefStance (neutral, 0) | english.t[6158] |
DefStance (cool, -, 10) | english.t[6159] |
DefStance (unfriendly, -, 20) | english.t[6160] |
DefStance (hostile, -, 30) | english.t[6161] |
DefStance (venemous, -, 40) | english.t[6162] |
DefStance (hateful, -, 50) | english.t[6163] |
genList (lst, conj) | english.t[3533] |
isListStr (objList) | english.t[3493] |
langAdjust (txt) | english.t[4764] |
listStrIs (objList) | english.t[3508] |
makeCountedPlural (str, num) | english.t[3639] |
makeListInStr (objList) | english.t[3482] |
makeListStr (objList, nameProp, =, &, aName, conjunction, =, ', and, ') | english.t[3376] |
If the nameProp parameter is supplied, we'll use that property for the name of every item in the list; otherwise we use the aName property by default.
By default the last two items in the list are separated by 'and', but we can choose a different conjunction by supplying the conjunction parameter.
makeSentence (msg) | english.t[4150] |
mentionA (obj) | english.t[3435] |
mentionThe (obj) | english.t[3459] |
mergeDuplicates (lst) | english.t[3571] |
nounRoleQuestion (cmd, role) | english.t[3861] |
npListPronoun (pro, nplst, prep) | english.t[3951] |
orList (lst) | english.t[3517] |
pastParticiple (verb) | english.t[4872] |
spelledToInt (str) | english.t[2909] |
spellNumber (n) | english.t[2813] |
- we spell out numbers below 100
- we also spell out round figures above 100 that can be expressed
in two words (e.g., "fifteen thousand" or "thirty million")
- for millions and billions, we write, e.g., "1.7 million", if possible
- for anything else, we return the decimal digits, with commas to
separate groups of thousands (e.g., 120,400)
Other languages might have different style rules, so the choice using a spelled-out number or digits might vary by language.
[Required]
stripArticle (txt) | english.t[3680] |
yesOrNo ( ) | english.t[5895] |