From 04dbed2c1141df043e8d9432211ba11028f451fc Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 27 Nov 2018 22:21:02 -0500 Subject: [PATCH] Add medium word list. --- src/generator.js | 6 +- src/index.html | 2 +- src/words/2048.js | 6 +- src/words/4096.js | 2050 ++++++++++++++++++++++++++++++++++++++++++++ src/words/index.js | 3 +- tests/words.js | 3 +- 6 files changed, 2063 insertions(+), 7 deletions(-) create mode 100644 src/words/4096.js diff --git a/src/generator.js b/src/generator.js index 62efcb8..e8da861 100644 --- a/src/generator.js +++ b/src/generator.js @@ -3,7 +3,7 @@ const digits = '0123456789' const symbols = '`~!@#$%^&*()_+-=,./<>?;:|' function getWordList (name) { - if (['small'].includes(name)) { + if (['small', 'medium'].includes(name)) { return words[name] } throw new Error(`Invalid word list: ${name}`) @@ -59,3 +59,7 @@ function computeBits (options) { return wordBits * options.count + capsBits + symbolBits + digitBits } + +module.exports = { + getWordList, getWords, capitalize, generate, lengthBits, computeBits +} diff --git a/src/index.html b/src/index.html index 07ee17d..436e630 100644 --- a/src/index.html +++ b/src/index.html @@ -57,7 +57,7 @@
diff --git a/src/words/2048.js b/src/words/2048.js index 06e664d..b49fc15 100644 --- a/src/words/2048.js +++ b/src/words/2048.js @@ -521,7 +521,6 @@ module.exports = [ 'dreadful', 'dream', 'dress', - 'drew', 'drink', 'drive', 'drop', @@ -696,7 +695,6 @@ module.exports = [ 'flat', 'fleet', 'flesh', - 'flew', 'flight', 'flood', 'floor', @@ -790,6 +788,7 @@ module.exports = [ 'governor', 'grace', 'gracious', + 'grade', 'grain', 'grant', 'grasp', @@ -801,7 +800,6 @@ module.exports = [ 'great', 'greek', 'green', - 'grew', 'grey', 'grief', 'gross', @@ -1091,6 +1089,7 @@ module.exports = [ 'medium', 'meet', 'melancholy', + 'melt', 'member', 'memory', 'mental', @@ -1844,6 +1843,7 @@ module.exports = [ 'thunder', 'thus', 'tide', + 'tilde', 'till', 'time', 'tiny', diff --git a/src/words/4096.js b/src/words/4096.js new file mode 100644 index 0000000..46c1779 --- /dev/null +++ b/src/words/4096.js @@ -0,0 +1,2050 @@ +module.exports = require('./2048').concat( + 'abandon', + 'abbey', + 'abide', + 'aboard', + 'abominable', + 'abrupt', + 'abstract', + 'abundance', + 'abundant', + 'abuse', + 'abyss', + 'accent', + 'acceptable', + 'acceptance', + 'accessible', + 'accidental', + 'accommodation', + 'accomplish', + 'accomplishment', + 'accord', + 'accuracy', + 'accurate', + 'accusation', + 'accuse', + 'achieve', + 'achievement', + 'acid', + 'acknowledge', + 'acquire', + 'acre', + 'actor', + 'acute', + 'adequate', + 'adjacent', + 'admiral', + 'admire', + 'admission', + 'adopt', + 'adoption', + 'adversary', + 'advocate', + 'afar', + 'affect', + 'affectionate', + 'affliction', + 'afore', + 'agency', + 'agitation', + 'agricultural', + 'agriculture', + 'akin', + 'alas', + 'ale', + 'alert', + 'alien', + 'allegiance', + 'alliance', + 'allowance', + 'allusion', + 'ally', + 'aloft', + 'alongside', + 'alter', + 'alteration', + 'alternate', + 'alternative', + 'amazement', + 'ambassador', + 'ambitious', + 'amiable', + 'amidst', + 'ammunition', + 'ample', + 'amuse', + 'analysis', + 'anchor', + 'angle', + 'anguish', + 'announce', + 'annoyance', + 'anonymous', + 'anticipation', + 'antique', + 'antiquity', + 'anyway', + 'apology', + 'apparatus', + 'appetite', + 'applause', + 'apple', + 'appointment', + 'appreciate', + 'appreciation', + 'apprehension', + 'approbation', + 'appropriate', + 'approval', + 'approve', + 'apron', + 'arbitrary', + 'arch', + 'architecture', + 'ardent', + 'area', + 'argue', + 'aristocracy', + 'aristocratic', + 'ark', + 'armour', + 'arrange', + 'array', + 'arrest', + 'arrow', + 'artificial', + 'artillery', + 'artistic', + 'ascend', + 'ascent', + 'ascertain', + 'ashore', + 'assault', + 'assembly', + 'assent', + 'assert', + 'assertion', + 'assistant', + 'associate', + 'association', + 'assumption', + 'assurance', + 'asterisk', + 'attachment', + 'attain', + 'attendance', + 'attendant', + 'attentive', + 'attire', + 'attorney', + 'attract', + 'attraction', + 'attractive', + 'attribute', + 'audible', + 'avenue', + 'aversion', + 'await', + 'awe', + 'awhile', + 'awkward', + 'axe', + 'background', + 'backwards', + 'baggage', + 'baker', + 'balcony', + 'banker', + 'banner', + 'banquet', + 'barbarous', + 'bargain', + 'bark', + 'barrel', + 'barren', + 'barrier', + 'basin', + 'basket', + 'bath', + 'beach', + 'beam', + 'bedroom', + 'bedside', + 'bee', + 'beef', + 'beer', + 'beforehand', + 'beggar', + 'behave', + 'behaviour', + 'bench', + 'benevolence', + 'benevolent', + 'beseech', + 'bestow', + 'bet', + 'betray', + 'billion', + 'binary', + 'birthday', + 'bishop', + 'bite', + 'blade', + 'blank', + 'blanket', + 'blast', + 'blaze', + 'bliss', + 'block', + 'bloody', + 'bloom', + 'blossom', + 'blown', + 'blush', + 'boil', + 'bolt', + 'bond', + 'bondage', + 'bone', + 'bonnet', + 'boot', + 'border', + 'borrow', + 'bother', + 'boundary', + 'bowl', + 'boyhood', + 'boyish', + 'brandy', + 'bravery', + 'breach', + 'breadth', + 'breathe', + 'breathless', + 'breed', + 'brick', + 'bridle', + 'brigade', + 'brighter', + 'brisk', + 'bronze', + 'brook', + 'brows', + 'brush', + 'brutal', + 'brute', + 'bud', + 'buffalo', + 'bulk', + 'bull', + 'bullet', + 'bunch', + 'bundle', + 'burial', + 'bury', + 'bush', + 'butler', + 'cab', + 'cabinet', + 'cable', + 'cage', + 'cake', + 'calamity', + 'calculate', + 'calf', + 'candidate', + 'candle', + 'cane', + 'cannon', + 'canoe', + 'canst', + 'captive', + 'captivity', + 'capture', + 'careless', + 'cargo', + 'carpet', + 'cart', + 'carter', + 'cash', + 'casual', + 'catastrophe', + 'cathedral', + 'caution', + 'cautious', + 'celestial', + 'cell', + 'cellar', + 'censure', + 'center', + 'certainty', + 'challenge', + 'champagne', + 'champion', + 'channel', + 'chap', + 'chapel', + 'chariot', + 'chase', + 'cheap', + 'cheer', + 'cheese', + 'chemical', + 'chicken', + 'childish', + 'chimney', + 'chivalry', + 'choir', + 'chorus', + 'cigar', + 'cigarette', + 'circuit', + 'circular', + 'circulation', + 'citizen', + 'civilisation', + 'clad', + 'classic', + 'clause', + 'clay', + 'clergy', + 'clergyman', + 'cliff', + 'climate', + 'closet', + 'clumsy', + 'coachman', + 'coal', + 'coarse', + 'code', + 'coffin', + 'coin', + 'collar', + 'collect', + 'colonel', + 'colonial', + 'colony', + 'column', + 'combat', + 'combination', + 'comedy', + 'comic', + 'commence', + 'commencement', + 'comment', + 'commit', + 'committee', + 'commonplace', + 'communicate', + 'communion', + 'compact', + 'companionship', + 'comparative', + 'compare', + 'compass', + 'compassion', + 'compel', + 'compensation', + 'competent', + 'competition', + 'compilation', + 'complaint', + 'complex', + 'complexion', + 'compliment', + 'compose', + 'composure', + 'compound', + 'comprehend', + 'comprehension', + 'comprehensive', + 'compromise', + 'comrade', + 'con', + 'conceive', + 'concept', + 'concert', + 'conclude', + 'condemn', + 'conference', + 'confession', + 'confident', + 'confidential', + 'confinement', + 'confirm', + 'confirmation', + 'congregation', + 'conjecture', + 'conqueror', + 'consequential', + 'conservative', + 'consist', + 'consistent', + 'consolation', + 'conspicuous', + 'conspiracy', + 'consternation', + 'constitute', + 'consul', + 'consult', + 'consultation', + 'consumption', + 'contemplation', + 'contemporary', + 'contest', + 'continent', + 'continual', + 'continuance', + 'continuous', + 'contract', + 'contradiction', + 'contribute', + 'contribution', + 'controversy', + 'convenience', + 'convenient', + 'convent', + 'convention', + 'converse', + 'conversion', + 'convert', + 'convince', + 'copper', + 'cordial', + 'corporation', + 'corps', + 'corpse', + 'correspondence', + 'correspondent', + 'corridor', + 'corruption', + 'costume', + 'couch', + 'counter', + 'countess', + 'countless', + 'courteous', + 'courtesy', + 'courtyard', + 'covenant', + 'cow', + 'crack', + 'cradle', + 'craft', + 'crash', + 'crazy', + 'cream', + 'creed', + 'creek', + 'creep', + 'crest', + 'crimson', + 'crisis', + 'crop', + 'crow', + 'crude', + 'cruelty', + 'crush', + 'crust', + 'crystal', + 'cultivate', + 'cultivation', + 'culture', + 'curtain', + 'curve', + 'customary', + 'dagger', + 'dainty', + 'daisy', + 'dame', + 'damp', + 'damsel', + 'darker', + 'dash', + 'data', + 'daybreak', + 'daylight', + 'deaf', + 'dealt', + 'dean', + 'debate', + 'deceive', + 'decent', + 'decisive', + 'declaration', + 'decline', + 'decree', + 'deductible', + 'deem', + 'deer', + 'defect', + 'defense', + 'deference', + 'defiance', + 'definition', + 'delete', + 'deliberate', + 'delicacy', + 'delicious', + 'delivery', + 'democracy', + 'democratic', + 'demon', + 'demonstration', + 'den', + 'dense', + 'depart', + 'department', + 'dependent', + 'deposit', + 'depression', + 'deprive', + 'derivative', + 'descend', + 'descent', + 'deserve', + 'desirable', + 'desirous', + 'desolate', + 'desolation', + 'despatch', + 'despise', + 'despite', + 'destination', + 'destiny', + 'destitute', + 'destructive', + 'detach', + 'detachment', + 'detect', + 'detective', + 'develop', + 'device', + 'devote', + 'devout', + 'dew', + 'dialogue', + 'diameter', + 'diamond', + 'diet', + 'differ', + 'dig', + 'diligence', + 'dine', + 'diplomatic', + 'director', + 'dirt', + 'disagreeable', + 'disappear', + 'disappearance', + 'disaster', + 'disastrous', + 'discern', + 'discharge', + 'disclaim', + 'disclaimer', + 'discontent', + 'discontinue', + 'discretion', + 'discuss', + 'disdain', + 'disguise', + 'disgust', + 'dish', + 'dislike', + 'dismal', + 'dismay', + 'disorder', + 'displeasure', + 'disposal', + 'dispose', + 'dispute', + 'distrust', + 'disturb', + 'disturbance', + 'ditch', + 'divide', + 'divinity', + 'divorce', + 'document', + 'doe', + 'doll', + 'dollar', + 'dome', + 'dominion', + 'donation', + 'doom', + 'doorway', + 'dove', + 'download', + 'downstairs', + 'downward', + 'drag', + 'drama', + 'dramatic', + 'draught', + 'drawer', + 'drift', + 'driver', + 'drum', + 'duck', + 'duel', + 'duly', + 'dumb', + 'duration', + 'dusk', + 'dusty', + 'dwelt', + 'dynasty', + 'eagle', + 'earl', + 'earn', + 'easier', + 'eastward', + 'echo', + 'economic', + 'economy', + 'ecstasy', + 'edifice', + 'edit', + 'editor', + 'effective', + 'efficiency', + 'efficient', + 'egg', + 'eighth', + 'eighty', + 'elbow', + 'eldest', + 'elect', + 'electric', + 'electricity', + 'elegance', + 'elegant', + 'elephant', + 'elevation', + 'eloquence', + 'eloquent', + 'embrace', + 'emergency', + 'eminence', + 'eminent', + 'emphasis', + 'employ', + 'employee', + 'employer', + 'encounter', + 'encourage', + 'encouragement', + 'endeavour', + 'endless', + 'endurance', + 'energetic', + 'enforce', + 'engage', + 'engine', + 'engineer', + 'entertain', + 'entertainment', + 'enthusiastic', + 'entity', + 'entreat', + 'entry', + 'envelope', + 'environment', + 'envy', + 'episode', + 'epoch', + 'equality', + 'era', + 'erect', + 'errand', + 'escort', + 'especial', + 'essay', + 'essence', + 'establish', + 'esteem', + 'estimation', + 'eternity', + 'eve', + 'everyone', + 'evolution', + 'exceed', + 'excellence', + 'excess', + 'excessive', + 'excite', + 'exclamation', + 'exclusion', + 'exclusive', + 'excursion', + 'execute', + 'executive', + 'exempt', + 'exertion', + 'exhibit', + 'exhibition', + 'exile', + 'expectation', + 'expedient', + 'expend', + 'expenditure', + 'expensive', + 'experiment', + 'expert', + 'explanatory', + 'explosion', + 'expose', + 'exposure', + 'expressive', + 'extend', + 'extension', + 'extinct', + 'extra', + 'extract', + 'extravagant', + 'extremity', + 'facility', + 'factor', + 'factory', + 'faculty', + 'fairy', + 'falsehood', + 'familiarity', + 'famine', + 'fan', + 'fantastic', + 'fare', + 'fascination', + 'fashionable', + 'faster', + 'fatigue', + 'favourable', + 'feather', + 'feature', + 'federal', + 'feminine', + 'fence', + 'fertile', + 'festival', + 'fetch', + 'feverish', + 'fewer', + 'fiction', + 'fidelity', + 'fiery', + 'fifth', + 'financial', + 'finer', + 'fireplace', + 'fist', + 'flank', + 'flatter', + 'flattery', + 'flee', + 'flint', + 'float', + 'flock', + 'flora', + 'flour', + 'flourish', + 'fluid', + 'flush', + 'foam', + 'fog', + 'fold', + 'foliage', + 'forbid', + 'forbidden', + 'foreigner', + 'foremost', + 'fork', + 'formation', + 'formidable', + 'forthwith', + 'fortnight', + 'fortress', + 'foster', + 'foul', + 'founder', + 'fountain', + 'fourteen', + 'fox', + 'fragment', + 'fragrance', + 'fragrant', + 'frail', + 'frantic', + 'fraud', + 'fright', + 'frighten', + 'frontier', + 'frost', + 'frown', + 'frozen', + 'fuel', + 'fugitive', + 'fuller', + 'function', + 'fundamental', + 'funeral', + 'funny', + 'fur', + 'furious', + 'furnace', + 'furnish', + 'gaiety', + 'gale', + 'gallery', + 'gallop', + 'gang', + 'garment', + 'garrison', + 'generosity', + 'genial', + 'genus', + 'ghost', + 'gigantic', + 'git', + 'glare', + 'gleam', + 'glimpse', + 'globe', + 'goal', + 'goat', + 'goddess', + 'goose', + 'gorgeous', + 'gossip', + 'gotten', + 'govern', + 'gown', + 'gradual', + 'grammar', + 'grandfather', + 'grandmother', + 'grandson', + 'granite', + 'gratification', + 'gratify', + 'gravel', + 'gravity', + 'greet', + 'gregory', + 'grieve', + 'grievous', + 'grim', + 'grin', + 'grip', + 'groan', + 'grotesque', + 'grove', + 'guardian', + 'guidance', + 'guilt', + 'gulf', + 'guy', + 'habitation', + 'habitual', + 'hail', + 'halt', + 'hammer', + 'handkerchief', + 'harbour', + 'hardy', + 'harness', + 'harp', + 'harsh', + 'harvest', + 'hasten', + 'hasty', + 'haughty', + 'hay', + 'hazard', + 'header', + 'headquarter', + 'healthy', + 'heap', + 'hearth', + 'hearty', + 'heavier', + 'hedge', + 'heed', + 'heel', + 'heir', + 'helm', + 'helmet', + 'henceforth', + 'hereafter', + 'hereditary', + 'heretofore', + 'heroic', + 'hesitate', + 'hesitation', + 'hideous', + 'highway', + 'hinder', + 'hint', + 'hire', + 'historian', + 'historic', + 'hoarse', + 'holiday', + 'homage', + 'homer', + 'homeward', + 'honesty', + 'honey', + 'honourable', + 'hook', + 'hopeless', + 'horn', + 'horrid', + 'horseback', + 'hospitable', + 'hospitality', + 'hostess', + 'hostile', + 'hostility', + 'housekeeper', + 'hue', + 'humiliation', + 'humility', + 'humor', + 'humorous', + 'hunter', + 'hush', + 'hut', + 'hypertext', + 'hypothesis', + 'icy', + 'identical', + 'identification', + 'identify', + 'identity', + 'idol', + 'illness', + 'illusion', + 'illustrate', + 'illustration', + 'illustrious', + 'imaginary', + 'imitate', + 'imitation', + 'immortal', + 'immortality', + 'impatience', + 'impatient', + 'imperfect', + 'imperial', + 'import', + 'impose', + 'impossibility', + 'impress', + 'impressive', + 'imprisonment', + 'improbable', + 'improve', + 'improvement', + 'inaccurate', + 'inasmuch', + 'incapable', + 'incense', + 'incessant', + 'inclination', + 'income', + 'incomplete', + 'inconvenience', + 'incredible', + 'indebted', + 'indemnify', + 'indication', + 'indignant', + 'indispensable', + 'induce', + 'indulge', + 'indulgence', + 'industrial', + 'industrious', + 'infamous', + 'infancy', + 'infant', + 'infantry', + 'infernal', + 'inform', + 'infringement', + 'ingenious', + 'ingenuity', + 'inheritance', + 'iniquity', + 'injure', + 'injurious', + 'injustice', + 'ink', + 'inland', + 'innocence', + 'innumerable', + 'inquire', + 'insane', + 'inscription', + 'insensible', + 'insight', + 'insignificant', + 'insist', + 'insolence', + 'insolent', + 'inspection', + 'inspiration', + 'inspire', + 'institution', + 'insult', + 'insurrection', + 'integrity', + 'intelligible', + 'intend', + 'intensity', + 'intent', + 'interfere', + 'interference', + 'internal', + 'international', + 'interpretation', + 'interruption', + 'interval', + 'intimacy', + 'intolerable', + 'introduce', + 'invalid', + 'invasion', + 'invention', + 'investigation', + 'invisible', + 'invite', + 'inward', + 'irony', + 'irregular', + 'irresistible', + 'irritation', + 'ivory', + 'jacket', + 'jail', + 'jar', + 'jaw', + 'jersey', + 'jest', + 'joint', + 'joke', + 'jolly', + 'journal', + 'joyous', + 'judicial', + 'juice', + 'jump', + 'jungle', + 'jurisdiction', + 'jury', + 'justification', + 'justify', + 'keeper', + 'kick', + 'kid', + 'kin', + 'kindred', + 'knives', + 'knock', + 'knot', + 'lace', + 'ladder', + 'laden', + 'lamb', + 'lame', + 'lance', + 'landscape', + 'lantern', + 'lap', + 'lapse', + 'latest', + 'latitude', + 'lawn', + 'lazy', + 'league', + 'lean', + 'leap', + 'learnt', + 'leather', + 'lecture', + 'legend', + 'legislation', + 'legislative', + 'legislature', + 'legitimate', + 'lend', + 'liable', + 'lieutenant', + 'lifetime', + 'lighter', + 'likeness', + 'limb', + 'lime', + 'limit', + 'linen', + 'link', + 'lion', + 'lip', + 'liquid', + 'liquor', + 'load', + 'loan', + 'locality', + 'lock', + 'lodge', + 'log', + 'logic', + 'lordship', + 'louder', + 'loyal', + 'loyalty', + 'lucky', + 'luminous', + 'lump', + 'lunch', + 'luncheon', + 'luxurious', + 'luxury', + 'machinery', + 'madam', + 'madame', + 'madness', + 'magazine', + 'magistrate', + 'magnificence', + 'magnitude', + 'mail', + 'maintenance', + 'majestic', + 'majesty', + 'major', + 'malice', + 'malicious', + 'management', + 'manager', + 'manifest', + 'mansion', + 'mantle', + 'manual', + 'manufacture', + 'manuscript', + 'map', + 'mare', + 'margin', + 'marine', + 'marquis', + 'martial', + 'marvel', + 'marvellous', + 'masculine', + 'mask', + 'mason', + 'massive', + 'mate', + 'max', + 'maximum', + 'maybe', + 'meadow', + 'meantime', + 'meanwhile', + 'medical', + 'medicine', + 'meditation', + 'melody', + 'memorable', + 'mercury', + 'mess', + 'mild', + 'militia', + 'mill', + 'miller', + 'ministry', + 'minor', + 'miracle', + 'miraculous', + 'mirror', + 'mirth', + 'mischievous', + 'missionary', + 'mist', + 'mix', + 'mixture', + 'mob', + 'mock', + 'model', + 'moderate', + 'moderation', + 'modest', + 'modification', + 'modify', + 'moist', + 'moisture', + 'momentary', + 'monarch', + 'monarchy', + 'monastery', + 'monk', + 'monkey', + 'monotonous', + 'monster', + 'monstrous', + 'monument', + 'moonlight', + 'moor', + 'morality', + 'morrow', + 'moss', + 'motionless', + 'motor', + 'mould', + 'mount', + 'mouse', + 'muddy', + 'mule', + 'murderer', + 'murmur', + 'muscle', + 'mute', + 'mystic', + 'nail', + 'naught', + 'naval', + 'navigation', + 'navy', + 'neat', + 'needle', + 'negative', + 'neglect', + 'negotiation', + 'neighbour', + 'nephew', + 'nerve', + 'nest', + 'net', + 'network', + 'neutral', + 'newsletter', + 'nick', + 'niece', + 'nigh', + 'nineteen', + 'nineteenth', + 'nobility', + 'nod', + 'noisy', + 'nonsense', + 'northward', + 'notable', + 'notorious', + 'novelty', + 'nowadays', + 'nowhere', + 'nursery', + 'oak', + 'obedient', + 'objection', + 'obligation', + 'oblige', + 'obscure', + 'obscurity', + 'observer', + 'obsolete', + 'obstacle', + 'obstinate', + 'occupy', + 'occurrence', + 'odious', + 'odour', + 'offence', + 'offend', + 'offensive', + 'olive', + 'onward', + 'opera', + 'opponent', + 'oppose', + 'oppression', + 'orange', + 'orator', + 'orchard', + 'organ', + 'organic', + 'originator', + 'ornament', + 'orthodox', + 'outfit', + 'outline', + 'outrage', + 'oven', + 'overhead', + 'overthrow', + 'pacific', + 'pack', + 'packet', + 'paint', + 'painter', + 'palm', + 'pamphlet', + 'pan', + 'panic', + 'paperwork', + 'parade', + 'parallel', + 'parcel', + 'parent', + 'parish', + 'park', + 'parliament', + 'parlour', + 'parson', + 'partial', + 'partner', + 'passenger', + 'passive', + 'pasture', + 'pat', + 'patch', + 'patent', + 'pathetic', + 'patriot', + 'patriotic', + 'patriotism', + 'patron', + 'pattern', + 'pavement', + 'payable', + 'peasant', + 'penalty', + 'pencil', + 'penetrate', + 'penny', + 'pension', + 'pepper', + 'perception', + 'perchance', + 'perfume', + 'perilous', + 'periodic', + 'perish', + 'perpetual', + 'perplexity', + 'persecution', + 'persistent', + 'personage', + 'personality', + 'persuade', + 'persuasion', + 'pet', + 'petition', + 'petty', + 'phase', + 'phenomena', + 'phenomenon', + 'philosopher', + 'philosophical', + 'photograph', + 'piano', + 'picturesque', + 'pie', + 'piety', + 'pig', + 'pile', + 'pilgrimage', + 'pillar', + 'pillow', + 'pilot', + 'pin', + 'pine', + 'pink', + 'pint', + 'pious', + 'pistol', + 'pit', + 'pitch', + 'plague', + 'plane', + 'planet', + 'plantation', + 'plea', + 'pledge', + 'plot', + 'pluck', + 'plunder', + 'plunge', + 'plus', + 'poetic', + 'poison', + 'pole', + 'polish', + 'polite', + 'pomp', + 'pond', + 'pony', + 'pool', + 'populace', + 'popularity', + 'porch', + 'porter', + 'posterity', + 'pot', + 'potent', + 'pound', + 'powder', + 'powerless', + 'practicable', + 'prairie', + 'preach', + 'preacher', + 'precaution', + 'precise', + 'precision', + 'preference', + 'prejudice', + 'preliminary', + 'preparation', + 'preservation', + 'president', + 'presume', + 'pretence', + 'pretend', + 'pretext', + 'prevail', + 'primary', + 'prime', + 'primitive', + 'prior', + 'probability', + 'problem', + 'procession', + 'proclaim', + 'proclamation', + 'procure', + 'prodigious', + 'product', + 'productive', + 'profitable', + 'program', + 'progressive', + 'prohibition', + 'project', + 'prominent', + 'promote', + 'promotion', + 'prompt', + 'pronounce', + 'proofread', + 'prophecy', + 'proportion', + 'proposal', + 'propose', + 'proposition', + 'proprietor', + 'propriety', + 'prose', + 'prosperous', + 'prostrate', + 'protest', + 'provincial', + 'prudence', + 'prudent', + 'pub', + 'publication', + 'publish', + 'pulpit', + 'pulse', + 'punctuation', + 'punish', + 'pupil', + 'purity', + 'purse', + 'pursue', + 'push', + 'quaint', + 'qualify', + 'quest', + 'quit', + 'quote', + 'radiance', + 'radiant', + 'rail', + 'railroad', + 'railway', + 'ranch', + 'rapidity', + 'rapture', + 'rascal', + 'rash', + 'rational', + 'rattle', + 'ravine', + 'raw', + 'ray', + 'reaction', + 'realise', + 'realm', + 'rebel', + 'rebellion', + 'reception', + 'reckless', + 'recognise', + 'recognition', + 'recollect', + 'recollection', + 'recommend', + 'recourse', + 'recover', + 'recovery', + 'rector', + 'reduce', + 'reduction', + 'refer', + 'refinement', + 'reflect', + 'reform', + 'refrain', + 'refusal', + 'reject', + 'rejoice', + 'relate', + 'relationship', + 'relieve', + 'relish', + 'reluctance', + 'rely', + 'remainder', + 'remedy', + 'remembrance', + 'remind', + 'remnant', + 'remorse', + 'removal', + 'renew', + 'repair', + 'repent', + 'repentance', + 'repetition', + 'replace', + 'reporter', + 'repose', + 'representation', + 'representative', + 'reproach', + 'republic', + 'republican', + 'requisite', + 'rescue', + 'research', + 'resemblance', + 'resemble', + 'resentment', + 'reserve', + 'resign', + 'resignation', + 'resolute', + 'resolve', + 'resort', + 'resource', + 'respective', + 'response', + 'restless', + 'restoration', + 'restore', + 'restrain', + 'restraint', + 'resume', + 'resurrection', + 'retain', + 'retire', + 'retirement', + 'reveal', + 'revelation', + 'revenue', + 'reverence', + 'reverend', + 'reverse', + 'review', + 'revolt', + 'revolutionary', + 'revolver', + 'ribbon', + 'rice', + 'richer', + 'ridden', + 'rider', + 'ridge', + 'ridicule', + 'rifle', + 'righteous', + 'rigid', + 'ripe', + 'roar', + 'rob', + 'robbery', + 'robe', + 'robin', + 'rocky', + 'rod', + 'roger', + 'romantic', + 'rosy', + 'rotten', + 'rouse', + 'rub', + 'rugged', + 'ruler', + 'rural', + 'rustic', + 'sack', + 'sage', + 'sailor', + 'saint', + 'salary', + 'saloon', + 'salute', + 'salvation', + 'sanction', + 'sanctuary', + 'sandy', + 'satin', + 'satire', + 'sauce', + 'saviour', + 'scandal', + 'scanty', + 'scarlet', + 'scenery', + 'scent', + 'scholar', + 'scope', + 'scotch', + 'scoundrel', + 'scream', + 'screen', + 'scripture', + 'seal', + 'secondary', + 'secrecy', + 'secretary', + 'sect', + 'seize', + 'select', + 'selection', + 'selfish', + 'senate', + 'senior', + 'sensitive', + 'separation', + 'serene', + 'sergeant', + 'sermon', + 'serpent', + 'session', + 'seventeen', + 'seventh', + 'seventy', + 'severity', + 'shabby', + 'shadowy', + 'shaft', + 'shaken', + 'shallow', + 'sheer', + 'shelf', + 'shell', + 'shepherd', + 'sheriff', + 'shield', + 'shift', + 'shine', + 'shirt', + 'shoe', + 'shorter', + 'shout', + 'shower', + 'shrank', + 'shrine', + 'shrink', + 'shudder', + 'siege', + 'signature', + 'significance', + 'significant', + 'sincerity', + 'singer', + 'sinister', + 'sink', + 'sinner', + 'sir', + 'sire', + 'sixteen', + 'skeleton', + 'sketch', + 'skirt', + 'skull', + 'slaughter', + 'slay', + 'sleepy', + 'sleeve', + 'slid', + 'slim', + 'slope', + 'slumber', + 'smart', + 'smote', + 'snake', + 'snowy', + 'soap', + 'sob', + 'sober', + 'sofa', + 'solemnity', + 'solicit', + 'solicitation', + 'solitude', + 'solution', + 'sombre', + 'soup', + 'sour', + 'sovereignty', + 'sown', + 'spacious', + 'spark', + 'speaker', + 'spear', + 'specimen', + 'spectacle', + 'speculation', + 'speedy', + 'spell', + 'sphere', + 'splendour', + 'split', + 'spoil', + 'sport', + 'spray', + 'spur', + 'squadron', + 'squire', + 'stable', + 'stain', + 'staircase', + 'stake', + 'stamp', + 'stare', + 'starve', + 'statesman', + 'statue', + 'stature', + 'stead', + 'steal', + 'steam', + 'steamer', + 'steed', + 'stem', + 'steward', + 'stolen', + 'stomach', + 'stony', + 'stool', + 'stove', + 'straw', + 'stray', + 'strengthen', + 'stress', + 'stretch', + 'strict', + 'strife', + 'strip', + 'strive', + 'strove', + 'stubborn', + 'studio', + 'sturdy', + 'sublime', + 'submission', + 'subordinate', + 'subscribe', + 'subsequent', + 'substantial', + 'substitute', + 'subtle', + 'successive', + 'successor', + 'sue', + 'suffice', + 'suicide', + 'sullen', + 'summit', + 'summon', + 'sundry', + 'sunlight', + 'sunny', + 'sunrise', + 'sunset', + 'superficial', + 'superfluous', + 'supernatural', + 'superstition', + 'superstitious', + 'supposition', + 'supremacy', + 'surgeon', + 'surrender', + 'survey', + 'survive', + 'suspense', + 'suspicious', + 'sustain', + 'swallow', + 'swamp', + 'sway', + 'sweat', + 'sweep', + 'swell', + 'swim', + 'swollen', + 'sworn', + 'swung', + 'syllable', + 'symbol', + 'sympathetic', + 'synonymous', + 'tact', + 'tailor', + 'talent', + 'tame', + 'tavern', + 'team', + 'technical', + 'tedious', + 'telegram', + 'telegraph', + 'telephone', + 'temperament', + 'temperature', + 'tempest', + 'temporal', + 'temporary', + 'temptation', + 'tenth', + 'terrace', + 'terrific', + 'theme', + 'theological', + 'theology', + 'thief', + 'thieves', + 'thirst', + 'thirteen', + 'thorough', + 'thread', + 'threat', + 'threaten', + 'threshold', + 'thrice', + 'thrill', + 'throng', + 'thumb', + 'ticket', + 'tie', + 'tiger', + 'tight', + 'timber', + 'tin', + 'tip', + 'toast', + 'tobacco', + 'today', + 'token', + 'tomb', + 'tomorrow', + 'tonight', + 'topic', + 'torch', + 'torment', + 'torrent', + 'torture', + 'tough', + 'tour', + 'tract', + 'traffic', + 'tragic', + 'traitor', + 'tramp', + 'tranquil', + 'transaction', + 'transcribe', + 'transcription', + 'transfer', + 'translation', + 'transparent', + 'transport', + 'transportation', + 'trap', + 'traveller', + 'treacherous', + 'treachery', + 'tread', + 'treason', + 'treasury', + 'treatise', + 'tremble', + 'tremendous', + 'tribute', + 'trick', + 'trifle', + 'triumphant', + 'trivial', + 'troop', + 'troublesome', + 'trousers', + 'truce', + 'trumpet', + 'trunk', + 'tube', + 'tumult', + 'tune', + 'turf', + 'turkey', + 'tutor', + 'twilight', + 'typical', + 'tyranny', + 'tyrant', + 'ultimate', + 'umbrella', + 'unbroken', + 'uncertainty', + 'uncomfortable', + 'uncommon', + 'underline', + 'underneath', + 'undertake', + 'undertaken', + 'undertook', + 'undone', + 'unease', + 'uneasy', + 'unequal', + 'unfit', + 'ungrateful', + 'unique', + 'unite', + 'unity', + 'university', + 'unjust', + 'unlike', + 'unlucky', + 'unnatural', + 'unnecessary', + 'unpleasant', + 'unreasonable', + 'unseen', + 'unworthy', + 'upright', + 'upset', + 'upstairs', + 'upward', + 'urge', + 'urgent', + 'usage', + 'user', + 'utterance', + 'vacant', + 'valet', + 'valiant', + 'valour', + 'van', + 'variation', + 'vary', + 'vault', + 'vegetable', + 'vegetation', + 'vehicle', + 'vein', + 'velvet', + 'venerable', + 'vent', + 'verb', + 'verdict', + 'verge', + 'vice', + 'vicinity', + 'vicious', + 'victor', + 'victorious', + 'vigour', + 'vile', + 'villa', + 'villain', + 'vine', + 'virtuous', + 'virus', + 'vital', + 'vitality', + 'vivid', + 'void', + 'voluntary', + 'volunteer', + 'vow', + 'vulgar', + 'wagon', + 'waist', + 'waistcoat', + 'waiter', + 'wake', + 'wander', + 'warfare', + 'warlike', + 'warmth', + 'warn', + 'warrant', + 'warrior', + 'wash', + 'wax', + 'wealthy', + 'weapon', + 'weep', + 'weigh', + 'welfare', + 'westward', + 'wheat', + 'whereby', + 'wherefore', + 'whereof', + 'whip', + 'whistle', + 'whither', + 'whoever', + 'wholesome', + 'wider', + 'width', + 'wiser', + 'witch', + 'withdraw', + 'withdrawn', + 'woe', + 'woke', + 'wolf', + 'wondrous', + 'wool', + 'worm', + 'worry', + 'worthless', + 'wreck', + 'wretch', + 'wright', + 'wrist', + 'writ', + 'yacht', + 'yell', + 'yoke', + 'zealous', +) diff --git a/src/words/index.js b/src/words/index.js index ebe2ffb..0da88a5 100644 --- a/src/words/index.js +++ b/src/words/index.js @@ -1,3 +1,4 @@ module.exports = { - small: require('./2048') + small: require('./2048'), + medium: require('./4096'), } diff --git a/tests/words.js b/tests/words.js index 9987ceb..4be1c55 100644 --- a/tests/words.js +++ b/tests/words.js @@ -2,10 +2,11 @@ const assert = require('assert').strict const words = require('../src/words') describe('Word List Tests', () => { - const lists = ['small'] + const lists = ['small', 'medium'] it('length', () => { assert.equal(words.small.length, 2048, 'small list size incorrect') + assert.equal(words.medium.length, 4096, 'medium list size incorrect') }) lists.forEach(name => {