# -*- coding: utf-8 -*-
"""Round 261: batch add 5 Chemistry PhD (fourth tier: Notre Dame / Emory / UVA / UNC / Duke)
- Notre Dame Chemistry PhD (Dec 15, 2026; GRE General optional; Subject optional may aid; TOEFL/IELTS/Duolingo; 3 LOR; 2 years min residency; 18 credits graded + 3.0 GPA + University Oral Candidacy Exam)
- Emory Chemistry PhD (Dec 1, 2026; $75 fee; Fall only; 3.0 GPA rec; 3 LOR up to 4; up to 5 faculty; rotations; does not require or allow GRE submission; TOEFL/IELTS; ETS 5187)
- UVA Chemistry PhD (Dec 1, 2026; GRE General NOT considered by Chemistry Admissions committee; rolling decisions Jan-mid-April; GSAS portal opens Oct 1; Fall generally/spring some years)
- UNC Chemistry PhD (Priority Dec 1, 2026; Final Dec 15, 2026; GRE not required; 3 LOR; TOEFL/IELTS/Duolingo <=2 years old; select one primary area; two paths direct or BBS umbrella)
- Duke Chemistry PhD (Dec 1, 2026 midnight EST; $105 fee; Fall only; GRE General optional; Subject optional recommended not required; TOEFL iBT 90 / IELTS 7.0; 3 LOR; typical UGPA 3.2+ / V+Q 308+ admitted distribution; 20 units graded + 3 lab rotations + RCR + Preliminary Exam Y2 Spring + Propositional Exam Y4)
Key finding: fourth tier continues GRE-free/optional pattern - Notre Dame optional, Emory does not require or allow submission, UVA does not consider General, UNC not required, Duke optional. This confirms third tier trend: non-Ivy/non-California Chemistry PhD programs have broadly moved to GRE-free.
"""
import os, re

BASE = os.path.dirname(os.path.abspath(__file__))
DET = os.path.join(BASE, "details")
os.makedirs(DET, exist_ok=True)

