"""
Academic Vocabulary - Words for Grades 6-12.

Based on the Academic Word List (AWL) by Averil Coxhead and
academic vocabulary from middle and high school curricula.
"""

# ── Academic Word List Sublist 1 (Most Frequent) ───────────────────────────
# Grade 6-7: Core academic vocabulary

AWL_SUBLIST_1 = {
    "analyze": 6, "approach": 6, "area": 6, "assess": 7, "assume": 7,
    "authority": 6, "available": 5, "benefit": 6, "concept": 6, "consist": 7,
    "constitute": 8, "context": 7, "contract": 7, "create": 5, "data": 6,
    "define": 6, "derive": 8, "distribute": 7, "economy": 6, "environment": 5,
    "establish": 6, "estimate": 6, "evident": 7, "export": 6, "factor": 6,
    "finance": 7, "formula": 6, "function": 6, "identify": 5, "income": 6,
    "indicate": 7, "individual": 6, "interpret": 7, "involve": 6, "issue": 6,
    "labor": 6, "legal": 7, "legislate": 8, "major": 5, "method": 6,
    "occur": 6, "percent": 5, "period": 5, "policy": 7, "principle": 6,
    "proceed": 7, "process": 5, "require": 6, "research": 6, "respond": 6,
    "role": 5, "section": 5, "sector": 8, "significant": 6, "similar": 5,
    "source": 5, "specific": 6, "structure": 6, "theory": 6, "vary": 6,
}

# ── Academic Word List Sublist 2 ────────────────────────────────────────────
# Grade 7-8: Expanding academic vocabulary

AWL_SUBLIST_2 = {
    "achieve": 6, "acquire": 7, "administrate": 8, "affect": 6, "appropriate": 7,
    "aspect": 7, "assist": 6, "category": 7, "chapter": 5, "commission": 8,
    "community": 5, "complex": 7, "compute": 7, "conclude": 7, "conduct": 7,
    "consequent": 8, "construct": 7, "consume": 7, "credit": 6, "culture": 6,
    "design": 6, "distinct": 8, "element": 6, "equate": 8, "evaluate": 7,
    "feature": 6, "final": 5, "focus": 6, "impact": 7, "injure": 6,
    "institute": 8, "invest": 7, "item": 5, "journal": 7, "maintain": 7,
    "normal": 5, "obtain": 7, "participate": 6, "perceive": 8, "positive": 6,
    "potential": 8, "previous": 7, "primary": 6, "purchase": 6, "range": 6,
    "region": 5, "regulate": 8, "relevant": 8, "reside": 8, "resource": 6,
    "restrict": 8, "secure": 7, "seek": 6, "select": 6, "site": 6,
    "strategy": 7, "survey": 6, "text": 5, "tradition": 6, "transfer": 6,
}

# ── Academic Word List Sublist 3-4 ──────────────────────────────────────────
# Grade 8-9: More advanced academic vocabulary

