var yearOne = 2010; // *
var wordStart = new Array(new Date(yearOne, 7, 30, 1, 1, 1, 1), new Date(yearOne + 1, 0, 3, 1, 1, 1, 1));
var firstSat = new Array(2, 1); // *
/*********************************/
var today = new Date();
var yearI = (today.getFullYear() == yearOne) ? 0 : 1;
var words = new Array(
"utopia (n)",
"garrulous (adj)",
"didactic (adj)",
"stoic (adj)",
"parody (n)",
"",
"antithesis (n)",
"anecdote (n)",
"",
"chronological (adj)",
"antipathy (n)",
"",
"antecedent (n)",
"abridge (v)",
"colloquial (adj)",
"etymology (n)",
"accost (v)",
"archetypal (adj)",
"bias (n)",
"chronicle (n, v)",
"disparage (v)",
"pejorative (adj)",
"bard (n)",
"tone (n)",
"myriad (adj)",
"veracity (n)",
"acute (adj)",
"paradigm (n)",
"commodious (adj)",
"circuitous (adj)",
"obtuse (adj)",
"conundrum (n)",
"refute (v)",
"continuity (n)",
"",
"correlation (n)",
"derivation (n)",
"postulate (n)",
"tangent (adj)",
"transversal (n)",
"validity (adj)",
"variance (n)",
"vector (n)",
"velocity (n)",
"",
"pervasive (adj)",
"",
"benign (adj)",
"efface (v)",
"solvent (n)",
"innocuous (adj)",
"debunk (v)",
"transient (adj)",
"mercurial (adj)",
"anomaly (n)",
"coagulate (v)",
"calibrate (v)",
"caustic (adj)",
"bereft (adj)",
"zephyr (n)",
"",
"",
"",
"",
"",
"maelstrom (n)",
"panacea (n)",
"juxtaposition (n)",
"swarthy (adj)",
"vociferous (adj)",
"hackneyed (adj)",
"facade (n)",
"serene (adj)",
"approbation (n)",
"novice (n)",
"ephemeral (adj)",
"banal (adj)",
"ornate (adj)",
"augment (v)",
"aesthetic (adj)",
"cacophony (n)",
"accentuate (v)",
"cadence (n)",
"",
"",
"",
"",
"",
"",
"",
"",
"tenable (adj)",
"languid (adj)",
"chastise (v)",
"cerebral (adj)",
"sedentary (adj)",
"vapid (adj)",
"insidious (adj)",
"carouse (v)",
"balk (v)",
"leisure (n)",
"",
"adept (adj)",
"ebullient (adj)",
"alacrity (n)",
"zealous (adj)",
"",
"",
"autonomous (adj)",
"interval (n)",
"static (adj)",
"exertion (n)",
"archaic (adj)",
"inflection (n)",
"dictation (n)",
"emphasis (n)",
"nuance (n)",
"enunciate (v)",
"euphemism (n)",
"dialect (n)",
"colloquial (adj)",
"vernacular (n)",
"culture (n)",
"heritage (n)",
"ancestor (n)",
"solemnity (n)",
"",
"linguistics (n)",
"etymology (n)",
"syntax (n)",
"lexicon (n)",
"conjugate (v)",
"destitute (adj)",
"remiss (v)",
"incumbent (n)",
"chide (v)",
"blandish (v)",
"condone (v)",
"abscond (v)",
"disaffect (adj)",
"censure (v or n)",
"exonerate (v)",
"coup (n)",
"reprobate (adj)",
"culpable (adj)",
"obstinate (adj)",
"atone (v)",
"cognizant (adj)",
"clemency (n)",
"clandestine (adj)",
"iconoclast (n)",
"sovereign (n)",
"penitent (adj)",
"coerce (v)",
"clergy (n)",
"predict (v)",
"analyze (v)",
"conclude (v)",
"classify (v)",
"interpret (v)",
"hypothesize (v)",
"incorporate (v)",
"categorize (v)",
"except (n)",
"evaluate (v)",
"documentation (n)",
"",
"",
"",
"",
"",
"",
"synthesize (v)",
"appropriate (adj)",
"critical (adj)",
"summarize (v)",
"suggest (adj)",
"repetition (n)",
"revision (n)",
"style (n)",
"unique (adj)",
"context (n)",
"elaborate (v)",
"logical (adj)",
"justify (v)",
"allocate (v)",
"",
"",
"",
"",
"",
"emollient (n)",
"vicarious (adj)",
"assuage (v)",
"financial (adj)",
"punctual (adj)",
"",
"frugal (adj)",
"Acquiesce (adj)",
"Expunge (v)",
"Accolade (n)",
""
);
var defs = new Array(
'an imaginary and remote place of perfection',
'talkative, wordy',
'intended to instruct',
'unaffected by passion or feeling',
'a mocking imitation',
'',
'the absolute opposite',
'a short humorous account',
'',
'arranged in order of time',
'a strong dislike, repugnance',
'',
'something that came before',
'to cut down, shorten',
'characteristic of informal conversation',
'the history of words, their origin, and development',
'to confront verbally',
'the most representative or typical example',
'a tendency, inclination, prejudice',
'1)a written history 2)to write history',
'to criticize or speak ill of',
'derogatory, uncomplimentary',
'a poet, often a singer as well',
'style or manner of expression in speaking or writing',
'consisting of a great number',
'truthfulness, accuracy',
'sharp, severe',
'an example that is a perfect model',
'roomy, spacious',
'roundabout',
'lacking quickness of sensibility/intellect',
'puzzle, problem',
'to prove wrong',
'uninterrupted connection, succession',
'',
'a relation existing between variables that vary',
'development of a theorem',
'a proposition that requires no proof',
'in immediate physical contact, touching',
'a line intersecting two or more lines',
'correctly inferred or deduced from a premise',
'a difference; a discrepancy',
'a quality completely specified by a magnitude and direction',
'the rate of speed with which something happens, rapidity or action or reaction',
'',
'having the tendency to spread throughout',
'',
'favorable, not threatening, mild',
'to wipe out, obliterate, rub away',
'a substance in which other substances are disolved',
'harmless, inoffensive',
'to expose the falseness of something',
'passing into and out of existence; passing through briefly',
'rapid change or moodiness',
'something that does not fit into the normal order',
'to thicken, clot',
'to set, standardize',
'bitter, biting, acidic',
'devoid of, without',
'a gentle breeze',
'',
'',
'',
'',
'',
'a destructive whirlpool that rapidly sucks in objects',
'a remedy for all ills or difficulties',
'the act of placing 2 things next to each other for comparison',
'of dark color or complexion',
'loud, unrestrained',
'unoriginal, trite',
'the wall of a building; a deceptive appearance or attitude',
'calm, untroubled',
'praise',
'a beginner, someone without training or experience',
'short-lived, fleeting',
'dull, commonplace',
'highly elaborate, excessively decorated',
'to add to, expand',
'artistic, relate to the appreciation of beauty',
'tremendous noise, disharmonious sound',
'to stress, highlight',
'a rhythm, progression of sound',
'',
'',
'',
'',
'',
'',
'',
'',
'able to be defended',
'lacking in energy, moving slowly',
'to punish or scold somebody',
'relating to or involving the brain or its parts',
'involving very little exercise; sitting mostly still',
'dull, lacking interest or liveliness',
'slowly and subtly destructive',
'to party, celebrate',
'to stop suddenly and refuse to go on',
'free time, time with no obligations',
'',
'skillful: highly proficient',
'full of cheerful excitement or enthusiasm',
'promptness or eager and speedy readiness',
'actively and unreservedly enthusiastic',
'',
'',
'able to make decisions and act on them as a free and independent moral agent',
'a period of time between one event and the next',
'not moving or changing, or fixed in position',
'strenuous',
'outdated',
'alliteration in the pitch or tone of voice',
'the act of speaking for record',
'forcefulness in expression to show importance',
'a subtle difference in meaning',
'to pronounce accurately, articulate',
'an inoffensive phrase substituted for one considered',
'regional vocabulary differing in pronunciation',
'informal, specific phrases unique to a group or place',
'standard native language of a country',
'the totality of beliefs, tradition, thoughts, etc of a group of people',
'beliefs, traditions passed down through generations',
'a person from whom you have descended',
'quality of being at peace',
'',
'the study of the nature of human speech',
'the origin of and development of language',
'the rules of forming grammatical sentences',
'a stock or list of words, a dictionary',
'to inflect verbs in all forms',
'utterly lacking, devoid of, impoverished',
'negligent, failing to take care of',
'one who holds on office',
'to voice disapproval',
'to coax by using flattery',
'to pardon, to deliberately overlook',
'to sneak away and hide',
'rebellious, resentful of authority',
'1)to formally reprimand 2)harsh criticism',
'to free from guilt or blame',
'a brilliant unexpected act, the ousting of a government by force',
'evil, unprincipled',
'deserving of blame',
'stubborn, not easily yielding',
'to repent, to make amends',
'aware, mindful or conscious of',
'mercy',
'secret, unknown to others',
'one who attacks common beliefs or institutions',
'one who has supreme authority, a ruler',
'feeling remorse for one’s sins',
'to force someone into doing something against their will',
'members of Christian holy orders',
'to state something unknown in advance',
'to separate into parts or principles to determine the nature of the whole',
'to bring to an end, to close',
'to organize or arrange by class or category',
'to explain the meaning of, to construe',
'to make a tentative explanation based on testable facts',
'to include by uniting things together',
'to organize based on a specific system',
'a passage or segment taken from a larger work',
'to examine and judge carefully, to appraise',
'collected materials or proof of material use',
'',
'',
'',
'',
'',
'',
'to form or create a new product',
'suitable for a particular condition or occasion',
'inclined to judge severely and find fault',
'presenting the substance of a large work in a condensed form',
'to mention or introduce for consideration',
'the act of repeating or reiterating',
'the act of editing to correct or alter',
'features of a literary composition dealing with expression',
'not typical, existing as the sole example of',
'the manner in which a word is meant based on sentence clues.',
'to add details to, expand; to develop to perfection',
'reasonable, to be expected',
'to uphold or defend as warranted or well-grounded',
'to set apart for a particular purpose; to assign or allot',
'',
'',
'',
'',
'',
'a lotion or salve to calm or soothe',
'performed or exercised in place of another person',
'to make milder, less severe, to ease or relieve',
'of or relating to money matters',
'not late; prompt',
'',
'sparing; not wasteful',
'submit without protest',
'to wipe out or destroy',
'an award or honor',
''
);
function julianDate(d) // day of year. Not really a julian date
{
var onejan = new Date(d.getFullYear(), 0, 1);
return Math.ceil((d - onejan) / 86400000);
}
function weekNum(d)
{
var onejan = new Date(d.getFullYear(), 0, 1);
return Math.ceil((((d - onejan) / 86400000) + onejan.getDay() + 1) / 7);
}
function wordNumber(d) // index in array for date d, accounting for weekends
{
var daynum = julianDate(d);
if(d.getFullYear() == yearOne)
{
var weeks = weekNum(d) - weekNum(wordStart[0]);
return daynum - weeks * 2;
}
var weeks = weekNum(d) - weekNum(wordStart[1]);
var weeksLast = 52 - weekNum(wordStart[0]);
return daynum - weeks * 2 + wordNumber(new Date(yearOne, 11, 31));
}
function wordoftheday(d) // returns the word of the day for the date d
{
var w = words[wordNumber(d) - wordNumber(wordStart[0])];
if(w == "")
return "No Word of the Day for today";
else
return w;
}
function defoftheday(d)
{
var de = defs[wordNumber(d) - wordNumber(wordStart[0])];
if(de == "")
return "";
else
return de;
}
function openMonth(m) // expands a month in the archive
{
document.getElementById(m + "").style.display = (document.getElementById(m + "").style.display == "none") ? "block" : "none";
}
function archive() // displays the archive for all words up to current date
{
var months = new Array("January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
var d = new Date(wordStart[0].getFullYear(), wordStart[0].getMonth(), wordStart[0].getDate(), 1, 1, 1);
var oldMonth = wordStart[0].getMonth() - 1;
var modifier = (today.getFullYear() == yearOne + 1) ? 365 : 0;
for(var i = julianDate(wordStart[0]); i <= julianDate(today) + modifier; i++)
{
if(d.getMonth() != oldMonth)
{
document.write('');
var open = "openMonth(" + d.getMonth() + ")";
document.write("" + months[d.getMonth()].toUpperCase() + "
");
document.write('
' + defoftheday(d) + '
'); d.setDate(d.getDate() + 1); } document.getElementById("" + today.getMonth()).style.display = "block"; } function daysUntil(d) { return Math.floor((d.getTime() - (new Date()).getTime()) / 86400000) + 1; }