PROGRAMS = [
    {
        "id": "notre-chem-phd",
        "s": "notre",
        "n": "化学博士",
        "en": "PhD in Chemistry (University of Notre Dame, Department of Chemistry and Biochemistry; located in Notre Dame, IN; GRE General optional; Subject optional but may aid; 3 LOR; TOEFL/IELTS/Duolingo; 2 years minimum residency; 18 credits graded coursework + 3.0 GPA + University Oral Candidacy Exam; Dec 15 deadline)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; on-campus residential (Notre Dame, IN); minimum residency requirement: full-time status for four consecutive semesters (excluding summer sessions) = 2 years minimum; admission to candidacy requires 18 credits of approved graded coursework with cumulative GPA 3.0 or better plus passing University Oral Candidacy Exam; must be admitted to candidacy by end of eighth semester; research summary paper due 4 PM Sep 24 of third semester for Fall admits or Feb 22 for Spring admits",
        "ddl": "Fall 2027 (August): **Deadline December 15, 2026** per Notre Dame Department of Chemistry & Biochemistry Graduate Admissions page. Applications received after December 15 can be considered after contacting the Director of Graduate Admissions. Decisions on applications are made on an ongoing basis during late Fall and early Spring semesters. Early applications strongly encouraged. Accepted applicants required to make formal decision by April 15th.",
        "lang": "TOEFL, IELTS, or Duolingo English Test for non-native speakers of English. International applicants must also submit original language and English translation of each transcript (submitted online). Official TOEFL scores required from all non-native English speakers. ETS institution code per University of Notre Dame.",
        "test": {"cls": "GRE OPTIONAL (Notre Dame Department of Chemistry & Biochemistry Graduate Admissions page: 'Submission of GRE scores is no longer a requirement of the application to the doctoral programs in chemistry or biochemistry.' Graduate School degree programs page lists 'GRE General Test optional' and 'GRE Subject Test optional'. Chemistry or Biochemistry GRE Subject Exam Score is not required but may aid application. On application, highlight any research experience completed; ensure at least one LOR is from research supervisor if possible. Decisions based on: transcript (including GPA and difficulty of attempted coursework), GRE scores if submitted, statement of intent, all other factors. Required materials: completed online application, 3 letters of recommendation, CV, statement of intent. Contact: Emily Tsui DGS (574) 631-0005 etsui@nd.edu; Vlad Iluc Director of Graduate Admissions (574) 631-4042 viluc@nd.edu."},
        "tui": "Notre Dame Chemistry PhD students receive multi-year fully-funded support. Department of Chemistry & Biochemistry characterized by unsurpassed commitment to development of graduate students into well-rounded scientists who can take on leadership roles in industry, academia, or government. Commitment made possible through world-class faculty, outstanding facilities, extensive research and teaching opportunities, and relationships with other domestic and international programs. Interdisciplinary approach allows department to foster nearly limitless student interests. Separate PhD degrees in Chemistry and Biochemistry; students admitted into either Chemistry or Biochemistry PhD program. Minimum residency: four consecutive semesters full-time (excluding summer). Admission to candidacy: 18 credits approved graded coursework with cumulative GPA 3.0 or better plus University Oral Candidacy Exam. Must be admitted to candidacy by end of eighth semester. Located in Notre Dame, Indiana.",
        "url": "details/notre-chem-phd.html",
    },
    {
        "id": "emory-chem-phd",
        "s": "emory",
        "n": "化学博士",
        "en": "PhD in Chemistry (Emory University, Laney Graduate School, Department of Chemistry; located in Atlanta, GA; Dec 1 deadline; $75 fee; Fall only; does not require or allow submission of GRE; 3 LOR up to 4; up to 5 faculty of interest; rotations program - no need to secure advisor prior to admission; MS on way to PhD but no MS-only; ETS 5187)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; Fall semester entry only; on-campus residential (Atlanta, GA); all applications reviewed by admissions committee; successful applicants admitted into rotations program (no need to secure advisor prior to admission); second year Qualifying Exam (SYQE); third year Milestone; fourth year milestone; students can earn MS at Emory on the way to PhD but no MS-only program offered; application opens mid-September each year",
        "ddl": "Fall 2027 (August): **Deadline December 1, 2026** per Emory University Department of Chemistry Apply to the PhD Program page. Application opens mid-September each year. Application fee $75. Laney Graduate School offers fee waivers to students who attend certain programs that prepare them for graduate study and in cases where fee presents financial hardship. Applications only accepted for entry in Fall semester. April 15 reply date.",
        "lang": "TOEFL or IELTS required of applicants who have not studied for at least one year in an English-speaking country. Department suggests minimum score of 5.0 (TOEFL iBT) or 7.0 (IELTS), but every application reviewed holistically. ETS institution code 5187 (Emory University) - no department code needed. Toefl requirement waived for students who have studied for one or more years at domestic institution.",
        "test": {"cls": "GRE NOT REQUIRED AND NOT ALLOWED (Emory Department of Chemistry Lab Report article: 'Emory Chemistry does not require or allow submission of the GRE test, so this is not a consideration for us!' Laney Graduate School program admissions page: 'many ask for specific information about your research experience or other qualifications, and some programs require GRE scores (general test).' However Emory Chemistry is explicitly not one of them. Required materials: transcripts (unofficial fine for review; minimum GPA 3.0 suggested; most admitted students have GPA 3.5 but holistic review), email addresses for recommenders (3 required, up to 4 allowed), faculty of interest (filter faculty list on People page by 'Accepting Graduate Students'; choose up to 5), Statement of Purpose (recommended 1-3 pages, address research areas), Statement on Building Collaborative and Respectful Graduate Communities, Research Experience and Interests (list up to 5). ETS 5187 no department code needed."},
        "tui": "Emory Chemistry PhD students receive multi-year fully-funded support. Applications open in September each year and accepted online via Laney Graduate School. Application deadline December 1. Application fee $75. Laney Graduate School offers fee waivers to students who attend certain programs that prepare them for graduate study and in cases where fee presents financial hardship. While scholars can earn MS at Emory on the way to PhD, no MS-only program offered. Applications only accepted for entry in Fall semester. All applications reviewed by admissions committee; successful applicants admitted into rotations program - no need to secure advisor prior to admission. In 2022 Emory University received HEED Excellence in Diversity Award. As of Fall 2024 Department of Chemistry has woven inclusion into daily work through The Belonging Project (evidence-based inclusive meeting practices in chemistry committee meetings). Located in Atlanta, Georgia.",
        "url": "details/emory-chem-phd.html",
    },
    {
        "id": "uva-chem-phd",
        "s": "uva",
        "n": "化学博士",
        "en": "PhD in Chemistry (University of Virginia, Graduate School of Arts & Sciences, Department of Chemistry; located in Charlottesville, VA; Dec 1 deadline; GRE General NOT considered by Chemistry Admissions committee; rolling decisions January-mid-April; GSAS application portal opens October 1; Fall generally admission, Spring in some years)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; on-campus residential (Charlottesville, VA); generally students admitted to PhD program for fall term; in some years applications for spring term can be considered; Admissions Committee reviews applications to identify candidates with broad training in core areas of chemistry necessary to succeed in graduate coursework, teaching, and research",
        "ddl": "Fall 2027 (August): **Deadline December 1, 2026** per University of Virginia Department of Chemistry Applying to the PhD Program page. Applications and all supporting documents must be submitted through Graduate School of Arts & Sciences (GSAS) online application portal, which opens October 1. Admissions decisions are made on a rolling basis between January and mid-April. Given size of applicant pool, unable to provide status updates to applicants during this period. Technical questions related to application system: Graduate Admissions Office, email gsadmission@virginia.edu or phone (434) 243-0209.",
        "lang": "TOEFL iBT or IELTS Academic per UVA Graduate School of Arts & Sciences English proficiency requirement. Required for international applicants whose native language is not English and who have not completed degree at English-medium institution. Unofficial transcripts accepted for application review; students who accept offer of admission must submit official transcripts.",
        "test": {"cls": "GRE GENERAL NOT CONSIDERED (UVA Department of Chemistry Applying to the PhD Program page - Admission FAQs and Answers: 'Is the GRE general test scored required or accepted? No, the Chemistry Graduate Admissions committee will not consider scores from the General GRE exam.' Required materials: statement of purpose, unofficial transcripts (official required upon admission), letters of recommendation. Admissions Committee reviews applications to identify candidates with broad training in core areas of chemistry necessary to succeed in graduate coursework, teaching, and research. In addition to applicants with bachelor degrees in chemistry or biochemistry, candidates with degrees in allied disciplines (such as biology, chemical engineering, or physics) and who possess significant training in one or more core areas of chemistry will be considered. Applications submitted through GSAS online portal."},
        "tui": "UVA Chemistry PhD students receive multi-year fully-funded support. Admissions Committee reviews applications to identify candidates with broad training in core areas of chemistry necessary to succeed in graduate coursework, teaching, and research. In addition to applicants with bachelor degrees in chemistry or biochemistry, candidates with degrees in allied disciplines (such as biology, chemical engineering, or physics) and who possess significant training in one or more core areas of chemistry will be considered. Generally students admitted to PhD program for fall term; in some years applications for spring term can be considered. Applications submitted through GSAS online application portal which opens October 1. Admissions decisions on rolling basis between January and mid-April. Department located in Charlottesville, Virginia.",
        "url": "details/uva-chem-phd.html",
    },
    {
        "id": "unc-chem-phd",
        "s": "unc",
        "n": "化学博士",
        "en": "PhD in Chemistry (University of North Carolina at Chapel Hill, College of Arts & Sciences, Department of Chemistry; located in Chapel Hill, NC; Priority Dec 1, 2026; Final Dec 15, 2026; GRE not required; 3 LOR; TOEFL/IELTS/Duolingo <=2 years old; select one primary area: Analytical/Biological/Inorganic/Organic/Physical/Polymer-Materials; two paths: direct to Chemistry OR via Biological and Biomedical Sciences umbrella)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; on-campus residential (Chapel Hill, NC); two application paths available for certain doctoral programs: depending on objectives, may apply directly to Chemistry program OR via Biological and Biomedical Sciences (BBS) application umbrella; applicants should visit program websites to determine best fit; to facilitate appropriate review, select (only) one primary area of chemistry interested in pursuing",
        "ddl": "Fall 2027 (August): **PRIORITY DEADLINE December 1, 2026** per UNC Department of Chemistry. Applications received by this date receive priority consideration for departmental financial support and enjoy full internal fellowship eligibility. Final deadline: **December 15, 2026**. Fall Graduate School Fellowships December 15, 2026 (recommended). Academic Program Aid/Financial Assistance December 15, 2026 (recommended). Fall admission only.",
        "lang": "TOEFL, IELTS, or Duolingo English Test score (no more than two years old) for international applicants only. Required for applicants who have not completed degree at English-medium institution. ETS institution code per UNC Chapel Hill Graduate School.",
        "test": {"cls": "GRE NOT REQUIRED (UNC Chemistry program admissions page lists test requirements: 'GRE not required'; Letters of Recommendation 3; International Applicants Only TOEFL, IELTS or Duolingo English Test score (no more than two years old). Required materials: graduate school application, 3 letters of recommendation, statement of purpose, transcripts. PRIORITY DEADLINE for Department of Chemistry is December 1, 2026 - applications received by this date receive priority consideration for departmental financial support and full internal fellowship eligibility. To facilitate appropriate review, select (only) one primary area of chemistry interested in pursuing as: Analytical, Biological, Inorganic, Organic, Physical, or Polymer/Materials. Two application paths: direct to Chemistry OR via Biological and Biomedical Sciences (BBS) application umbrella - visit program websites to determine best fit for objectives."},
        "tui": "UNC Chemistry PhD students receive multi-year fully-funded support. Department offers two application paths for certain doctoral programs: depending on objectives, may apply directly to Chemistry program OR via Biological and Biomedical Sciences (BBS) application umbrella; visit program websites to determine best fit. Priority deadline December 1, 2026: applications received by this date receive priority consideration for departmental financial support and enjoy full internal fellowship eligibility. Final deadline December 15, 2026. To facilitate appropriate review, select (only) one primary area of chemistry: Analytical, Biological, Inorganic, Organic, Physical, or Polymer/Materials. Program Degrees: PhD CHEM, MS CHEM. Major Codes: CHEM. Admissions Term: Fall. Fall Graduate School Fellowships December 15, 2026 (recommended). Academic Program Aid/Financial Assistance December 15, 2026 (recommended). Department located in Chapel Hill, North Carolina.",
        "url": "details/unc-chem-phd.html",
    },
    {
        "id": "duke-chem-phd",
        "s": "duke",
        "n": "化学博士",
        "en": "PhD in Chemistry (Duke University, Graduate School, Department of Chemistry; located in Durham, NC; Dec 1, 2026 midnight EST; $105 fee; Fall only; GRE General optional; Subject optional recommended not required; TOEFL iBT 90 / IELTS 7.0; 3 LOR; typical UGPA 3.2+ / V+Q 308+ admitted distribution; 20 units graded coursework + 3 lab rotations + RCR + Preliminary Exam Y2 Spring + Propositional Exam Y4)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; Fall semester entry only; on-campus residential (Durham, NC); major requirements: 20 units of graded coursework (5 full credit Chemistry courses), 3 Lab Rotations, Responsible Conduct in Research Training (12 units), Preliminary Examination (year two, Spring), Propositional Examination (year 4). Graduate School requirements: payment of six semesters of full-time tuition, supervisory committee, continuous registration, preliminary examination, dissertation, final examination. Holistic review approach.",
        "ddl": "Fall 2027 (August): **Deadline Midnight, December 1, 2026 EST** per Duke Department of Chemistry How to Apply page. Application fee $105 (non-refundable). Duke Graduate School application deadlines page confirms Chemistry PhD deadline 12/01/2026 at 11:59:59 p.m. Eastern Standard Time. Department of Chemistry PhD Program considers applications for admission to fall semester only. Chemistry PhD applications completed and submitted to Graduate School in fall of year preceding expected year of entry. Note: How to Apply page states GRE 'optional for the Fall 2026 application cycle' - for Fall 2027 this extends to current cycle.",
        "lang": "TOEFL iBT minimum 90 for international applicants. IELTS also accepted with minimum score 7.0 required for admission consideration. Duolingo English Test accepted per Duke Graduate School. Required for international applicants whose first language is not English. Test waiver may apply for some applicants. ETS institution code per Duke University.",
        "test": {"cls": "GRE GENERAL AND SUBJECT OPTIONAL (Duke Department of Chemistry How to Apply page: 'The general GRE and Chemistry GRE subject tests will be optional for the FALL 2026 application cycle.' Department FAQ: 'The GRE subject test in chemistry is recommended, but not required. Absence of a GRE subject test in chemistry will not have a negative impact on an application.' Graduate School programs page lists 'GRE General: Optional' and 'GRE Subject - Chemistry: Optional'. Typical profile of successful applicants: overall UGPA 3.2 or higher, combined GRE Verbal and Quantitative scores over 1200 (scoring system used until Summer 2011) or 308 (Fall 2011 onwards scale) (admitted distribution, not minimum threshold), previous research experience in chemistry or related area. Required materials: Graduate School online application form (paper applications no longer available), letters of recommendation, transcripts, statement of purpose, resume. 3 LOR required. Undergraduate GPA calculated on 4.0 scale required. Unofficial transcripts required with application submission; official transcripts required upon admission."},
        "tui": "Duke Chemistry PhD students receive multi-year fully-funded support. Doctoral program in chemistry features research programs that span traditional sub-disciplines of chemistry, including analytical, biological, inorganic, organic, physical and theoretical chemistry. Major requirements: 20 units graded coursework (5 full credit Chemistry courses), 3 Lab Rotations, Responsible Conduct in Research Training (12 units), Preliminary Examination (year two, Spring), Propositional Examination (year 4). Graduate School requires: six semesters full-time tuition, supervisory committee, continuous registration, preliminary examination, dissertation, final examination. Application fee $105 non-refundable. Contact: Kevin Welsher, Director of Graduate Studies, Department of Chemistry, Duke University. Holistic review approach considers all parts of application to determine likelihood for success in program. Department located in Durham, North Carolina.",
        "url": "details/duke-chem-phd.html",
    },
]