AWL_SUBLIST_3_4 = {
    "alternative": 8, "circumstance": 8, "comment": 6, "compensate": 9,
    "component": 8, "consent": 8, "considerable": 8, "constant": 8,
    "constrain": 9, "contribute": 7, "convene": 9, "coordinate": 8,
    "core": 7, "corporate": 8, "correspond": 8, "criterion": 9, "deduce": 9,
    "demonstrate": 7, "document": 7, "dominate": 8, "emphasis": 8,
    "ensure": 8, "exclude": 8, "framework": 9, "fund": 7, "illustrate": 7,
    "immigrate": 7, "imply": 8, "initial": 8, "instance": 8, "interact": 8,
    "justify": 8, "layer": 6, "link": 6, "locate": 6, "maximize": 9,
    "minor": 7, "negate": 9, "outcome": 8, "partner": 6, "philosophy": 9,
    "physical": 6, "proportion": 8, "publish": 6, "react": 7, "register": 7,
    "rely": 7, "remove": 6, "scheme": 9, "sequence": 8, "sex": 6,
    "shift": 8, "specify": 9, "sufficient": 8, "task": 6, "technical": 8,
    "technique": 7, "technology": 6, "valid": 9, "volume": 6,
    # Sublist 4
    "access": 7, "adequate": 8, "annual": 8, "apparent": 8, "approximate": 9,
    "attitude": 7, "attribute": 9, "civil": 7, "code": 7, "commit": 8,
    "communicate": 7, "concentrate": 7, "confer": 9, "contrast": 7,
    "cycle": 6, "debate": 7, "despite": 8, "dimension": 8, "domestic": 8,
    "emerge": 8, "error": 6, "ethnic": 8, "goal": 5, "grant": 7,
    "hence": 9, "hypothesis": 8, "implement": 9, "implicate": 10,
    "impose": 9, "integrate": 9, "internal": 8, "investigate": 7,
    "job": 4, "label": 6, "mechanism": 9, "obvious": 7, "occupy": 8,
    "option": 7, "output": 8, "overall": 8, "parallel": 8, "parameter": 10,
    "phase": 8, "predict": 7, "principal": 8, "prior": 8, "professional": 8,
    "project": 6, "promote": 8, "regime": 10, "resolve": 8, "retain": 9,
    "series": 6, "statistic": 9, "status": 8, "stress": 7, "subsequent": 10,
    "sum": 5, "summary": 7, "undertake": 9,
}

# ── Academic Word List Sublist 5-7 ──────────────────────────────────────────
# Grade 9-10: Advanced academic vocabulary

AWL_SUBLIST_5_7 = {
    "academy": 9, "adjust": 8, "alter": 8, "amend": 10, "aware": 7,
    "capacity": 9, "challenge": 6, "clause": 9, "compound": 8, "conflict": 7,
    "consult": 9, "contact": 6, "decline": 8, "discrete": 10, "draft": 8,
    "enable": 8, "energy": 5, "enforce": 9, "entity": 10, "equivalent": 9,
    "evolve": 9, "expand": 7, "expose": 8, "external": 9, "facilitate": 10,
    "fundamental": 9, "generate": 8, "generation": 8, "image": 6, "liberal": 9,
    "license": 8, "logic": 8, "margin": 9, "medical": 7, "mental": 7,
    "modify": 9, "monitor": 8, "network": 7, "notion": 10, "objective": 8,
    "orient": 9, "perspective": 8, "precise": 9, "prime": 8, "psychology": 10,
    "pursue": 9, "ratio": 8, "reject": 8, "revenue": 10, "stable": 8,
    "style": 6, "substitute": 9, "sustain": 9, "symbol": 6, "target": 7,
    "transit": 9, "trend": 8, "version": 7, "welfare": 9,
    # Sublist 6
    "abstract": 9, "accurate": 8, "acknowledge": 9, "aggregate": 10,
    "allocate": 10, "assign": 8, "attach": 7, "author": 6, "bond": 8,
    "brief": 7, "capable": 8, "cite": 9, "cooperate": 8, "discriminate": 9,
    "display": 7, "diverse": 9, "domain": 10, "edit": 7, "enhance": 9,
    "estate": 9, "exceed": 9, "expert": 7, "explicit": 10, "federal": 8,
    "fee": 7, "flexible": 9, "furthermore": 9, "gender": 8, "ignorant": 9,
    "incentive": 10, "incidence": 10, "incorporate": 10, "index": 8,
    "inhibit": 10, "initiate": 10, "input": 7, "instruct": 7, "intelligence": 8,
    "interval": 9, "lecture": 8, "migrate": 8, "minimum": 8, "ministry": 9,
    "motive": 9, "neutral": 9, "nevertheless": 10, "overseas": 8, "precede": 10,
    "presume": 10, "rational": 10, "recover": 8, "reveal": 8, "scope": 10,
    "subsidiary": 11, "tape": 5, "trace": 8, "transform": 9, "transport": 7,
    "underlying": 10, "utility": 10,
    # Sublist 7
    "adapt": 8, "adult": 6, "advocate": 10, "aid": 6, "channel": 8,
    "chemical": 7, "classic": 8, "comprehensive": 10, "comprise": 10,
    "confirm": 8, "contrary": 9, "convert": 9, "couple": 6, "decade": 8,
    "definite": 8, "deny": 8, "differentiate": 10, "dispose": 9, "dynamic": 9,
    "eliminate": 9, "empirical": 11, "equip": 8, "extract": 9, "file": 6,
    "finite": 10, "foundation": 8, "globe": 6, "grade": 4, "guarantee": 9,
    "hierarchy": 11, "identical": 9, "ideology": 11, "infer": 9, "innovate": 10,
    "insert": 8, "intervene": 10, "isolate": 9, "media": 7, "mode": 9,
    "paradigm": 11, "phenomenon": 10, "priority": 9, "prohibit": 9, "publication": 9,
    "quote": 8, "release": 7, "reverse": 9, "simulate": 10, "sole": 9,
    "somewhat": 8, "submit": 8, "successor": 10, "survive": 7, "thesis": 10,
    "topic": 6, "transmit": 9, "ultimate": 9, "unique": 8, "visible": 7,
    "voluntary": 9,
}

