// common_words.js
(function () {
/* global adventurejs A */
var p = adventurejs.Dictionary.prototype;
/**
* Ask whether the common word lookup contains
* the specified word.
* @memberOf adventurejs.Dictionary
* @method adventurejs.Dictionary#hasCommonWord
* @param {string} word The word to look up, ie "zoo".
* @returns {boolean}
*/
p.hasCommonWord = function Dictionary_hasCommonWord(word) {
return this.common_words.includes(word);
};
/**
* Common words is a group of words that may not exist in the
* game, but which a player could reasonably be expected to
* use, for which we may want to return a more informative
* message than "I don't know the word x." Authors can provide
* their own lists of common words, or set the list to empty,
* through the use of
* <code>MyGame.dictionary.set({ common_words: ["foo", "bar"] });</code>
* @var {Object} adventurejs.Dictionary#common_words
*/
p.common_words = [
// locations
"store",
"cafe",
"shop",
"restaurant",
"zoo",
"mall",
"library",
"school",
"park",
"bakery",
"bar",
"museum",
"hospital",
"station",
"hotel",
"pharmacy",
"market",
"bank",
"church",
"theater",
"clinic",
"post office",
"university",
"diner",
"garage",
"airport",
"pier",
"gym",
// ];
// places
"alley",
"courtyard",
"hall",
"garden",
"path",
"grove",
"meadow",
"attic",
"basement",
"cellar",
"tower",
"chapel",
"crypt",
"barn",
"shed",
"porch",
"veranda",
"balcony",
"clearing",
"bridge",
"tunnel",
"cavern",
"chamber",
"den",
"hearth",
"threshold",
"terrace",
"spire",
"ledge",
"archway",
// people
"apprentice",
"aunt",
"beggar",
"brother",
"butcher",
"bystander",
"caretaker",
"child",
"clerk",
"driver",
"father",
"fisherman",
"grandfather",
"grandmother",
"guide",
"librarian",
"mechanic",
"merchant",
"monk",
"mother",
"nephew",
"niece",
"nurse",
"orphan",
"patient",
"priest",
"prophet",
"rider",
"scholar",
"singer",
"sister",
"soldier",
"stranger",
"tailor",
"teacher",
"thief",
"traveler",
"uncle",
"vendor",
"watchman",
"widow",
// body parts
"ankle",
"ankles",
"arm",
"armpit",
"armpits",
"arms",
"back",
"bone",
"bones",
"breath",
"claw",
"claws",
"chest",
"crotch",
"ear",
"ears",
"elbow",
"elbows",
"eye",
"eyes",
"face",
"feet",
"finger",
"fingernail",
"fingernails",
"fingers",
"foot",
"groin",
"hair",
"hairs",
"hand",
"hands",
"head",
"heart",
"knee",
"knees",
"laugh",
"leg",
"legs",
"mouth",
"nail",
"nails",
"neck",
"nose",
"palm",
"palms",
"pore",
"pores",
"pulse",
"scar",
"shadow",
"shoulder",
"shoulders",
"skin",
"spine",
"teeth",
"toe",
"toenail",
"toenails",
"toes",
"tongue",
"tooth",
"torso",
"trunk",
"voice",
"vertebrae",
"wrist",
"wrists",
"step",
"touch",
"grip",
"sigh",
"blink",
];
})();