DETAIL_TEMPLATE = """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{school} - {en}</title>
<style>
body{{font-family:-apple-system,'Segoe UI',Roboto,sans-serif;max-width:960px;margin:24px auto;padding:0 20px;color:#222;line-height:1.6}}
h1{{font-size:24px;border-bottom:2px solid #1a73e8;padding-bottom:8px}}
h2{{font-size:18px;color:#1a73e8;margin-top:24px}}
.card{{background:#f8f9fa;border-left:4px solid #1a73e8;padding:12px 16px;margin:12px 0;border-radius:4px}}
.meta{{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;font-size:14px}}
.meta b{{color:#555}}
ul{{margin:6px 0;padding-left:20px}}
.note{{background:#fff3cd;border-left-color:#ffc107;padding:10px 14px;margin-top:16px;font-size:13px}}
a{{color:#1a73e8}}
</style>
</head>
<body>
<h1>{school} - {en}</h1>
<div class="card">
<div class="meta">
<b>Degree</b><span>{deg}</span>
<b>Level</b><span>Research Doctorate (PhD)</span>
<b>STEM</b><span>{stem_label}</span>
<b>Duration</b><span>{dur}</span>
<b>Deadline</b><span>{ddl}</span>
<b>Language</b><span>{lang}</span>
<b>Standardized</b><span>{test_cls}</span>
<b>Funding</b><span>{tui}</span>
</div>
</div>

<h2>Program Overview</h2>
<div class="card">
{overview}
</div>

<h2>Admissions Requirements</h2>
<div class="card">
{requirements}
</div>

<h2>Research Areas</h2>
<div class="card">
{research}
</div>

<h2>Official Source</h2>
<div class="card">
{source}
</div>

<div class="note">
<strong>Note:</strong> Round 261 - Chemistry PhD fourth tier sweep (Notre Dame / Emory / UVA / UNC / Duke). Key finding: fourth tier continues the GRE-free/optional pattern observed in third tier - Notre Dame lists both General and Subject as optional, Emory explicitly does not require or allow GRE submission (similar to MIT), UVA Chemistry Admissions committee will not consider General GRE scores, UNC Graduate School lists GRE not required, Duke General and Subject both optional. This confirms that outside the Ivy League and California peer schools, Chemistry PhD programs have broadly moved to GRE-free or GRE-optional admissions. The pattern from Round 259 (second tier: Columbia/Yale/Caltech/Cornell all REQUIRED) appears limited to those specific high-pressure peer schools rather than a universal trend. All 5 programs are PhD-dominant with multi-year fully-funded support. All 5 programs admit for Fall semester only.
</div>
</body>
</html>
"""