# ── Academic Word List Sublist 8-10 ─────────────────────────────────────────
# Grade 10-12: Most advanced academic vocabulary

AWL_SUBLIST_8_10 = {
    "abandon": 9, "accompany": 9, "accumulate": 10, "ambiguous": 11,
    "append": 10, "appreciate": 9, "arbitrary": 11, "automate": 10,
    "bias": 9, "chart": 6, "clarify": 9, "commodity": 10, "complement": 10,
    "conform": 10, "contemporary": 10, "contradict": 10, "crucial": 10,
    "currency": 9, "denote": 11, "detect": 8, "deviate": 11, "displace": 10,
    "drama": 7, "eventual": 10, "exhibit": 9, "exploit": 10, "fluctuate": 11,
    "guideline": 9, "highlight": 9, "implicit": 11, "induce": 10, "inevitable": 10,
    "infrastructure": 11, "inherent": 11, "insight": 9, "integral": 11,
    "intermediate": 10, "manual": 8, "mature": 9, "mediate": 11, "medium": 8,
    "military": 7, "minimal": 9, "mutual": 9, "norm": 10, "overlap": 9,
    "passive": 9, "portion": 8, "preliminary": 10, "protocol": 11, "qualitative": 11,
    "refine": 10, "relax": 7, "restrain": 10, "revolution": 8, "rigid": 10,
    "route": 7, "scenario": 10, "sphere": 10, "subordinate": 11, "supplement": 10,
    "suspend": 9, "team": 5, "temporary": 9, "terminate": 10, "theme": 8,
    "thereby": 10, "uniform": 9, "vehicle": 7, "via": 9, "virtual": 10,
    "visual": 8, "widespread": 9,
    # Sublist 9
    "accommodate": 10, "analogy": 10, "anticipate": 10, "assure": 9,
    "attain": 10, "behalf": 10, "bulk": 9, "cease": 10, "coherent": 11,
    "coincide": 11, "commence": 11, "compatible": 11, "concurrent": 11,
    "confine": 10, "controversy": 10, "converse": 11, "device": 8,
    "devote": 9, "diminish": 10, "distort": 10, "duration": 10, "erode": 10,
    "ethic": 10, "format": 8, "found": 5, "inherent": 11, "insight": 9,
    "integral": 11, "intermediate": 10, "invoke": 11, "levy": 11, "likewise": 10,
    "nonetheless": 11, "notwithstanding": 12, "offset": 10, "ongoing": 9,
    "orient": 9, "persist": 10, "pose": 10, "practitioner": 11, "predominantly": 11,
    "prospect": 10, "radical": 10, "reinforce": 10, "restore": 9, "revise": 9,
    "straightforward": 10, "undergo": 10, "whereby": 11,
    # Sublist 10
    "adjacent": 10, "albeit": 12, "assemble": 9, "collapse": 9, "colleague": 10,
    "compile": 10, "conceive": 11, "convince": 9, "depress": 9, "encounter": 9,
    "enormous": 8, "forthcoming": 11, "incline": 10, "integrity": 10,
    "intrinsic": 11, "invoke": 11, "levy": 11, "likewise": 10, "nonetheless": 11,
    "panel": 9, "persist": 10, "pose": 10, "reluctant": 10, "so-called": 10,
    "straightforward": 10, "undergo": 10, "whereby": 11,
}


