-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
48 lines (36 loc) · 24.8 KB
/
Copy pathapp.py
File metadata and controls
48 lines (36 loc) · 24.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from flask import Flask, render_template, request, redirect, url_for, jsonify
import random
vocab_list = [{'id': 1, 'word': 'Abate', 'definition': 'V. To Become Less Active, Less Intense, Or Less In Amount'}, {'id': 2, 'word': 'Abstract', 'definition': 'Adj. Existing Purely In The Mind; Not Representing Actual Reality'}, {'id': 3, 'word': 'Abysmal', 'definition': 'Adj. Extremely Bad'}, {'id': 4, 'word': 'Accordingly', 'definition': 'Adv. In Accordance With'}, {'id': 5, 'word': 'Acquisition', 'definition': 'N. The Act Of Gaining A Skill Or Possession Of Something'}, {'id': 6, 'word': 'Adapt', 'definition': 'V. To Make Suit A New Purpose\nV. To Accommodate Oneself To A New Condition, Setting, Or Situation'}, {'id': 7, 'word': 'Adept', 'definition': 'Adj. Having Knowledge Or Skill (Usu. In A Particular Area)'}, {'id': 8, 'word': 'Adequate', 'definition': 'Adj. Having Sufficient Qualifications To Meet A Specific Task Or Purpose'}, {'id': 9, 'word': 'Advent', 'definition': 'N. The Arrival Or Creation Of Something (Usu. Historic)'}, {'id': 10, 'word': 'Adversarial', 'definition': 'Adj. Relating To Hostile Opposition'}, {'id': 11, 'word': 'Advocate', 'definition': 'N. Someone Who Promotes Or Defends Something\nV. To Defend Or Promote Something (Usu. A Belief, Theory, Opinion, Etc.)'}, {'id': 12, 'word': 'Aesthetic', 'definition': 'Adj. Relating To Beauty Or Refined Taste'}, {'id': 13, 'word': 'Afford', 'definition': 'V. To Be Able To Buy\nV. To Be Able To Spare'}, {'id': 14, 'word': 'Agitate', 'definition': 'V. To Promote Something (Usu. A Cause)'}, {'id': 15, 'word': 'Allow', 'definition': 'V. To Permit Or Consent To'}, {'id': 16, 'word': 'Allude', 'definition': 'V. To Make A Secretive Mention Of Something'}, {'id': 17, 'word': 'Altercation', 'definition': 'N. A Noisy Argument Or Confrontation'}, {'id': 18, 'word': 'Ambiguous', 'definition': 'Adj. Unclear Or Vague In Meaning'}, {'id': 19, 'word': 'Ambitious', 'definition': 'Adj. Having A Powerful Desire For Success Or Achievement'}, {'id': 20, 'word': 'Ambivalence', 'definition': 'N. The State Of Being Uncertain Or Stuck Between Two Or More Options'}, {'id': 21, 'word': 'Analogous', 'definition': 'Adj. Similar But Not Identical'}, {'id': 22, 'word': 'Annihilate', 'definition': 'V. To Destroy Or Cause Devastating Destruction'}, {'id': 23, 'word': 'Anomaly', 'definition': 'N. Something Different From The Norm'}, {'id': 24, 'word': 'Anticipate', 'definition': 'V. Assume To Be Likely To Happen'}, {'id': 25, 'word': 'Antipathy', 'definition': 'N. A Strong Feeling Of Dislike'}, {'id': 26, 'word': 'Apex', 'definition': 'N. The Highest Point Of Something'}, {'id': 27, 'word': 'Apprehension', 'definition': 'N. Fearful Expectation Of Something'}, {'id': 28, 'word': 'Articulate', 'definition': 'V. To Clearly Express In Words'}, {'id': 29, 'word': 'Artificial', 'definition': 'Adj. Something Made; Not Occurring Naturally'}, {'id': 30, 'word': 'Assertion', 'definition': 'N. A Strong Declaration'}, {'id': 31, 'word': 'Austere', 'definition': 'Adj. Extremely Plain\nAdj. Stern And Forbidding\nAdj. Relating To Self-Denial'}, {'id': 32, 'word': 'Authenticity', 'definition': 'N. The Quality Of Being Real And True Instead Of Fake And Contrived'}, {'id': 33, 'word': 'Avenue', 'definition': 'N. An Intangible Path Or Approach To Something'}, {'id': 34, 'word': 'Avid', 'definition': 'Adj. Actively Interested In Or Enthusiastic About Something'}, {'id': 35, 'word': 'Basic', 'definition': 'Adj. Relating To The Foundation Or Basis Of Something'}, {'id': 36, 'word': 'Bear', 'definition': 'V. To Have As A Characteristic\nV. To Have (A Child)\nV. To Bring Forth\nV. To Put Up With'}, {'id': 37, 'word': 'Benevolent', 'definition': 'Adj. Kind, Generous'}, {'id': 38, 'word': 'Bias', 'definition': 'N. A Preconception That Prevents Objectivity'}, {'id': 39, 'word': 'Bittersweet', 'definition': 'Adj. Tinged With A Feeling Of Sadness'}, {'id': 40, 'word': 'Bolster', 'definition': 'V. To Support, Strengthen, Or Fortify'}, {'id': 41, 'word': 'Boost', 'definition': 'N. An Increase Or Growth\nV. To Increase Or Make Grow'}, {'id': 42, 'word': 'Brawl', 'definition': 'N. An Intense, Loud Fight\nV. To Fight Loudly And Disruptively'}, {'id': 43, 'word': 'Brevity', 'definition': 'N. The Quality Of Being Brief Or Terse'}, {'id': 44, 'word': 'Candid', 'definition': 'Adj. Direct, Blunt'}, {'id': 45, 'word': 'Candor', 'definition': 'N. The Trait Of Being Honest And Frank'}, {'id': 46, 'word': 'Capitalize', 'definition': 'V. To Use To Your Advantage'}, {'id': 47, 'word': 'Capture', 'definition': 'V. To Trap Or Take Possession Of\nV. To Successfully Represent Or Imitate\nV. To Captivate, Mesmerize\nV. To Catch Or Seize'}, {'id': 48, 'word': 'Civic', 'definition': 'Adj. Relating To The City Or Citizens'}, {'id': 49, 'word': 'Clinical', 'definition': 'Adj. Emotionally Unattached (Usu. Used In Medical Or Scientific Setting)'}, {'id': 50, 'word': 'Clout', 'definition': 'N. Special Advantage Or Power'}, {'id': 51, 'word': 'Coarse', 'definition': 'Adj. Indicating A Rough Texture\nAdj. Lacking Refinement Or Sophistication'}, {'id': 52, 'word': 'Coincide', 'definition': 'V. To Happen At The Same Time'}, {'id': 53, 'word': 'Commission', 'definition': 'N. The Use Of Payment To Request Something (E.G., A Service Or Product)'}, {'id': 54, 'word': 'Comparable', 'definition': 'Adj. Able To Be Compared'}, {'id': 55, 'word': 'Competent', 'definition': 'Adj. Sufficiently Qualified'}, {'id': 56, 'word': 'Complacent', 'definition': 'Adj. Satisfied, With No Desire To Change Or Improve'}, {'id': 57, 'word': 'Complement', 'definition': 'V. To Make Perfect Or Complete'}, {'id': 58, 'word': 'Concede', 'definition': 'V. To Be Forced To Agree Or Surrender\nV. To Admit To A Transgression'}, {'id': 59, 'word': 'Conceive', 'definition': 'V. To Imagine Or Come Up With'}, {'id': 60, 'word': 'Condone', 'definition': 'V. To Overlook, Approve, Or Allow'}, {'id': 61, 'word': 'Conducive', 'definition': 'Adj. Able To Bring About Or Be Suitable For'}, {'id': 62, 'word': 'Conduct', 'definition': 'V. To Control Or Manage\nV. To Behave A Certain Way'}, {'id': 63, 'word': 'Confide', 'definition': 'V. To Share Something Secretive With Someone'}, {'id': 64, 'word': 'Confine', 'definition': 'V. To Put Limits On; To Restrict'}, {'id': 65, 'word': 'Consensus', 'definition': 'N. Overall Agreement'}, {'id': 66, 'word': 'Constitute', 'definition': 'V. To Form Or Compose (Part Of) Something'}, {'id': 67, 'word': 'Contemplate', 'definition': 'V. To Think Deeply About'}, {'id': 68, 'word': 'Contend', 'definition': 'V. To Maintain Or Assert (An Opinion)'}, {'id': 69, 'word': 'Contradict', 'definition': 'V. To Be In Contrast With'}, {'id': 70, 'word': 'Controversial', 'definition': 'Adj. Highly Debatable And Causing Contention'}, {'id': 71, 'word': 'Conventional', 'definition': 'Adj. Abiding By Accepted Standards'}, {'id': 72, 'word': 'Convey', 'definition': 'V. To Pass On Or Transfer (Information)'}, {'id': 73, 'word': 'Conviction', 'definition': 'N. A Firm Belief In Something'}, {'id': 74, 'word': 'Corroborate', 'definition': 'V. To Provide Evidence For; To Back Up (A Claim)'}, {'id': 75, 'word': 'Counteract', 'definition': 'V. To Work In Opposition To'}, {'id': 76, 'word': 'Counterargument', 'definition': 'N. An Argument Used To Criticize Or Dismantle Another Argument'}, {'id': 77, 'word': 'Counterproductive', 'definition': 'Adj. Hindering The Achievement Of A Goal'}, {'id': 78, 'word': 'Culmination', 'definition': 'N. The Final Act Or Climax'}, {'id': 79, 'word': 'Cultivate', 'definition': 'V. To Foster The Growth Of'}, {'id': 80, 'word': 'Decree', 'definition': 'V. To Declare Formally And With Authority'}, {'id': 81, 'word': 'Deference', 'definition': 'N. Respect; Regard'}, {'id': 82, 'word': 'Deficient', 'definition': 'Adj. Not Enough In Degree Or Amount'}, {'id': 83, 'word': 'Demonstrate', 'definition': 'V. To Do As An Example\nV. Gives Evidence For'}, {'id': 84, 'word': 'Demur', 'definition': 'V. To Object To'}, {'id': 85, 'word': 'Deplete', 'definition': 'V. To (Over)Use Over Time (Usu. Resources)'}, {'id': 86, 'word': 'Desolate', 'definition': 'Adj. Bare, Barren, Empty'}, {'id': 87, 'word': 'Devise', 'definition': 'V. To Come Up With (A Plan)'}, {'id': 88, 'word': 'Dilemma', 'definition': 'N. A Problem, Usually Requiring A Choice Between Two Options'}, {'id': 89, 'word': 'Diligence', 'definition': 'N. Conscientiousness; The Quality Of Being Committed To A Task'}, {'id': 90, 'word': 'Diminish', 'definition': 'V. To Become Smaller In Scope Or Degree'}, {'id': 91, 'word': 'Dire', 'definition': 'Adj. Hopeless And Dangerous Or Fearful'}, {'id': 92, 'word': 'Discord', 'definition': 'N. Disagreement'}, {'id': 93, 'word': 'Disdain', 'definition': 'N. A Lack Of Respect And Strong Dislike (Toward Something Or Someone)'}, {'id': 94, 'word': 'Dismay', 'definition': 'N. Hopelessness, Stress, Or Consternation\nV. To Fill With Woe Or Apprehension'}, {'id': 95, 'word': 'Disparage', 'definition': 'V. To Belittle Or Speak Down To'}, {'id': 96, 'word': 'Dispatch', 'definition': 'V. To Send Off A Message Or Messenger'}, {'id': 97, 'word': 'Diversification', 'definition': 'N. The Act Of Becoming Diverse'}, {'id': 98, 'word': 'Doctrine', 'definition': 'N. A Principle, Theory, Or Position, Usu. Advocated By A Religion Or Gov’T'}, {'id': 99, 'word': 'Dominion', 'definition': 'N. Power And Authority (Usu. Over A Territory)\nN. A Legal Territory'}, {'id': 100, 'word': 'Dreary', 'definition': 'Adj. Sad, Gloomy, Dull'}, {'id': 101, 'word': 'Dubious', 'definition': 'Adj. Doubtful, Questionable'}, {'id': 102, 'word': 'Eccentric', 'definition': 'Adj. Peculiar Or Odd; Deviating From The Norm'}, {'id': 103, 'word': 'Egregious', 'definition': 'Adj. Extremely Bad'}, {'id': 104, 'word': 'Eloquent', 'definition': 'Adj. Having Refined Or Expressive Communication Skills (In Speaking Or Writing)'}, {'id': 105, 'word': 'Eminent', 'definition': 'Adj. Superior Or Distinguished; High In Position Or Status'}, {'id': 106, 'word': 'Emit', 'definition': 'V. To Discharge, Give Forth, Or Release'}, {'id': 107, 'word': 'Emphatic', 'definition': 'Adj. Very Expressive; Using Emphasis'}, {'id': 108, 'word': 'Empirical', 'definition': 'Adj. Derived From Experience, Observation, Or An Experiment'}, {'id': 109, 'word': 'Endow', 'definition': 'V. To Equip Or Bestow (Usu. A Quality Or Ability)'}, {'id': 110, 'word': 'Endure', 'definition': 'V. To Withstand, Sustain, Or Hold Out Against'}, {'id': 111, 'word': 'Entail', 'definition': 'V. To Involve Or Include'}, {'id': 112, 'word': 'Entrenched', 'definition': 'Adj. Firmly Established'}, {'id': 113, 'word': 'Enumerate', 'definition': 'V. To Specify Or Count'}, {'id': 114, 'word': 'Envy', 'definition': 'N. Excessive Jealousy\nV. To Admire And Be Jealous Of'}, {'id': 115, 'word': 'Erratic', 'definition': 'Adj. Having No Fixed Course; Deviating From The Norm'}, {'id': 116, 'word': 'Establish', 'definition': 'V. To Enact\nV. To Found (A Business, Group, School, Etc.)'}, {'id': 117, 'word': 'Evoke', 'definition': 'V. To Draw Forth Or Call Up'}, {'id': 118, 'word': 'Exacerbate', 'definition': 'V. To Make Worse Or Increase The Severity Of'}, {'id': 119, 'word': 'Excel', 'definition': 'V. To Do Something Extremely Well Or To Be Superior In'}, {'id': 120, 'word': 'Exert', 'definition': 'V. To Put Into Use (Usu. As Effort)'}, {'id': 121, 'word': 'Exhilarating', 'definition': 'Adj. Invigorating, Stimulating, Or Exciting'}, {'id': 122, 'word': 'Expend', 'definition': 'V. To Use Up (As In Energy Or Money)'}, {'id': 123, 'word': 'Exploit', 'definition': 'V. To Use Selfishly Or For Profit'}, {'id': 124, 'word': 'Facilitate', 'definition': 'V. To Aid The Progress Of'}, {'id': 125, 'word': 'Feasibility', 'definition': 'N. The Practicality Or Possibility Of Something'}, {'id': 126, 'word': 'Ferocity', 'definition': 'N. Viciousness, Violence'}, {'id': 127, 'word': 'Fiscal', 'definition': 'Adj. Related To (Government) Money'}, {'id': 128, 'word': 'Flourish', 'definition': 'V. To Prosper, Grow, Or Make Fast Progress'}, {'id': 129, 'word': 'Fluctuate', 'definition': 'V. To Be Unstable; To Rise And Fall'}, {'id': 130, 'word': 'Foment', 'definition': 'V. To Stir Up'}, {'id': 131, 'word': 'Foreseeable', 'definition': 'Adj. Capable Of Being Predicted Or Anticipated'}, {'id': 132, 'word': 'Frankly', 'definition': 'Adv. Directly, Clearly'}, {'id': 133, 'word': 'Freewheeling', 'definition': 'Adj. Carefree'}, {'id': 134, 'word': 'Fundamental', 'definition': 'Adj. The Most Essential Or Most Basic Part'}, {'id': 135, 'word': 'Galvanizing', 'definition': 'Adj. Thrilling, Exciting, Stimulating'}, {'id': 136, 'word': 'Geriatric', 'definition': 'Adj. Relating To Old Age'}, {'id': 137, 'word': 'Hostile', 'definition': 'Adj. Harmful, Dangerous'}, {'id': 138, 'word': 'Hypothetical', 'definition': 'Adj. Supposed; Related To A Hypothesis'}, {'id': 139, 'word': 'Ignominious', 'definition': 'Adj. Publicly Shameful Or Humiliating'}, {'id': 140, 'word': 'Impart', 'definition': 'V. To Transmit, Bestow, Or Disclose'}, {'id': 141, 'word': 'Impartiality', 'definition': 'N. The Equal And Objective Treatment Of Opposing Views'}, {'id': 142, 'word': 'Imposing', 'definition': 'Adj. Impressive (Esp. In Size Or Appearance)'}, {'id': 143, 'word': 'Imposition', 'definition': 'N. An Unnecessary Burden'}, {'id': 144, 'word': 'Imprudent', 'definition': 'Adj. Not Cautious Or Prudent; Rash'}, {'id': 145, 'word': 'Incite', 'definition': 'V. To Encourage Or Stir Up'}, {'id': 146, 'word': 'Indifference', 'definition': 'N. Apathy, Emotional Detachment'}, {'id': 147, 'word': 'Indiscriminately', 'definition': 'Adv. Randomly; With Little Or No Distinction'}, {'id': 148, 'word': 'Indulge', 'definition': 'V. To Give Into; To Satisfy Or Gratify'}, {'id': 149, 'word': 'Infer', 'definition': 'V. To Guess, Conclude, Or Derive By Reasoning'}, {'id': 150, 'word': 'Innovative', 'definition': 'Adj. Novel Or New (Esp. As An Idea Or Invention)'}, {'id': 151, 'word': 'Insatiable', 'definition': 'Adj. Can’T Be Satisfied'}, {'id': 152, 'word': 'Inversion', 'definition': 'N. A Reversal'}, {'id': 153, 'word': 'Invoke', 'definition': 'V. To Call On; To Appeal To (E.G., A Higher Power)'}, {'id': 154, 'word': 'Irreconcilable', 'definition': 'Adj. Incapable Of Being In Harmony Or Agreed Upon'}, {'id': 155, 'word': 'Lament', 'definition': 'V. To Feel Sorrow For; To Mourn'}, {'id': 156, 'word': 'Locomotion', 'definition': 'N. Movement'}, {'id': 157, 'word': 'Lucrative', 'definition': 'Adj. Capable Of Making A Lot Of Money; Profitable'}, {'id': 158, 'word': 'Malicious', 'definition': 'Adj. Harmful, Spiteful'}, {'id': 159, 'word': 'Malleable', 'definition': 'Adj. Capable Of Being Molded Or Changed'}, {'id': 160, 'word': 'Materialistic', 'definition': 'Adj. Superficial; Focus On Material Possessions'}, {'id': 161, 'word': 'Melodramatic', 'definition': 'Adj. Extravagant Or Exaggerated (As Of A Melodrama)'}, {'id': 162, 'word': 'Modest', 'definition': 'Adj. Simple And Humble\nAdj. Small In Size Or Amount'}, {'id': 163, 'word': 'Modify', 'definition': 'V. To Change, Alter, Or Tweak'}, {'id': 164, 'word': 'Momentous', 'definition': 'Adj. Historically Significant'}, {'id': 165, 'word': 'Novel', 'definition': 'Adj. New, Innovative'}, {'id': 166, 'word': 'Nuance', 'definition': 'N. A Subtle Difference In Meaning'}, {'id': 167, 'word': 'Null', 'definition': 'Adj. Legally Void And Ineffective'}, {'id': 168, 'word': 'Objectivity', 'definition': 'N. Judgment Based On Observations Instead Of Emotions Or Opinions'}, {'id': 169, 'word': 'Obsolete', 'definition': 'Adj. No Longer Used; Rare Or Uncommon'}, {'id': 170, 'word': 'Omnipotent', 'definition': 'Adj. Almighty And All Powerful'}, {'id': 171, 'word': 'Onset', 'definition': 'N. The Beginning Or Early Stages'}, {'id': 172, 'word': 'Opine', 'definition': 'V. To Openly Express An Opinion'}, {'id': 173, 'word': 'Ornate', 'definition': 'Adj. Highly Detailed And Decorated'}, {'id': 174, 'word': 'Oust', 'definition': 'V. To Remove Or Force Out Of (Usu. A Position Or Office)'}, {'id': 175, 'word': 'Paramount', 'definition': 'Adj. Predominant, Superior, Most Important'}, {'id': 176, 'word': 'Peculiar', 'definition': 'Adj. Strange, Bizarre'}, {'id': 177, 'word': 'Perish', 'definition': 'V. To Die; To Pass Away'}, {'id': 178, 'word': 'Persecute', 'definition': 'V. To Cause Suffering To'}, {'id': 179, 'word': 'Petulant', 'definition': 'Adj. Cranky, Pouty, Irritable'}, {'id': 180, 'word': 'Pinnacle', 'definition': 'N. Highest Level Or Degree'}, {'id': 181, 'word': 'Pitiable', 'definition': 'Adj. Deserving Pity'}, {'id': 182, 'word': 'Plausible', 'definition': 'Adj. Reasonable And Possibly True'}, {'id': 183, 'word': 'Postulate', 'definition': 'V. To Assert'}, {'id': 184, 'word': 'Potent', 'definition': 'Adj. Having Great Influence\nAdj. Having A Strong, Chemical Effect'}, {'id': 185, 'word': 'Pragmatic', 'definition': 'Adj. Practical, Useful'}, {'id': 186, 'word': 'Precedent', 'definition': 'N. An Example Or Subject From Earlier In Time'}, {'id': 187, 'word': 'Predecessor', 'definition': 'N. Someone Who Comes Before You (Usu. In Position Or Office)'}, {'id': 188, 'word': 'Prescribe', 'definition': 'V. To Command Orders\nV. To Issue Authorization For Medications'}, {'id': 189, 'word': 'Principle', 'definition': 'N. Basic Truth, Assumption, Or Rule'}, {'id': 190, 'word': 'Prohibit', 'definition': 'V. To Command Against, To Outlaw'}, {'id': 191, 'word': 'Prompt', 'definition': 'Adj. Punctual, On Time\nN. A Cue To Begin Something; Instructions\nV. To Incite, Propel, Or Cause To Act'}, {'id': 192, 'word': 'Promulgate', 'definition': 'V. To Put Into Law Or Formally Declare'}, {'id': 193, 'word': 'Prosecute', 'definition': 'V. To Bring Criminal Action Against Someone (In A Trial)'}, {'id': 194, 'word': 'Provocative', 'definition': 'Adj. Intending To Provoke, Inspire, Or Arouse'}, {'id': 195, 'word': 'Qualitative', 'definition': 'Adj. Involving Qualities Of Something (Features And Content)'}, {'id': 196, 'word': 'Quantitative', 'definition': 'Adj. Involving Quantities (Numbers And Amounts)'}, {'id': 197, 'word': 'Quirk', 'definition': 'N. A Strange Habit'}, {'id': 198, 'word': 'Ramify', 'definition': 'V. To Split Into Two Or More Branches'}, {'id': 199, 'word': 'Rash', 'definition': 'Adj. Without Attention To Danger Or Risk'}, {'id': 200, 'word': 'Raw', 'definition': 'Adj. Unrefined\nAdj. Not Processed; Uncooked (As In Food)'}, {'id': 201, 'word': 'Readily', 'definition': 'Adv. Right Away And Without Difficulty'}, {'id': 202, 'word': 'Reconsideration', 'definition': 'N. Thinking Again About A Previously Made Choice'}, {'id': 203, 'word': 'Reform', 'definition': 'N. A Change For The Better; Improvement\nV. To Improve Via Change'}, {'id': 204, 'word': 'Refute', 'definition': 'V. To Prove To Be Untrue, Unfounded, Or Incorrect'}, {'id': 205, 'word': 'Reinforce', 'definition': 'V. To Strengthen Or Add Support To'}, {'id': 206, 'word': 'Reluctantly', 'definition': 'Adv. Somewhat Unwillingly'}, {'id': 207, 'word': 'Renounce', 'definition': 'V. To Give Up (Usu. Power Or A Position)\nV. To Cast Off'}, {'id': 208, 'word': 'Reproach', 'definition': 'V. To Criticize'}, {'id': 209, 'word': 'Repudiate', 'definition': 'V. To Refuse To Recognize As True\nV. To Cast Off'}, {'id': 210, 'word': 'Retention', 'definition': 'N. The Act Of Keeping Something'}, {'id': 211, 'word': 'Satiated', 'definition': 'Adj. Satisfied (Usu. In Hunger)'}, {'id': 212, 'word': 'Savvy', 'definition': 'Adj. Having Practical Intelligence Or Knowledge'}, {'id': 213, 'word': 'Scandalous', 'definition': 'Adj. Morally Offensive, Often Causing Damage To One’S Reputation'}, {'id': 214, 'word': 'Scorn', 'definition': 'V. To Look Down On With Disdain'}, {'id': 215, 'word': 'Scrupulous', 'definition': 'Adj. Paying Great Attention To Detail'}, {'id': 216, 'word': 'Scrutinize', 'definition': 'V. To Examine Carefully And Critically'}, {'id': 217, 'word': 'Secrete', 'definition': 'V. To Produce Or Release (A Substance)'}, {'id': 218, 'word': 'Sentiment', 'definition': 'N. Opinion\nN. A Tender Or Moving Gesture'}, {'id': 219, 'word': 'Sheer', 'definition': 'Adj. So Thin That Light Can Shine Through'}, {'id': 220, 'word': 'Simple', 'definition': 'Adj. Easy; Not Complex\nAdj. Undecorated'}, {'id': 221, 'word': 'Sinister', 'definition': 'Adj. Ominous, Evil'}, {'id': 222, 'word': 'Solidarity', 'definition': 'N. The Joining Of Commonalities Or Common Purposes Among A Group'}, {'id': 223, 'word': 'Sparingly', 'definition': 'Adv. Insufficiently, Meagerly, Or In A Restricted Manner'}, {'id': 224, 'word': 'Spawn', 'definition': 'V. To Release Eggs\nV. To Call Forth Or Generate'}, {'id': 225, 'word': 'Spur', 'definition': 'V. To Stimulate Or Incite'}, {'id': 226, 'word': 'Squalid', 'definition': 'Adj. Run-Down, Sordid, Or Sleazy'}, {'id': 227, 'word': 'Stark', 'definition': 'Adj. Very Plain; Devoid Of Any Details Or Features'}, {'id': 228, 'word': 'Static', 'definition': 'Adj. Motionless\nAdj. Changeless'}, {'id': 229, 'word': 'Subordinate', 'definition': 'Adj. Lower In Rank\nN. Someone Lower In Rank\nV. To Make Dependent On Or Put At A Lower Rank'}, {'id': 230, 'word': 'Subsequently', 'definition': 'Adv. Happening Later Or After Something'}, {'id': 231, 'word': 'Substantial', 'definition': 'Adj. Very Large In Amount Or Degree'}, {'id': 232, 'word': 'Substantiate', 'definition': 'V. To Strengthen With New Evidence Or Facts'}, {'id': 233, 'word': 'Subtle', 'definition': 'Adj. Hard To Detect Or Analyze'}, {'id': 234, 'word': 'Sufficient', 'definition': 'Adj. Enough; Just Meeting A Requirement'}, {'id': 235, 'word': 'Surly', 'definition': 'Adj. Unfriendly; Inclined To Anger'}, {'id': 236, 'word': 'Surmount', 'definition': 'V. To Get On Top Of Or Overcome'}, {'id': 237, 'word': 'Susceptible', 'definition': 'Adj. To Be Vulnerable (To Something)'}, {'id': 238, 'word': 'Tactful', 'definition': 'Adj. Skilled At Dealing With People'}, {'id': 239, 'word': 'Taut', 'definition': 'Adj. Pulled Tight'}, {'id': 240, 'word': 'Teeming', 'definition': 'Adj. Abundantly Filled (Usu. With Living Organisms)'}, {'id': 241, 'word': 'Temperament', 'definition': 'N. Usual Mood Or Feelings'}, {'id': 242, 'word': 'Tentative', 'definition': 'Adj. Not Yet Finalized'}, {'id': 243, 'word': 'Transparent', 'definition': 'Adj. See-Through; So Thin That Light Can Shine Through\nAdj. Truthful Or Easy To Perceive'}, {'id': 244, 'word': 'Treacherous', 'definition': 'Adj. Dangerous And Unstable'}, {'id': 245, 'word': 'Tremendous', 'definition': 'Adj. Very Large, Good, Or Bad In Degree Or Size'}, {'id': 246, 'word': 'Ubiquitous', 'definition': 'Adj. Being Everywhere At Once'}, {'id': 247, 'word': 'Unadorned', 'definition': 'Adj. Undecorated, Plain'}, {'id': 248, 'word': 'Undermine', 'definition': 'V. To Weaken Or Subvert (Usu. Gradually Or Secretly)'}, {'id': 249, 'word': 'Underscore', 'definition': 'V. To Emphasize Or Give Additional Weight To'}, {'id': 250, 'word': 'Undulate', 'definition': 'V. To Move As Ripples Or In A Wavy Pattern'}, {'id': 251, 'word': 'Unilateral', 'definition': 'Adj. One-Sided'}, {'id': 252, 'word': 'Unjust', 'definition': 'Adj. Unfair; Not Justified'}, {'id': 253, 'word': 'Unmitigated', 'definition': 'Adj. Downright, Utter, Total'}, {'id': 254, 'word': 'Unprecedented', 'definition': 'Adj. Completely New And Never Having Happened Before; Historic'}, {'id': 255, 'word': 'Unveil', 'definition': 'V. To Make Visible; To Reveal'}, {'id': 256, 'word': 'Urge', 'definition': 'N. Desire Or Impulse\nV. To Encourage Or Persuade'}, {'id': 257, 'word': 'Validate', 'definition': 'V. To Prove Or Declare Valid'}, {'id': 258, 'word': 'Viability', 'definition': 'N. Ability To Be Done In A Practical Or Useful Way'}, {'id': 259, 'word': 'Vital', 'definition': 'Adj. Urgently Necessary'}, {'id': 260, 'word': 'Vow', 'definition': 'V. To Promise'}, {'id': 261, 'word': 'Warrant', 'definition': 'V. To Prove To Be Reasonable'}, {'id': 262, 'word': 'Yield', 'definition': 'N. Production Of An Amount\nV. To Give Way To Or Surrender To\nV. To Produce Or Supply'}]
app = Flask(__name__)
# Helper function to get random card for practice
def get_random_card():
return random.choice(vocab_list)
# Helper function to generate multiple-choice options
def generate_options(correct_word):
options = [correct_word]
while len(options) < 5:
random_word = random.choice(vocab_list)['word']
if random_word not in options:
options.append(random_word)
random.shuffle(options)
return options
@app.route('/')
def index():
return render_template('index.html', vocab_list=vocab_list)
@app.route('/practice')
def practice():
card = get_random_card()
options = generate_options(card['word'])
return render_template('practice.html', card=card, options=options)
@app.route('/check_answer', methods=['POST'])
def check_answer():
data = request.get_json()
card_id = data['card_id']
user_answer = data['answer'].strip().lower()
card = next((item for item in vocab_list if item['id'] == card_id), None)
if card:
correct = card['word'].strip().lower() == user_answer
return jsonify({'correct': correct, 'correct_word': card['word']})
return jsonify({'correct': False, 'correct_word': ''})
if __name__ == '__main__':
app.run(debug=True)