PAGES = {
    "notre-chem-phd": {
        "school": "University of Notre Dame, Department of Chemistry and Biochemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501; Biochemistry)",
        "dur": "Typically 5-6 years; on-campus residential (Notre Dame, IN); minimum residency: full-time status for four consecutive semesters (excluding summer sessions) = 2 years minimum; admission to candidacy requires 18 credits of approved graded coursework with cumulative GPA 3.0 or better plus passing University Oral Candidacy Exam; must be admitted to candidacy by end of eighth semester; research summary paper due 4 PM Sep 24 of third semester (Fall admits) or Feb 22 (Spring admits); separate PhD degrees in Chemistry and Biochemistry",
        "ddl": "Fall 2027 (August): **Deadline December 15, 2026**. Applications received after December 15 can be considered after contacting Director of Graduate Admissions. Decisions made on ongoing basis during late Fall and early Spring semesters. Early applications strongly encouraged. Accepted applicants required to make formal decision by April 15th.",
        "lang": "TOEFL, IELTS, or Duolingo English Test for non-native speakers of English. International applicants must also submit original language and English translation of each transcript (submitted online). Official TOEFL scores required from all non-native English speakers.",
        "test_cls": "GRE OPTIONAL (dept page: 'Submission of GRE scores is no longer a requirement of the application to the doctoral programs in chemistry or biochemistry.' Graduate School degree programs page lists 'GRE General Test optional' and 'GRE Subject Test optional'. Chemistry or Biochemistry GRE Subject Exam Score is not required but may aid application. On application, highlight research experience; ensure at least one LOR from research supervisor if possible. Required: completed online application, 3 LOR, CV, statement of intent. Contact: Emily Tsui DGS (574) 631-0005 etsui@nd.edu; Vlad Iluc Director of Graduate Admissions (574) 631-4042 viluc@nd.edu).",
        "tui": "Multi-year fully-funded support. Department characterized by unsurpassed commitment to development of graduate students into well-rounded scientists for leadership in industry, academia, or government. World-class faculty, outstanding facilities, extensive research and teaching opportunities. Interdisciplinary approach. Minimum residency: four consecutive semesters full-time. Admission to candidacy: 18 credits graded coursework with GPA 3.0 or better plus University Oral Candidacy Exam. Must be admitted to candidacy by end of eighth semester.",
        "overview": "The University of Notre Dame Department of Chemistry & Biochemistry offers separate PhD degrees in Chemistry and in Biochemistry. Per the Department Graduate Admissions page: Required application materials: A completed online application; Three letters of recommendation. Submission of GRE scores is no longer a requirement of the application to the doctoral programs in chemistry or biochemistry. International applicants must also submit: An original language and an English translation of each transcript (submitted online); Official scores of the Test of English as a Foreign Language (TOEFL) from all non-native speakers of English. A Chemistry or Biochemistry GRE Subject Exam Score is not required but may aid your application. On your application, please highlight any research experience you have completed and ensure that at least one of the letters of recommendation is from a research supervisor if possible. Admission decisions are based on the following criteria: Your transcript (including GPA and difficulty of attempted coursework); GRE scores if submitted; Statement of intent; All other factors. Decisions on applications are made on an ongoing basis during the late Fall and early Spring semesters. Early applications are strongly encouraged. All applications for Fall admission should be received before December 15 for both the biochemistry program and the chemistry program. Applications received after the deadline can be considered after contacting the Director of Graduate Admissions. Accepted applicants are required to make a formal decision by April 15th. Per the Graduate School degree programs page: Chemistry: PhD - Graduate Program in Chemistry and Biochemistry - Deadline Dec. 15 - Degree Doctor of Philosophy - Residency 2 years minimum. Application Materials: GRE General Test optional; GRE Subject Test optional; TOEFL, IELTS, or Duolingo for non-native speakers of English; Curriculum vitae; Statement of intent; Three letters of recommendation. Contact: Emily Tsui, Director of Graduate Studies, Phone (574) 631-0005, Email etsui@nd.edu; Vlad Iluc, Director of Graduate Admissions, Phone (574) 631-4042, Email viluc@nd.edu. Per the Guide to Graduate Studies 2026-2027: The department offers separate Ph.D. degrees in Chemistry and in Biochemistry. Students are admitted into either the Chemistry or the Biochemistry PhD program. Admission to Candidacy: To qualify for admission to candidacy, a student must: (1) complete 18 credits of approved graded course work with a cumulative GPA of 3.0 or better; and (2) pass the University Oral Candidacy Exam. Students must be admitted to Candidacy by the end of their eighth semester. Residency and Degree Eligibility: The minimum residency requirement for either PhD degree is full-time status for four consecutive semesters (excluding summer sessions). Research summary paper is due by 4 PM on September 24 of the third semester (Fall admits) or February 22 of the third semester (Spring admits). The department is located in Notre Dame, Indiana.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or biochemistry</li><li>GRE General: OPTIONAL (no longer required per dept page)</li><li>GRE Subject: OPTIONAL (not required but may aid application)</li><li>Highlight research experience on application</li><li>At least one LOR from research supervisor if possible</li><li>Completed online application</li><li>Three letters of recommendation</li><li>Curriculum vitae</li><li>Statement of intent</li><li>International applicants: original language + English translation of each transcript (submitted online)</li><li>Official TOEFL scores from all non-native English speakers</li><li>TOEFL, IELTS, or Duolingo for non-native speakers</li><li>**Deadline December 15, 2026**</li><li>Applications after Dec 15 considered after contacting Director of Graduate Admissions</li><li>Decisions made on ongoing basis during late Fall and early Spring</li><li>Early applications strongly encouraged</li><li>Accepted applicants make formal decision by April 15th</li><li>Admission to candidacy: 18 credits graded coursework with cumulative GPA 3.0 or better</li><li>University Oral Candidacy Exam required</li><li>Must be admitted to candidacy by end of eighth semester</li><li>Minimum residency: four consecutive semesters full-time (excluding summer)</li><li>Research summary paper due 4 PM Sep 24 (Fall admits) or Feb 22 (Spring admits) of third semester</li><li>Separate PhD degrees in Chemistry and Biochemistry</li><li>Multi-year fully-funded support</li><li>On-campus residential (Notre Dame, IN)</li></ul>",
        "research": "<ul><li>Analytical Chemistry</li><li>Biological Chemistry</li><li>Biochemistry (separate PhD program)</li><li>Chemical Biology</li><li>Inorganic Chemistry</li><li>Materials Chemistry</li><li>Organic Chemistry</li><li>Physical Chemistry</li><li>Theoretical Chemistry</li><li>Nanoscience</li><li>Medicinal Chemistry</li><li>Computational Chemistry</li><li>Interdisciplinary research with Notre Dame departments of physics, biological sciences, chemical and biomolecular engineering, applied and computational mathematics, and Eck Institute for Global Health</li><li>Interdisciplinary approach fostering nearly limitless student interests</li></ul>",
        "source": '<a href="https://chemistry.nd.edu/graduate/admissions/" target="_blank">Notre Dame Department of Chemistry & Biochemistry Graduate Admissions (online application; 3 LOR; GRE no longer required; Chemistry/Biochem Subject not required but may aid; highlight research experience; at least one LOR from research supervisor; international transcripts original + English translation; TOEFL official from all non-native speakers; Dec 15 deadline; decisions ongoing late Fall-early Spring; early encouraged; April 15 decision)</a> | <a href="https://graduateschool.nd.edu/degree-programs/chemistry-phd---doctoral/" target="_blank">Notre Dame Graduate School Chemistry PhD (deadline Dec 15; Doctor of Philosophy; 2 years minimum residency; GRE General optional; GRE Subject optional; TOEFL/IELTS/Duolingo for non-native; CV; statement of intent; 3 LOR; contact Emily Tsui DGS (574) 631-0005 etsui@nd.edu; Vlad Iluc Director of Graduate Admissions (574) 631-4042 viluc@nd.edu)</a> | <a href="https://graduateschool.nd.edu/degree-programs/" target="_blank">Notre Dame Graduate School Degree Programs (Chemistry PhD deadline Dec 15; Biochemistry PhD deadline Dec 15; both in Graduate Program in Chemistry and Biochemistry; 2 years minimum residency; updated 9/19/2025)</a> | <a href="https://chemistry.nd.edu/assets/674184/guide_to_graduate_studies_2026_27.pdf" target="_blank">Notre Dame Chemistry & Biochemistry Guide to Graduate Studies 2026-2027 (separate PhD degrees in Chemistry and Biochemistry; admission to candidacy requires 18 credits graded coursework with GPA 3.0 or better plus University Oral Candidacy Exam; must be admitted to candidacy by end of eighth semester; minimum residency four consecutive semesters full-time; research summary paper due 4 PM Sep 24 Fall admits or Feb 22 Spring admits of third semester)</a>',
    },
    "emory-chem-phd": {
        "school": "Emory University, Laney Graduate School, Department of Chemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501)",
        "dur": "Typically 5-6 years; Fall semester entry only; on-campus residential (Atlanta, GA); successful applicants admitted into rotations program (no need to secure advisor prior to admission); second year Qualifying Exam (SYQE); third year Milestone; fourth year milestone; students can earn MS at Emory on the way to PhD but no MS-only program offered; application opens mid-September each year",
        "ddl": "Fall 2027 (August): **Deadline December 1, 2026**. Application opens mid-September each year. Application fee $75. Laney Graduate School offers fee waivers to students who attend certain programs that prepare them for graduate study and in cases where fee presents financial hardship. Applications only accepted for entry in Fall semester. April 15 reply date.",
        "lang": "TOEFL or IELTS required of applicants who have not studied for at least one year in an English-speaking country. Department suggests minimum score of 5.0 (TOEFL iBT) or 7.0 (IELTS), but every application reviewed holistically. ETS institution code 5187 (Emory University) - no department code needed. Toefl requirement waived for students who have studied for one or more years at domestic institution.",
        "test_cls": "GRE NOT REQUIRED AND NOT ALLOWED (dept Lab Report: 'Emory Chemistry does not require or allow submission of the GRE test, so this is not a consideration for us!' Required: transcripts (unofficial fine for review; min GPA 3.0 suggested; most admitted 3.5 but holistic), 3 LOR (up to 4), up to 5 faculty of interest (filter by 'Accepting Graduate Students'), SOP (1-3 pages), Statement on Building Collaborative and Respectful Graduate Communities, Research Experience and Interests (list up to 5). ETS 5187 no department code needed).",
        "tui": "Multi-year fully-funded support. Applications open in September each year and accepted online via Laney Graduate School. Application fee $75. Laney Graduate School offers fee waivers to students who attend certain preparation programs and in cases of financial hardship. While scholars can earn MS at Emory on the way to PhD, no MS-only program offered. Applications only accepted for entry in Fall semester. All applications reviewed by admissions committee; successful applicants admitted into rotations program - no need to secure advisor prior to admission. In 2022 Emory University received HEED Excellence in Diversity Award. As of Fall 2024 Department of Chemistry has woven inclusion into daily work through The Belonging Project.",
        "overview": "The Emory University Department of Chemistry, within the Laney Graduate School, offers the Doctor of Philosophy in Chemistry. Per the Apply to the PhD Program page: Applications to our PhD program open in September of each year and are accepted online via the Laney Graduate School. The application deadline is December 1. The application fee is $75. Laney Graduate School offers fee waivers to students who attend certain programs that prepare them for graduate study and in cases where the fee presents a financial hardship. While scholars can earn their MS at Emory on the way to the PhD, we do not offer an MS-only program. Applications are only accepted for entry in the Fall semester. All applications are reviewed by an admissions committee and successful applicants are admitted into our rotations program - there is no need to secure an advisor prior to admission. WHAT YOU NEED TO APPLY: Transcripts - Unofficial is fine for review purposes. We suggest a minimum GPA of 3.0. Most admitted students have a GPA of 3.5, but we review every application holistically. Email addresses for recommenders - We require 3 and allow up to 4. Faculty of Interest - Filter the faculty list on our People page by 'Accepting Graduate Students.' Choose up to five. Statement of Purpose - Recommended 1-3 pages. Address your research area(s). Statement on Building Collaborative and Respectful Graduate Communities. Research Experience and Interests - You will be asked to list up to five. Language Test Scores - TOEFL or IELTS required of applicants who have not studied for at least one year in an English-speaking country. We suggest a minimum score of 5 (TOEFL) or 7 (IELTS), but we review every application holistically. APPLICATION TIMELINE: September - Application opens in mid-September. December 1 - Final application deadline. April 15. Per the Lab Report article on cost of applying: Emory Chemistry does not require or allow submission of the GRE test, so this is not a consideration for us! Emory accepts unofficial transcripts for the application - these are often available to the student free of charge. We do require an official, sealed transcript be submitted directly to the graduate school. We also require submission of either TOEFL or IELTS scores for international applicants. We will waive this requirement for students who have studied for one or more years at a domestic institution. Per the Laney Graduate School program admissions page: In addition to the general Laney Graduate School application requirements, many programs require items specific to their application. For example, many require a writing sample, many ask for specific information about your research experience or other qualifications, and some programs require GRE scores (general test). If you are an international applicant, you may need to submit TOEFL scores or a credential evaluation. Our institution code for all three (GRE, GMAT, TOEFL) is 5187 (no department code is needed). Per the Path to the PhD page: Milestones: Group Matching Request for Graduate Scholars; Second Year Qualifying Exam (SYQE); Third Year Milestone Signature Form; Timeline to Degree or Intent to Graduate. The department is located in Atlanta, Georgia.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or related field</li><li>Minimum GPA 3.0 suggested (most admitted 3.5 but holistic review)</li><li>**GRE: NOT REQUIRED AND NOT ALLOWED** per dept page</li><li>Transcripts: unofficial fine for review; official sealed transcript required upon admission</li><li>3 letters of recommendation required; up to 4 allowed</li><li>Faculty of interest: filter faculty list on People page by 'Accepting Graduate Students'; choose up to 5</li><li>Statement of Purpose: recommended 1-3 pages, address research areas</li><li>Statement on Building Collaborative and Respectful Graduate Communities</li><li>Research Experience and Interests: list up to 5</li><li>TOEFL or IELTS required for applicants who have not studied at least one year in English-speaking country</li><li>Department suggests minimum 5.0 (TOEFL iBT) or 7.0 (IELTS) but holistic review</li><li>TOEFL requirement waived for students who have studied one or more years at domestic institution</li><li>ETS institution code 5187 (Emory University) - no department code needed</li><li>**Deadline December 1, 2026**</li><li>Application opens mid-September each year</li><li>Application fee $75</li><li>Laney Graduate School offers fee waivers to students from preparation programs or with financial hardship</li><li>Fall semester entry only</li><li>Rotations program - no need to secure advisor prior to admission</li><li>MS on the way to PhD but no MS-only program</li><li>Second Year Qualifying Exam (SYQE)</li><li>Third Year Milestone Signature Form</li><li>Fourth Year Milestone</li><li>April 15 reply date</li><li>Multi-year fully-funded support</li><li>On-campus residential (Atlanta, GA)</li></ul>",
        "research": "<ul><li>Analytical Chemistry</li><li>Biological Chemistry</li><li>Chemical Biology</li><li>Inorganic Chemistry</li><li>Materials Chemistry</li><li>Organic Chemistry</li><li>Physical Chemistry</li><li>Theoretical Chemistry</li><li>Biophysical Chemistry</li><li>Medicinal Chemistry</li><li>Neurochemistry</li><li>Interdisciplinary research with Emory departments of biology, biomedical engineering, physics, Laney Graduate School, Emory University School of Medicine, Rollins School of Public Health, Emory Vaccine Center</li><li>Chemistry in the News: Kyle Biegasiewicz wins funding for research designing new molecules</li></ul>",
        "source": '<a href="http://chemistry.emory.edu/graduate/apply.html" target="_blank">Emory Chemistry Apply to the PhD Program (applications open September; deadline Dec 1; fee $75; Laney fee waivers for preparation programs/hardship; Fall only; no MS-only; rotations program no advisor needed; transcripts unofficial review min 3.0 most admitted 3.5 holistic; 3 LOR up to 4; up to 5 faculty of interest; SOP 1-3 pages; Statement on Building Collaborative and Respectful Graduate Communities; Research Experience list up to 5; TOEFL/IELTS for applicants not studied 1 year in English-speaking country; suggested 5.0 TOEFL/7.0 IELTS holistic; April 15)</a> | <a href="https://news.emorychem.science/the-cost-of-applying-to-graduate-school/" target="_blank">Emory Chemistry Lab Report - Cost of Applying to Graduate School (Emory Chemistry does not require or allow submission of GRE; unofficial transcripts accepted for application; official sealed transcript required; TOEFL or IELTS for international; TOEFL waived for students who studied one or more years at domestic institution)</a> | <a href="https://gs.emory.edu/admissions/program-admissions-requirements.html" target="_blank">Emory Laney Graduate School Program Admissions Requirements (general LGS requirements; some programs require writing sample, research experience info, or GRE general test; international may need TOEFL or credential evaluation; ETS institution code 5187 no department code for GRE/GMAT/TOEFL)</a> | <a href="http://chemistry.emory.edu/graduate/path-phd.html" target="_blank">Emory Chemistry Path to the PhD (Milestones: Group Matching Request for Graduate Scholars; Second Year Qualifying Exam SYQE; Third Year Milestone Signature Form; Timeline to Degree or Intent to Graduate; Chemistry Handbook 2026-2027; CHEM 504 Rotations; Chem 599R Research & Evaluation; CHEM 606 Values in Science; Chem 798D Fourth Year Milestone; Chem 799R Research & Evaluation; TATT605)</a> | <a href="http://chemistry.emory.edu/index.html" target="_blank">Emory Department of Chemistry homepage (Apply to the PhD Program by Dec 1; Be bold, be innovative, be you, be an Emory chemist; The Belonging Project since Fall 2024; HEED Excellence in Diversity Award recipient 2022)</a>',
    },
    "uva-chem-phd": {
        "school": "University of Virginia, Graduate School of Arts & Sciences, Department of Chemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501)",
        "dur": "Typically 5-6 years; on-campus residential (Charlottesville, VA); generally students admitted to PhD program for fall term; in some years applications for spring term can be considered; Admissions Committee reviews applications to identify candidates with broad training in core areas of chemistry necessary to succeed in graduate coursework, teaching, and research",
        "ddl": "Fall 2027 (August): **Deadline December 1, 2026**. Applications and all supporting documents must be submitted through Graduate School of Arts & Sciences (GSAS) online application portal, which opens October 1. Admissions decisions are made on a rolling basis between January and mid-April. Given size of applicant pool, unable to provide status updates to applicants during this period. Technical questions related to application system: Graduate Admissions Office, email gsadmission@virginia.edu or phone (434) 243-0209.",
        "lang": "TOEFL iBT or IELTS Academic per UVA Graduate School of Arts & Sciences English proficiency requirement. Required for international applicants whose native language is not English and who have not completed degree at English-medium institution. Unofficial transcripts accepted for application review; students who accept offer of admission must submit official transcripts.",
        "test_cls": "GRE GENERAL NOT CONSIDERED (UVA Chemistry Applying to the PhD Program FAQ: 'Is the GRE general test scored required or accepted? No, the Chemistry Graduate Admissions committee will not consider scores from the General GRE exam.' Required: statement of purpose, unofficial transcripts (official required upon admission), letters of recommendation. In addition to chemistry/biochemistry bachelor degrees, candidates with degrees in allied disciplines (biology, chemical engineering, physics) with significant training in one or more core areas of chemistry considered. Applications submitted through GSAS online portal).",
        "tui": "Multi-year fully-funded support. Admissions Committee reviews applications to identify candidates with broad training in core areas of chemistry necessary to succeed in graduate coursework, teaching, and research. In addition to applicants with bachelor degrees in chemistry or biochemistry, candidates with degrees in allied disciplines (such as biology, chemical engineering, or physics) and who possess significant training in one or more core areas of chemistry will be considered. Generally students admitted to PhD program for fall term; in some years applications for spring term can be considered. Applications submitted through GSAS online application portal which opens October 1. Admissions decisions on rolling basis between January and mid-April. Department located in Charlottesville, Virginia.",
        "overview": "The University of Virginia Department of Chemistry, within the Graduate School of Arts & Sciences, offers the Doctor of Philosophy in Chemistry. Per the Applying to the PhD Program page: Application Requirements: The Admissions Committee reviews applications to identify candidates with the broad training in core areas of chemistry necessary to succeed in graduate coursework, teaching, and research. In addition to applicants with bachelor degrees in chemistry or biochemistry, candidates with degrees in allied disciplines (such as biology, chemical engineering, or physics) and who possess significant training in one or more core areas of chemistry will be considered. Generally, students are admitted to the PhD program for the fall term. In some years, applications for the spring term can be considered. Applications and all supporting documents must be submitted through the Graduate School of Arts & Sciences' (GSAS) online application portal, which opens on October 1st. The deadline for PhD Applications is December 1. Admissions decisions are made on a rolling basis between January and mid-April; given the size of our applicant pool, we are unable to provide status updates to applicants during this period. Technical questions related to the application system should be addressed to the Graduate Admissions Office, by email (gsasadmission@virginia.edu) or phone (434-243-0209). The following items are required for an application to be complete: Statement of purpose; Unofficial transcripts (students who accept an offer of admission must submit official transcripts); Letters of recommendation. Admission FAQs and Answers to Common Questions: Is the GRE general test scored required or accepted? No, the Chemistry Graduate Admissions committee will not consider scores from the General GRE exam. The department is located in Charlottesville, Virginia.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or biochemistry</li><li>OR candidate with degree in allied discipline (biology, chemical engineering, physics) with significant training in one or more core areas of chemistry</li><li>**GRE General: NOT CONSIDERED** by Chemistry Graduate Admissions committee</li><li>Statement of purpose required</li><li>Unofficial transcripts accepted for application review</li><li>Official transcripts required upon admission</li><li>Letters of recommendation required</li><li>TOEFL iBT or IELTS Academic for international applicants not holding English-medium degree</li><li>**Deadline December 1, 2026**</li><li>GSAS online application portal opens October 1</li><li>Fall admission generally; Spring term applications considered in some years</li><li>Admissions decisions on rolling basis between January and mid-April</li><li>No status updates provided during rolling review period</li><li>Technical questions: Graduate Admissions Office gsadmission@virginia.edu or (434) 243-0209</li><li>Multi-year fully-funded support</li><li>On-campus residential (Charlottesville, VA)</li></ul>",
        "research": "<ul><li>Analytical Chemistry</li><li>Biological Chemistry</li><li>Chemical Biology</li><li>Inorganic Chemistry</li><li>Materials Chemistry</li><li>Organic Chemistry</li><li>Physical Chemistry</li><li>Theoretical Chemistry</li><li>Biophysical Chemistry</li><li>Computational Chemistry</li><li>Interdisciplinary research with UVA departments of biology, biomedical engineering, physics, chemical engineering, materials science, Frank Batten School of Leadership and Public Policy, UVA School of Medicine</li><li>Allied discipline candidates (biology, chemical engineering, physics) with chemistry core training encouraged</li></ul>",
        "source": '<a href="https://chemistry.as.virginia.edu/applying-phd-program" target="_blank">UVA Department of Chemistry Applying to the PhD Program (Admissions Committee reviews broad training in core chemistry; bachelor in chemistry/biochemistry or allied disciplines with significant chemistry training; fall term admission generally, spring some years; GSAS portal opens Oct 1; deadline Dec 1; rolling decisions Jan-mid-April; no status updates; technical questions gsadmission@virginia.edu or 434-243-0209; required: SOP, unofficial transcripts official upon admission, LOR; FAQ: GRE general not required or accepted - Chemistry Admissions committee will not consider General GRE scores)</a>',
    },
    "unc-chem-phd": {
        "school": "University of North Carolina at Chapel Hill, College of Arts & Sciences, Department of Chemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501)",
        "dur": "Typically 5-6 years; on-campus residential (Chapel Hill, NC); two application paths available for certain doctoral programs: depending on objectives, may apply directly to Chemistry program OR via Biological and Biomedical Sciences (BBS) application umbrella; applicants should visit program websites to determine best fit; to facilitate appropriate review, select (only) one primary area of chemistry interested in pursuing",
        "ddl": "Fall 2027 (August): **PRIORITY DEADLINE December 1, 2026**. Applications received by this date receive priority consideration for departmental financial support and enjoy full internal fellowship eligibility. Final deadline: **December 15, 2026**. Fall Graduate School Fellowships December 15, 2026 (recommended). Academic Program Aid/Financial Assistance December 15, 2026 (recommended). Fall admission only.",
        "lang": "TOEFL, IELTS, or Duolingo English Test score (no more than two years old) for international applicants only. Required for applicants who have not completed degree at English-medium institution. ETS institution code per UNC Chapel Hill Graduate School.",
        "test_cls": "GRE NOT REQUIRED (UNC Chemistry program admissions page lists test requirements: 'GRE not required'; Letters of Recommendation 3; International Applicants Only TOEFL, IELTS or Duolingo English Test score (no more than two years old). Required: graduate school application, 3 LOR, SOP, transcripts. Priority deadline Dec 1, 2026 for priority financial support and full internal fellowship eligibility. Select one primary area: Analytical/Biological/Inorganic/Organic/Physical/Polymer-Materials. Two paths: direct to Chemistry OR via BBS umbrella).",
        "tui": "Multi-year fully-funded support. Department offers two application paths for certain doctoral programs: depending on objectives, may apply directly to Chemistry program OR via Biological and Biomedical Sciences (BBS) application umbrella; visit program websites to determine best fit. Priority deadline December 1, 2026: applications received by this date receive priority consideration for departmental financial support and enjoy full internal fellowship eligibility. Final deadline December 15, 2026. To facilitate appropriate review, select (only) one primary area of chemistry: Analytical, Biological, Inorganic, Organic, Physical, or Polymer/Materials. Program Degrees: PhD CHEM, MS CHEM. Major Codes: CHEM. Admissions Term: Fall. Fall Graduate School Fellowships December 15, 2026 (recommended). Academic Program Aid/Financial Assistance December 15, 2026 (recommended). Department located in Chapel Hill, North Carolina.",
        "overview": "The University of North Carolina at Chapel Hill Department of Chemistry offers the Doctor of Philosophy in Chemistry. Per the program admissions page: There are two application paths available for certain doctoral programs. Depending on your objectives, you may apply directly to the Chemistry program or you may apply via the Biological and Biomedical Sciences application umbrella. Please visit program websites to determine the best fit for your objectives. Programs Degrees Major Codes Admissions Term Deadline: Doctoral PhD CHEM Fall* December 15, 2026; Master's MS CHEM Fall* December 15, 2026; Fall Graduate School Fellowships December 15, 2026 (Recommended); Academic Program Aid/Financial Assistance December 15, 2026 (Recommended). Test Requirements: GRE not required; Letters of Recommendation 3; International Applicants Only TOEFL, IELTS or Duolingo English Test score (no more than two years old). Other Requirements: In addition to the University's required application materials, applicants should review the information below for additional expectations or application requirements. PRIORITY DEADLINE for the Department of Chemistry is December 1, 2026. Applications received by this date will receive priority consideration for departmental financial support and will enjoy full internal fellowship eligibility. To facilitate appropriate review of your application, please select (only) one primary area of chemistry (e.g., Analytical, Biological, Inorganic, Organic, Physical, or Polymer/Materials) that you are interested in pursuing as. The department is located in Chapel Hill, North Carolina.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or related field</li><li>**GRE: NOT REQUIRED** per Graduate School program admissions page</li><li>3 letters of recommendation required</li><li>TOEFL, IELTS, or Duolingo English Test score (no more than two years old) for international applicants only</li><li>Required for applicants not holding English-medium degree</li><li>Graduate school application</li><li>Statement of purpose</li><li>Transcripts</li><li>**PRIORITY DEADLINE December 1, 2026**</li><li>Applications by priority date receive priority consideration for departmental financial support</li><li>Priority date applications enjoy full internal fellowship eligibility</li><li>**Final Deadline December 15, 2026**</li><li>Fall Graduate School Fellowships December 15, 2026 (recommended)</li><li>Academic Program Aid/Financial Assistance December 15, 2026 (recommended)</li><li>Select one primary area of chemistry: Analytical, Biological, Inorganic, Organic, Physical, or Polymer/Materials</li><li>Two application paths: direct to Chemistry OR via Biological and Biomedical Sciences (BBS) application umbrella</li><li>Visit program websites to determine best fit for objectives</li><li>Fall admission only</li><li>Program Degrees: PhD CHEM, MS CHEM</li><li>Major Code: CHEM</li><li>Multi-year fully-funded support</li><li>On-campus residential (Chapel Hill, NC)</li></ul>",
        "research": "<ul><li>Analytical Chemistry (primary area)</li><li>Biological Chemistry (primary area)</li><li>Inorganic Chemistry (primary area)</li><li>Organic Chemistry (primary area)</li><li>Physical Chemistry (primary area)</li><li>Polymer/Materials Chemistry (primary area)</li><li>Chemical Biology</li><li>Biophysical Chemistry</li><li>Materials Chemistry</li><li>Theoretical Chemistry</li><li>Medicinal Chemistry</li><li>Nanoscience</li><li>Interdisciplinary research with UNC departments of biology, biochemistry and biophysics, biomedical engineering, physics, applied physical sciences, Eshelman School of Pharmacy, UNC School of Medicine, Lineberger Comprehensive Cancer Center</li><li>Biological and Biomedical Sciences (BBS) umbrella application path available</li></ul>",
        "source": '<a href="https://chem.unc.edu/graduate-program/" target="_blank">UNC Department of Chemistry Graduate Program (two application paths: direct to Chemistry OR via Biological and Biomedical Sciences umbrella; PhD CHEM and MS CHEM; Major Code CHEM; Fall admission; Dec 15, 2026 deadline; Fall Graduate School Fellowships Dec 15 recommended; Academic Program Aid/Financial Assistance Dec 15 recommended; GRE not required; 3 LOR; TOEFL/IELTS/Duolingo <=2 years old for international; PRIORITY DEADLINE Dec 1, 2026 for priority financial support and full internal fellowship eligibility; select one primary area: Analytical/Biological/Inorganic/Organic/Physical/Polymer/Materials)</a>',
    },
    "duke-chem-phd": {
        "school": "Duke University, Graduate School, Department of Chemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501)",
        "dur": "Typically 5-6 years; Fall semester entry only; on-campus residential (Durham, NC); major requirements: 20 units of graded coursework (5 full credit Chemistry courses), 3 Lab Rotations, Responsible Conduct in Research Training (12 units), Preliminary Examination (year two, Spring), Propositional Examination (year 4); Graduate School requires: six semesters full-time tuition, supervisory committee, continuous registration, preliminary examination, dissertation, final examination; holistic review approach",
        "ddl": "Fall 2027 (August): **Deadline Midnight, December 1, 2026 EST**. Application fee $105 (non-refundable). Duke Graduate School application deadlines page confirms Chemistry PhD deadline 12/01/2026 at 11:59:59 p.m. Eastern Standard Time. Department of Chemistry PhD Program considers applications for admission to fall semester only. Chemistry PhD applications completed and submitted to Graduate School in fall of year preceding expected year of entry. Note: How to Apply page states GRE 'optional for the Fall 2026 application cycle' - for Fall 2027 this extends to current cycle.",
        "lang": "TOEFL iBT minimum 90 for international applicants. IELTS also accepted with minimum score 7.0 required for admission consideration. Duolingo English Test accepted per Duke Graduate School. Required for international applicants whose first language is not English. Test waiver may apply for some applicants. ETS institution code per Duke University.",
        "test_cls": "GRE GENERAL AND SUBJECT OPTIONAL (dept How to Apply: 'The general GRE and Chemistry GRE subject tests will be optional for the FALL 2026 application cycle.' Department FAQ: 'The GRE subject test in chemistry is recommended, but not required. Absence of a GRE subject test in chemistry will not have a negative impact on an application.' Graduate School programs page lists 'GRE General: Optional' and 'GRE Subject - Chemistry: Optional'. Typical profile: UGPA 3.2+; combined V+Q 308+ (admitted distribution, not minimum threshold); previous research experience. Required: Graduate School online application (paper no longer available), 3 LOR, transcripts, SOP, resume. Unofficial transcripts required with application; official upon admission. Undergraduate GPA on 4.0 scale required).",
        "tui": "Multi-year fully-funded support. Doctoral program in chemistry features research programs that span traditional sub-disciplines: analytical, biological, inorganic, organic, physical and theoretical chemistry. Major requirements: 20 units graded coursework (5 full credit Chemistry courses), 3 Lab Rotations, Responsible Conduct in Research Training (12 units), Preliminary Examination (year two, Spring), Propositional Examination (year 4). Graduate School requires: six semesters full-time tuition, supervisory committee, continuous registration, preliminary examination, dissertation, final examination. Application fee $105 non-refundable. Contact: Kevin Welsher, Director of Graduate Studies, Department of Chemistry, Duke University. Holistic review considers all parts of application. Department located in Durham, North Carolina.",
        "overview": "The Duke University Department of Chemistry, within the Graduate School, offers the Doctor of Philosophy in Chemistry. Per the How to Apply page: The Admission Process - Fall 2027 Matriculant Application Deadline: Midnight, December 1. Applying to Duke Chemistry Ph.D. Program. The Department of Chemistry Ph.D. Program considers applications for admission to the fall semester only. Chemistry Ph.D. applications are completed and submitted to the Graduate School in the fall of the year preceding the applicant's expected year of entry into the program. The Department considers all applications from individuals with an undergraduate degree in chemistry or closely related field. Application materials include the Graduate School online application form (paper applications are no longer available), letters of recommendation, transcripts, official GRE scores (optional for the Fall 2026 application cycle), statement of purpose, and for foreign students, the TOEFL/IELTS score. All application materials and supporting documents must be submitted electronically. Holistic Review: The Duke Chemistry Ph.D. program evaluates applicants using a holistic approach in which all parts of the application are used to determine an applicant's likelihood for success in the program. Criteria considered when reviewing individual applications for admission into Duke Chemistry's Ph.D. include: GRE Scores. The general GRE and Chemistry GRE subject tests will be optional for the FALL 2026 application cycle. English Language Exam Scores. Per the FAQ: How much does it cost to apply and what are the major deadlines? The final deadline to submit an application for Fall 2027 admission to the doctoral program in Chemistry is mid-night (EST) December 1, 2026. The application fee is $105 (non-refundable). What are the GRE, GPA and TOEFL requirements for admission? The typical profile of successful applicants to the doctoral program in Chemistry at Duke can be found here. While the department does not have minimum score requirements, the typical applicant who gains admission has an overall UGPA of 3.2 or higher, combined GRE Verbal and Quantitative scores over 1200 (scoring system used until Summer 2011) or 308 (Fall 2011 onwards scale), and previous research experience in chemistry or a related area. International applicants must submit a TOEFL exam demonstrating facility with English. The minimum TOEFL scores for admission is 90 (iBT). The IELTS exam is also accepted, and a minimum score of 7.0 is necessary in order to be considered for admission. The GRE subject test in chemistry is recommended, but not required. Absence of a GRE subject test in chemistry will not have a negative impact on an application. Per the Graduate School programs page: Ph.D. in Chemistry - General Info - Students receiving Financial Aid: ...; Application Terms: Fall; Application Deadline: December 1. Contact: Kevin Welsher, Director of Graduate Studies, Department of Chemistry, Duke University. Program Description: The doctoral program in chemistry features research programs that span the 'traditional' sub-disciplines of chemistry, including analytical, biological, inorganic, organic, physical and theoretical chemistry. Application Information: Application Terms Available: Fall; Application Deadline: December 1. Graduate School Application Requirements: Transcripts - Unofficial transcripts required with application submission; official transcripts required upon admission; Letters of Recommendation - 3 Required; Statement of Purpose - Required; Resume - Required; GRE Scores - GRE General: Optional; GRE Subject - Chemistry: Optional; English Language Exam - TOEFL, IELTS, or Duolingo English Test required* for applicants whose first language is not English (*test waiver may apply for some applicants); GPA - Undergraduate GPA calculated on 4.0 scale required. Per the Graduate Studies Handbook 2025-2026: The major requirements of the PhD program are: 20 Units of Graded Course Work (5 full credit Chemistry courses); 3 Lab Rotations; Responsible Conduct in Research Training (12 units); Preliminary Examination (year two, Spring); Propositional Examination (year 4). Graduate School Requirements: In addition to any course requirements of the department, the Graduate School requires 1) payment of six semesters of full-time tuition, 2) a supervisory committee for the student's program of study, 3) continuous registration, 4) preliminary examination, 5) dissertation, and 6) final examination. The department is located in Durham, North Carolina.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or closely related field</li><li>Undergraduate GPA calculated on 4.0 scale required</li><li>Typical admitted UGPA 3.2 or higher (admitted distribution, not minimum threshold)</li><li>Typical combined GRE Verbal + Quantitative score 308+ (Fall 2011 onwards scale; admitted distribution, not minimum threshold)</li><li>Previous research experience in chemistry or related area expected</li><li>GRE General: OPTIONAL per How to Apply and Graduate School programs page</li><li>GRE Subject - Chemistry: OPTIONAL (recommended but not required; absence will not have negative impact)</li><li>TOEFL iBT minimum 90 for international applicants</li><li>IELTS minimum 7.0 for admission consideration</li><li>Duolingo English Test accepted per Duke Graduate School</li><li>English Language Exam required for applicants whose first language is not English</li><li>Test waiver may apply for some applicants</li><li>Graduate School online application form required (paper applications no longer available)</li><li>All application materials and supporting documents submitted electronically</li><li>3 letters of recommendation required</li><li>Transcripts: unofficial required with application; official required upon admission</li><li>Statement of Purpose required</li><li>Resume required</li><li>Application fee $105 (non-refundable)</li><li>**Deadline Midnight, December 1, 2026 EST**</li><li>Fall semester entry only</li><li>Chemistry PhD applications completed and submitted to Graduate School in fall of year preceding expected year of entry</li><li>Holistic review approach: all parts of application used to determine likelihood for success</li><li>Major requirements: 20 units graded coursework (5 full credit Chemistry courses)</li><li>3 Lab Rotations</li><li>Responsible Conduct in Research Training (12 units)</li><li>Preliminary Examination (year two, Spring)</li><li>Propositional Examination (year 4)</li><li>Graduate School requires: six semesters full-time tuition, supervisory committee, continuous registration, preliminary exam, dissertation, final examination</li><li>Contact: Kevin Welsher, Director of Graduate Studies</li><li>Multi-year fully-funded support</li><li>On-campus residential (Durham, NC)</li></ul>",
        "research": "<ul><li>Analytical Chemistry</li><li>Biological Chemistry</li><li>Inorganic Chemistry</li><li>Organic Chemistry</li><li>Physical Chemistry</li><li>Theoretical Chemistry</li><li>Biophysical Chemistry</li><li>Materials Chemistry</li><li>Medicinal Chemistry</li><li>Computational Chemistry</li><li>Interdisciplinary research with Duke departments of biomedical engineering, physics, biochemistry, cell biology, molecular biology, Duke University Medical Center, Duke Institute for Brain Sciences, Fitzpatrick Institute for Photonics, Duke Global Health Institute</li><li>Traditional sub-disciplines span the full range of chemistry</li></ul>",
        "source": '<a href="https://chem.duke.edu/graduate/admissions" target="_blank">Duke Chemistry How to Apply (Fall 2027 deadline Midnight Dec 1; Fall semester only; applications submitted to Graduate School fall of preceding year; undergrad in chemistry or closely related field; materials: Graduate School online application paper no longer available, LOR, transcripts, official GRE scores optional for Fall 2026 cycle, SOP, TOEFL/IELTS for foreign students; all electronic; holistic review; GRE General and Chemistry Subject optional for FALL 2026 cycle)</a> | <a href="https://chem.duke.edu/graduate/frequently-asked-questions" target="_blank">Duke Chemistry FAQ (final deadline midnight EST Dec 1, 2026; application fee $105 non-refundable; typical admitted UGPA 3.2+; combined V+Q 308+ admitted distribution; previous research experience; TOEFL minimum 90 iBT; IELTS minimum 7.0; GRE subject recommended but not required; absence of subject will not have negative impact)</a> | <a href="https://gradschool.duke.edu/admissions/application-deadlines/" target="_blank">Duke Graduate School Application Deadlines (all deadlines 11:59:59 p.m. Eastern Standard Time; if discrepancy adhere to this page; Chemistry PhD 12/01/2026; Pharmacology 12/01/2026; BME PhD 12/03/2026 guaranteed review then before closing 03/...; some programs continue accepting after deadline if spaces available - contact department)</a> | <a href="https://gradschool.duke.edu/academics/programs-degrees/chemistry/" target="_blank">Duke Graduate School PhD in Chemistry (General Info: students receiving financial aid; Application Terms Fall; Application Deadline December 1; Contact Kevin Welsher Director of Graduate Studies; Program Description: traditional sub-disciplines analytical/biological/inorganic/organic/physical/theoretical; Application Requirements: unofficial transcripts required with application official upon admission; 3 LOR; SOP required; Resume required; GRE General Optional; GRE Subject Chemistry Optional; TOEFL/IELTS/Duolingo required for non-native English - waiver may apply; undergraduate GPA on 4.0 scale required)</a> | <a href="https://chem.duke.edu/sites/chem.duke.edu/files/documents/GSHandbook_2025-26.pdf" target="_blank">Duke Chemistry Graduate Studies Handbook 2025-2026 (major requirements: 20 units graded coursework = 5 full credit Chemistry courses; 3 Lab Rotations; Responsible Conduct in Research Training 12 units; Preliminary Examination year two Spring; Propositional Examination year 4; Graduate School requires: six semesters full-time tuition, supervisory committee, continuous registration, preliminary exam, dissertation, final examination)</a>',
    },
}