# ── High School Advanced Vocabulary ─────────────────────────────────────────
# Grades 11-12: AP-level and college-prep vocabulary

ADVANCED_VOCABULARY = {
    # Philosophical/Abstract
    "epistemology": 12, "ontology": 12, "dialectic": 12, "phenomenology": 12,
    "existential": 11, "metaphysical": 12, "transcendent": 11, "nihilism": 12,
    "determinism": 12, "relativism": 11, "pragmatism": 11, "utilitarianism": 11,
    "empiricism": 11, "rationalism": 11, "dualism": 12, "monism": 12,

    # Literary/Rhetorical
    "juxtaposition": 10, "dichotomy": 11, "paradox": 10, "irony": 8,
    "satire": 9, "allegory": 10, "metaphor": 7, "simile": 6, "hyperbole": 8,
    "personification": 8, "alliteration": 8, "assonance": 10, "consonance": 10,
    "onomatopoeia": 8, "synecdoche": 11, "metonymy": 11, "oxymoron": 10,
    "euphemism": 10, "litotes": 11, "anaphora": 11, "epistrophe": 11,
    "chiasmus": 12, "antithesis": 10, "apostrophe": 10, "pathos": 10,
    "ethos": 10, "logos": 10, "rhetoric": 9, "diction": 9, "syntax": 9,
    "motif": 10, "archetype": 11, "protagonist": 9, "antagonist": 9,
    "denouement": 11, "exposition": 9, "climax": 8, "resolution": 8,

    # Scientific (Advanced)
    "hypothesis": 7, "theorem": 9, "axiom": 10, "corollary": 11,
    "postulate": 11, "conjecture": 10, "inference": 8, "deduction": 9,
    "induction": 9, "syllogism": 11, "fallacy": 10, "correlation": 10,
    "causation": 10, "variable": 7, "constant": 8, "coefficient": 8,
    "parameter": 10, "algorithm": 9, "heuristic": 12, "paradigm": 11,

    # Social Sciences
    "hegemony": 12, "imperialism": 10, "colonialism": 10, "nationalism": 10,
    "socialism": 10, "capitalism": 10, "communism": 10, "fascism": 10,
    "totalitarianism": 11, "authoritarianism": 11, "democracy": 6,
    "republic": 7, "oligarchy": 10, "aristocracy": 10, "monarchy": 8,
    "theocracy": 10, "plutocracy": 11, "meritocracy": 11, "bureaucracy": 10,
    "sovereignty": 10, "autonomy": 10, "jurisdiction": 10, "jurisprudence": 12,
}


# ── Combine All Academic Vocabulary ─────────────────────────────────────────

ACADEMIC_VOCABULARY: dict[str, int] = {}
ACADEMIC_VOCABULARY.update(AWL_SUBLIST_1)
ACADEMIC_VOCABULARY.update(AWL_SUBLIST_2)
ACADEMIC_VOCABULARY.update(AWL_SUBLIST_3_4)
ACADEMIC_VOCABULARY.update(AWL_SUBLIST_5_7)
ACADEMIC_VOCABULARY.update(AWL_SUBLIST_8_10)
ACADEMIC_VOCABULARY.update(ADVANCED_VOCABULARY)