# Write detail pages
for p in PROGRAMS:
    key = p["id"]
    d = PAGES[key]
    html = DETAIL_TEMPLATE.format(
        school=d["school"], en=d["en"], deg=d["deg"], stem_label=d["stem_label"],
        dur=d["dur"], ddl=d["ddl"], lang=d["lang"], test_cls=d["test_cls"], tui=d["tui"],
        overview=d["overview"], requirements=d["requirements"],
        research=d["research"], source=d["source"],
    )
    path = os.path.join(DET, key + ".html")
    with open(path, "w", encoding="utf-8") as f:
        f.write(html)
    print(f"Wrote: {key}.html")

# Append PROGRAMS
idx_path = os.path.join(BASE, "index_main.html")
with open(idx_path, "r", encoding="utf-8") as f:
    html = f.read()

def build_entry(p):
    stem_label = {1: "STEM-designated (Chemistry / CIP 40.0501)", 0: "Non-STEM"}[p["stem"]]
    return (
        '{{id:"{id}",s:"{s}",n:"{n}",en:"{en}",deg:"{deg}",lvl:"{lvl}",'
        'stem:{stem},'
        'dur:"{dur}",ddl:"{ddl}",lang:"{lang}",test:{{cls:"{test_cls}"}},'
        'tui:"{tui}",url:"{url}"}}'
    ).format(
        id=p["id"], s=p["s"], n=p["n"], en=p["en"], deg=p["deg"], lvl=p["lvl"],
        stem=p["stem"], dur=p["dur"], ddl=p["ddl"], lang=p["lang"],
        test_cls=p["test"]["cls"].replace('"', "'"),
        tui=p["tui"].replace('"', "'"), url=p["url"],
    )

new_entries = ",\n".join(build_entry(p) for p in PROGRAMS)

m = re.search(r'const\s+PROGRAMS\s*=\s*\[', html)
start = m.end()
depth = 1
i = start
while i < len(html) and depth > 0:
    c = html[i]
    if c == '[': depth += 1
    elif c == ']': depth -= 1
    i += 1
insert_pos = i - 1
prefix = html[:insert_pos].rstrip()
suffix = html[insert_pos:]
if prefix.endswith('{'):
    new_block = prefix + "\n" + new_entries + "\n" + suffix
else:
    new_block = prefix + ",\n" + new_entries + "\n" + suffix

# Append VD on new_block (re-locate to avoid offset)
vd_entries = ",\n".join(f'"{p["url"]}"' for p in PROGRAMS)
m2 = re.search(r'VERIFIED_DETAILS\s*=\s*new\s+Set\s*\(\s*\[', new_block)
vstart = m2.end()
vdepth = 1
j = vstart
while j < len(new_block) and vdepth > 0:
    c = new_block[j]
    if c == '[': vdepth += 1
    elif c == ']': vdepth -= 1
    j += 1
vinsert_pos = j - 1
vprefix = new_block[:vinsert_pos].rstrip()
vsuffix = new_block[vinsert_pos:]
if vprefix.endswith(','):
    new_block = vprefix + "\n" + vd_entries + "\n" + vsuffix
elif vprefix.endswith('['):
    new_block = vprefix + "\n" + vd_entries + "\n" + vsuffix
else:
    new_block = vprefix + ",\n" + vd_entries + "\n" + vsuffix

with open(idx_path, "w", encoding="utf-8") as f:
    f.write(new_block)

print(f"Appended {len(PROGRAMS)} PROGRAMS entries and {len(PROGRAMS)} VD entries")
print(f"Done. File size: {os.path.getsize(idx_path)}")
