# -*- coding: utf-8 -*-
"""Round 259: batch add 5 Chemistry PhD (second tier: UChicago / Columbia / Yale / Caltech / Cornell)
- UChicago Chemistry PhD (Dec 1, 2026; $90 fee; TOEFL 90/IELTS 7.0; GRE both General and Subject NOT required optional; 3 LOR; 9 graduate courses 6 at 300-level; 3.0 GPA; entering class 38-55; ETS 1832)
- Columbia Chemistry PhD (Dec 2, 2026 11:59pm ET; GRE General REQUIRED 2026-2027 cycle; TOEFL/IELTS/DET; 3 LOR; SOP + Personal Statement + Resume; no MA in chemistry PhD only; ~400 apps/year, 60-90 admitted, 20-30 matriculate; 5-year rule; ETS 2111)
- Yale Chemistry PhD (Dec 1, 2026 11:59pm ET; GRE General REQUIRED per GSAS 2026-06-29 table; TOEFL/IELTS; 3 LOR + SOP; PhD only no MS; ETS 3987; 12-month stipend + full tuition + healthcare; 5-year full funding; fields biophysical/chemical biology/inorganic/materials/organic/physical/theoretical)
- Caltech Chemistry PhD (Dec 1, 2026; GRE REQUIRED for all chemistry program applicants; no TOEFL/IELTS required assessed through faculty interviews; $100 fee; 3 LOR + SOP + CV; no MS ordinarily offered; ETS 4034; Fall only; one option per cycle)
- Cornell Chemistry and Chemical Biology PhD (Dec 1, 2026 Fall; GRE REQUIRED; 3 LOR; TOEFL/IELTS; ETS 2098; 3 three-week rotations before joining lab; 5-year full support 12-month stipend + tuition + health insurance; ILA language assessment for international students; ACS proficiency exams inorganic/organic/physical)
Key finding: Second tier GRE policy much stricter than first tier - only UChicago optional; Columbia/Yale/Caltech/Cornell all REQUIRED. Continues trend reversal pattern.
"""
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": "uchicago-chem-phd",
        "s": "uchicago",
        "n": "化学博士",
        "en": "PhD in Chemistry (University of Chicago, Physical Sciences Division, Department of Chemistry; located in Chicago, IL; GRE both General and Subject not required optional component at applicant discretion; TOEFL 90/IELTS 7.0; entering class 38-55; candidacy exam before end of fifth quarter)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; students normally admitted beginning Autumn quarter; sequential nature of some courses makes Autumn the best time to begin; Master of Science (SM) program of appropriate rigor maintained but department does not offer financial support to students whose degree goal is master's; on-campus residential (Chicago, IL); candidacy examination required before end of fifth quarter in residence",
        "ddl": "Fall 2027 (Autumn quarter matriculation): **Deadline Monday, December 1, 2026** per UChicago Department of Chemistry PhD Application Information. Application fee $90. Application may be considered at any time at discretion of admissions committee but students strongly encouraged to complete by December 1. Information sessions hosted in November (Nov 4 and Nov 11, 2026). Students list faculty of interest before submitting application.",
        "lang": "TOEFL iBT minimum 90 overall; IELTS Academic minimum overall band 7.0 overall. Only TOEFL iBT or IELTS Academic tests accepted as proof of English proficiency. Required for applicants who do not meet waiver criteria. ETS institution code 1832 (University of Chicago); department code 0705 Chemistry (or per program).",
        "test": {"cls": "GRE BOTH GENERAL AND SUBJECT NOT REQUIRED OPTIONAL (UChicago Department of Chemistry current page: 'Both the Chemistry subject and general GRE test scores are not required. We note that they may be included as an optional component to the application, at the applicant discretion.' Note: older graduateannouncements.uchicago.edu PDF states 'GRE examination (advanced test in chemistry is recommended)' - legacy PDF superseded by current department web page. Required materials: online application, undergraduate transcripts (one official copy from each institution attended), 3 letters of recommendation, TOEFL iBT or IELTS Academic scores, statement of purpose, CV/resume. Application fee $90, waiver available for eligible categories."},
        "tui": "UChicago Chemistry PhD students receive full funding package. Per department policy: all PhD students admitted with support. Typical funding: multi-year tuition fellowship + stipend + health insurance. Teaching requirement: all candidates for PhD required to participate in some form of teaching, typically serving as teaching assistant for three quarters. Students normally conduct research during summer and receive financial support. Entrance class between 38 and 55 students per year. Department has no admissions quota. 9 graduate courses required (300/400/500-level), at least 6 at 300-level, at least 4 in Chemistry, at least 2 foundational, minimum 3.0 GPA in courses.",
        "url": "details/uchicago-chem-phd.html",
    },
    {
        "id": "col-chem-phd",
        "s": "col",
        "n": "化学博士",
        "en": "PhD in Chemistry (Columbia University, Graduate School of Arts and Sciences, Department of Chemistry; located in New York, NY; GRE General REQUIRED 2026-2027 cycle; no MA program in chemistry - PhD only; 5-year rule; ~400 applications per year; 60-90 admitted, 20-30 matriculate)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "5-year rule for PhD degree; vast majority of students defend thesis before end of fifth year in residence; exceptions on case-by-case basis; no MA program in chemistry (department considers applications only from prospective PhD students); on-campus residential (New York, NY); required: entrance exams in chemistry, 5 graduate courses, 3 semesters as teaching assistant; research progress presentation in second year; original research project proposal in fourth year; dissertation defense at end of fifth year",
        "ddl": "Fall 2027 (September matriculation): **Deadline December 2, 2026 at 11:59 PM Eastern Time** per Columbia GSAS Chemistry program page and GSAS Admissions Deadlines list. All deadlines are 11:59 PM Eastern Time for published date. Decisions are made on an ongoing basis beginning early January and going up until first week of April. Spring admission not listed for Chemistry PhD.",
        "lang": "TOEFL iBT, IELTS Academic, or Duolingo English Test (DET) per Columbia GSAS English proficiency requirement. Required for applicants whose undergraduate degree is from institution in country whose official language is not English. ETS institution code 2111 (Columbia University); department code per Chemistry program. TOEFL/IELTS/DET exemptions available per GSAS policy.",
        "test": {"cls": "GRE GENERAL REQUIRED (Columbia Department of Chemistry FAQ: 'The GRE is required for admission in the 2026-2027 admissions cycle. The scores must be included in your application. They may not be emailed to our office.' GSAS Chemistry program page also lists GRE General: Yes. Required materials: online application, one transcript showing courses and grades per school attended, statement of academic purpose, personal statement, 3 letters of evaluation from academic sources (at least 2 from academic recommenders; up to 4 letters may be included), resume/CV, GRE General scores (required), English proficiency scores if applicable. Writing sample: No. Resume: Yes. Note: Columbia does not offer an MA program in chemistry - department can consider applications only from students intending to pursue PhD degree."},
        "tui": "Columbia Chemistry PhD students receive multi-year fully-funded support through GSAS. 5-year rule with vast majority defending before end of fifth year. Department receives approximately 400 applications each year and admits 60-90 students, 20-30 of whom matriculate. Required: entrance exams in chemistry, 5 graduate courses, 3 semesters as teaching assistant. Research progress presentation in second year; original research project proposal in fourth year; dissertation defense at end of fifth year. Located in New York, NY. Director of Admissions: Tim Berkelbach, Department of Chemistry, 3000 Broadway, Mail Code 3109, New York, NY 10027, (212) 854-2202.",
        "url": "details/col-chem-phd.html",
    },
    {
        "id": "yale-chem-phd",
        "s": "yale",
        "n": "化学博士",
        "en": "PhD in Chemistry (Yale University, Graduate School of Arts and Sciences, Department of Chemistry; located in New Haven, CT; strictly PhD program no master's offered; GRE General REQUIRED per GSAS 2026-06-29 table; 12-month stipend + full tuition + healthcare; 5-year full funding; fields biophysical/chemical biology/inorganic/materials/organic/physical/theoretical)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Strictly a PhD program; master's program is not offered at this time; typically 5-6 years; on-campus residential (New Haven, CT); students may receive Master of Science (M.S.) degree en route to PhD; qualifying examination demonstrates ability to explain research plans for PhD dissertation to panel of faculty in both written and oral form; final pairing of students with research groups occurs during first year",
        "ddl": "Fall 2027 (August matriculation): **Deadline December 1, 2026 at 11:59 PM Eastern Time** per Yale GSAS Chemistry program page and GSAS Dates & Deadlines list. All deadlines are 11:59 PM Eastern Time. Accepted students notified in late winter; spring hosting of two visiting days to show prospective graduate students Yale and New Haven. Application opens mid-August 2026. Applications can be saved and reopened multiple times before final submission.",
        "lang": "TOEFL iBT or IELTS Academic required of most applicants whose native language is not English. Exempt if received (or will receive) undergraduate degree from college or university where English is primary language of instruction and studied in residence at that institution for at least three years. ETS institution code 3987 (Yale Graduate School of Arts and Sciences); no department code needed for Chemistry. Applicants should schedule standardized tests no later than November to allow official scores to reach Graduate School before program deadline.",
        "test": {"cls": "GRE GENERAL REQUIRED (Yale GSAS Standardized Testing Requirements table dated June 29, 2026: Chemistry - Required. Yale Department of Chemistry Application Process: 'For this year's application, the GRE General is required. Scores for these examinations must be officially released to Yale University Graduate School of Arts and Sciences, institution code 3987. These scores are used as components of a holistic evaluation of an applicant's qualifications, with due consideration of the limitations of the GRE score.' Required materials: electronic application (available mid-August 2026), transcripts (scanned copy from institution's Student Information System Portal or 'issued to student' transcript), GRE scores (required), TOEFL scores (if applicable), 3 letters of recommendation, personal statement of purpose. Note: no master's program - strictly PhD."},
        "tui": "Yale Chemistry PhD students receive multi-year fully-funded support. Per GSAS program page: PhD students at Yale are normally fully-funded. During their programs, students receive a twelve-month stipend to cover living expenses and a fellowship that covers the full cost of tuition and student healthcare. Fields of study: biophysical chemistry, chemical biology, inorganic chemistry, materials chemistry, organic chemistry, physical chemistry, theoretical chemistry. Department relatively small size facilitates meaningful interactions between students and internationally known faculty. DGS: Pat Loria (patrick.loria@yale.edu). Departmental Registrar: Kara Swenson (chemistry.dgs@yale.edu), 203-432-3913. Some students come to Yale summer before matriculation to sample research group; final pairing during first year.",
        "url": "details/yale-chem-phd.html",
    },
    {
        "id": "caltech-chem-phd",
        "s": "caltech",
        "n": "化学博士",
        "en": "PhD in Chemistry (California Institute of Technology, Division of Chemistry and Chemical Engineering; located in Pasadena, CA; GRE required for all chemistry program applicants; no TOEFL/IELTS required assessed through faculty interviews; $100 fee; no MS ordinarily offered; one option per cycle; fall only)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5-6 years; Master's degree in chemistry or chemical engineering not ordinarily offered except under special circumstances with prior approval of Graduate Study Committee; fall only admission; on-campus residential (Pasadena, CA); Caltech conducts admissions once each year; all decisions posted no later than April 1; applicants may only apply to one academic option during each admission cycle",
        "ddl": "Fall 2027 (September matriculation): **Deadline December 1, 2026** per Caltech Division of Chemistry and Chemical Engineering Graduate Admissions page and Caltech Graduate Office Application Deadlines PDF. Application system closes at 12:01am on day following posted deadline. Late applications may be considered but may be at disadvantage in allocation of assistance or priority for admission. All decisions posted no later than April 1, 2027.",
        "lang": "English proficiency test scores are no longer required for admission for students coming from non-English speaking countries. English proficiency is required and will be assessed through interviews with faculty. No TOEFL/IELTS minimum score posted. ETS institution code 4034 (California Institute of Technology); no department code needed for Chemistry. Caltech conducts interviews with international applicants to assess English proficiency.",
        "test": {"cls": "GRE REQUIRED FOR ALL CHEMISTRY PROGRAM APPLICANTS (Caltech Division of Chemistry and Chemical Engineering: 'GRE is required for all chemistry program applicants. Students who are unable to complete the GRE prior to the deadline due to poor test site availability should reach out to Allison Kinard and will be considered on a case-by-case basis.' Required materials: free CollegeNET account, online application (applyweb.com/caltgapp), application fee $100 or fee waiver request, Statement of Purpose, official electronic copy of transcripts or online grade reports (updated grade reports for terms in progress not required; official transcripts from Registrar's Office required prior to enrollment), 3 individuals from whom LOR requested, CV or Resume. Admissions committee considers: LOR, grades in college particularly those in chemistry/biochemistry/related subjects, research experience including resulting publications or presentations, GRE scores (chemistry program only), statement of purpose. Note: applicants may only apply to one academic option during each admission cycle; if referred to another option, no additional fee or duplicate application."},
        "tui": "Caltech Chemistry PhD students receive multi-year fully-funded support. Per Caltech Graduate Studies: no minimum GPA or other quantitative metric used in evaluation. Personal statement, transcripts, and letters of recommendation all taken into consideration. Caltech is committed to supporting students and scholars affected by Israel-Gaza and Ukraine-Russia conflicts irrespective of citizenship; candidates in region affected may be able to apply after posted deadline contacting respective Option Representative. Application fee $100 USD; fee waivers granted to limited number of applicants demonstrating financial need or affiliated with organizations with special arrangements. Graduate Office contact: Allison Kinard (GRE accommodations for chemistry applicants unable to complete GRE due to test site availability). Fall only admissions.",
        "url": "details/caltech-chem-phd.html",
    },
    {
        "id": "cornell-chem-cb-phd",
        "s": "cornell",
        "n": "化学与化学生物学博士",
        "en": "PhD in Chemistry and Chemical Biology (Cornell University, Graduate School, Field of Chemistry and Chemical Biology; located in Ithaca, NY; GRE required; 3 three-week rotations before joining lab; 5-year full support 12-month stipend + tuition + health insurance; ILA language assessment for international students; ACS proficiency exams inorganic/organic/physical; fields Analytical/Bioinorganic/Bioorganic/Biophysical/Chemical Biology/Inorganic/Organic/Physical/Theoretical)",
        "deg": "PhD",
        "lvl": "d",
        "stem": 1,
        "dur": "Typically 5 years; PhD program begins during second week of August (one week before official start of Fall Semester); on-campus residential (Ithaca, NY); three three-week rotations before officially joining laboratory; special committee of 3+ faculty members overseeing graduate studies; proficiency tests in inorganic, organic, and physical chemistry (American Chemical Society exams) given a few days before registration; international students must pass International Teaching Assistant Language Assessment (ILA) administered by Cornell Center for Teaching Excellence; if ILA requires more formal training in English, ESL course must be completed during first semester of matriculation",
        "ddl": "Fall 2027 (August matriculation): **Deadline December 1, 2026** per Cornell University Courses catalog and Department of Chemistry and Chemical Biology How to Apply. Review of applications begins on first Monday in December each year for admission beginning following August. Although applications received after this date will be reviewed, late applicants may be at a disadvantage for admission into the program. Applicants may be asked to participate in Zoom or in-person interview as part of admissions process. No Spring admissions to either PhD or MS program.",
        "lang": "TOEFL iBT or IELTS Academic per Cornell Graduate School English language proficiency requirement. Required for all applicants. ETS institution code 2098 (Cornell University); department codes not needed for matching scores to applications; if ETS requires department code, choose 0000 undecided. GRE scores valid 5 years from test date. International students who receive offer of admission to PhD program must pass International Teaching Assistant Language Assessment (ILA) and interview administered through Cornell University Center for Teaching Excellence (CTE).",
        "test": {"cls": "GRE REQUIRED (Cornell University Courses catalog: Chemistry and Chemical Biology PhD - 'GRE scores are required.' Required materials: online application through Cornell Graduate School, application fee, course record form, transcripts (equivalent of US bachelor's degree in chemistry including courses in analytical, inorganic, organic, physical chemistry, as well as mathematics and physics; unusually promising students may be admitted with deficiencies in undergraduate training), 3 recommendations, GRE scores (required), English proficiency scores (if applicable). Supplemental materials such as publications or awards may be sent directly to Graduate Studies Office, 103 Baker Laboratory, Ithaca, NY 14853-1301. Contact: chemgrad@cornell.edu, 607-255-4139, 136 Baker Laboratory. Note: entering students required to register with department at beginning of first term; proficiency tests in inorganic/organic/physical chemistry required of all entering PhD degree candidates (given by ACS)."},
        "tui": "Cornell Chemistry and Chemical Biology PhD students are guaranteed at least 5 years of full financial support as long as making satisfactory progress toward PhD degree. This support includes a 12-month stipend, a full tuition award, and health insurance. Financial support comes in form of teaching assistantships, graduate research assistantships, research fellowships, and several NIH-funded training grant programs such as Chemistry Biology Interface (CBI). All PhD students take series of graduate proficiency exams in Organic, Inorganic, and Physical Chemistry provided by American Chemical Society (ACS). Each incoming student completes three three-week rotations before officially joining a laboratory. Special Committee of 3+ faculty members representing major and minor areas of study. Department has been home to four Nobel Prize winners, was founding institution for Journal of Physical Chemistry, consistently ranked Top 10 Chemistry graduate program by U.S. News & World Report. Subfields: Analytical, Bioinorganic, Bioorganic, Biophysical, Chemical Biology, Inorganic, Organic, Physical, Theoretical. Contact: Graduate Field Administrator David B... per department website.",
        "url": "details/cornell-chem-cb-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 259 - Chemistry PhD second tier sweep (UChicago / Columbia / Yale / Caltech / Cornell). Key finding: second tier GRE policy is much stricter than first tier - only UChicago treats both General and Subject as not required optional; Columbia/Yale/Caltech/Cornell all REQUIRED. This continues the trend reversal pattern observed in Physics and Mathematics PhD where peer schools split sharply. UChicago current department web page explicitly states both General and Subject GRE are not required (optional at applicant discretion); older graduateannouncements.uchicago.edu PDF stating 'GRE examination (advanced test in chemistry is recommended)' is legacy and superseded. Columbia Chemistry FAQ explicitly states GRE required for 2026-2027 cycle and scores must be included in application (cannot be emailed); GSAS Chemistry program page also lists GRE General: Yes. Yale GSAS Standardized Testing Requirements table dated June 29, 2026 explicitly lists Chemistry - Required; institution code 3987. Caltech CCE explicitly states GRE required for all chemistry program applicants (with case-by-case accommodation via Allison Kinard for test site availability issues); no TOEFL/IELTS required anymore - English proficiency assessed through faculty interviews. Cornell Courses catalog explicitly lists GRE scores required for Chemistry and Chemical Biology PhD; ETS institution code 2098. This round confirms that Chemistry PhD is a divided field: MIT/Stanford/Harvard/Princeton/UChicago have gone GRE-free or optional, while Berkeley/Columbia/Yale/Caltech/Cornell continue to require GRE General. All 5 programs maintain PhD-only or PhD-dominant admissions with no terminal MS. All 5 programs offer multi-year fully-funded support.
</div>
</body>
</html>
"""

PAGES = {
    "uchicago-chem-phd": {
        "school": "University of Chicago, Physical Sciences Division, 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; students normally admitted beginning Autumn quarter; SM program maintained but department does not offer financial support to students whose degree goal is master's; on-campus (Chicago, IL); candidacy exam before end of fifth quarter in residence",
        "ddl": "Fall 2027 (Autumn quarter): **Deadline Monday, December 1, 2026**. Application fee $90. Information sessions Nov 4 and Nov 11, 2026. Students list faculty of interest before submitting application.",
        "lang": "TOEFL iBT minimum 90 overall; IELTS Academic minimum overall band 7.0. Only TOEFL iBT or IELTS Academic accepted as proof of English proficiency. ETS institution code 1832; department code 0705 Chemistry.",
        "test_cls": "GRE BOTH GENERAL AND SUBJECT NOT REQUIRED OPTIONAL (current dept page: both Chemistry subject and general GRE test scores are not required; may be included as optional component at applicant discretion). Required: online application, undergraduate transcripts (one official copy from each institution attended), 3 LOR, TOEFL iBT or IELTS Academic scores, SOP, CV/resume. $90 fee (waiver available).",
        "tui": "Full funding package. All PhD students admitted with support. Typical: multi-year tuition fellowship + stipend + health insurance. Teaching: 3 quarters as TA. Entering class 38-55 students/year; no admissions quota. 9 graduate courses required (300/400/500-level), at least 6 at 300-level, at least 4 in Chemistry, at least 2 foundational, 3.0 GPA minimum.",
        "overview": "The University of Chicago Department of Chemistry, within the Physical Sciences Division, offers the Doctor of Philosophy in Chemistry. Per the Department PhD Application Information page: Welcome to the essential guide for navigating the PhD application process within the Department of Chemistry at the University of Chicago. This resource outlines all the necessary details on required application materials, deadlines, and specific departmental expectations for prospective doctoral candidates. The Department of Chemistry will host two Information Sessions regarding the application process and the PhD Program in Chemistry in November (Nov 4, 2026 6:00-7:00 PM Chicago/Central time and Nov 11, 2026 8:00-9:00 AM Chicago/Central time; both sessions cover identical information). Completing the Application: A completed application requires undergraduate transcripts (one official copy from each institution attended), three letters of recommendation, and GRE scores (legacy page - superseded by current policy). Important Reminders: This year's deadline for applications is Monday, December 1st, 2026. The Application Fee is $90. Please note that this fee can be waived if the applicant falls in one of several categories listed. When applying online you will be asked to list faculty of interest before submitting your application. Only the TOEFL iBT or IELTS Academic tests are accepted as proof of proficiency. The Department of Chemistry requires a minimum TOEFL score of 90 overall or a minimum IELTS score of 7.0 overall. Per the current PhD Application Information page: Both the Chemistry subject and general GRE test scores are not required. We note that they may be included as an optional component to the application, at the applicant discretion. Per the Graduate Announcements PDF: Students are normally admitted beginning with the autumn quarter of each year. The sequential nature of some of our courses makes this the best time to begin graduate studies. Although applications may be considered at any time at the discretion of the admissions committee, students are strongly encouraged to complete their applications by December 1st. The department has no admissions quota and in recent years the entering class has numbered between 38 and 55. A well defined Master of Science (S.M.) program of appropriate rigor is maintained, but the Department of Chemistry does not offer financial support to students whose degree goal is the master's degree. This degree is neither a prerequisite for, nor a forerunner of, the Ph.D. Per the Chemistry Graduate Program Policy Guide (September 2026): Each candidate shall satisfactorily complete nine courses selected from the graduate offerings (300, 400 and 500-level) in the Department of Chemistry and in related departments in PME or the Physical and Biological Sciences Divisions. At least six of these courses shall be 300-level courses. At least four 300-level courses must be taken in Chemistry, and at least two of these four courses must be a Chemistry course designated as foundational. Up to two courses may be taken from a list of pre-approved non-chemistry courses. A 3.0 GPA in courses must be obtained. Per the PhD Program page: Year 1 - In the first year, students must satisfactorily complete six graduate-level courses in the Department of Chemistry or approved courses in other departments with a B average. Most students select their research advisor by the winter quarter of their first year and are engaged in research by spring. All candidates for the Ph.D. are required to participate in some form of teaching, typically serving as a teaching assistant for three quarters. Year 2 - Qualified students then prepare for the Ph.D. candidacy examination, which must be taken before the end of the fifth quarter in residence, normally in October. The department is located in Chicago, Illinois.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or related field</li><li>GRE General: not required (optional at applicant discretion per current dept page)</li><li>GRE Chemistry Subject: not required (optional at applicant discretion per current dept page)</li><li>TOEFL iBT minimum 90 overall</li><li>IELTS Academic minimum overall band 7.0 overall</li><li>Only TOEFL iBT or IELTS Academic accepted as proof of English proficiency</li><li>ETS institution code 1832; department code 0705 Chemistry</li><li>UChicago online application</li><li>Application fee $90 (waiver available for eligible categories)</li><li>Undergraduate transcripts (one official copy from each institution attended)</li><li>3 letters of recommendation</li><li>Statement of purpose</li><li>CV/resume</li><li>List faculty of interest before submitting application</li><li>**Deadline Monday, December 1, 2026**</li><li>Information sessions Nov 4 and Nov 11, 2026</li><li>Autumn quarter admission only (sequential courses)</li><li>9 graduate courses required (300/400/500-level)</li><li>At least 6 courses at 300-level, at least 4 in Chemistry, at least 2 foundational</li><li>Minimum 3.0 GPA in courses</li><li>Candidacy examination before end of fifth quarter in residence (normally October)</li><li>Teaching requirement: 3 quarters as TA</li><li>Entering class 38-55 students/year; no admissions quota</li><li>Multi-year fully-funded support</li><li>On-campus residential (Chicago, IL)</li></ul>",
        "research": "<ul><li>Analytical 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>Biological Chemistry</li><li>Interdisciplinary research with UChicago departments of physics, chemistry, biophysical sciences, molecular engineering, geophysical sciences</li><li>James Franck Institute</li><li>Institute for Biophysical Dynamics</li></ul>",
        "source": '<a href="https://chemistry.uchicago.edu/ph-d-program/phd-application-information" target="_blank">UChicago Chemistry PhD Application Information (Dec 1, 2026 deadline; $90 fee; TOEFL 90 / IELTS 7.0; 3 LOR; info sessions Nov 4 and Nov 11; list faculty of interest)</a> | <a href="https://chemistry.uchicago.edu/phd-application-information" target="_blank">UChicago Chemistry PhD Application Information (current policy: both Chemistry subject and general GRE test scores are not required; optional at applicant discretion)</a> | <a href="https://chemistry.uchicago.edu/phd-program" target="_blank">UChicago Chemistry PhD Program (Year 1 six graduate-level courses B average; research advisor by winter quarter; TA 3 quarters; Year 2 candidacy exam before end of fifth quarter normally October)</a> | <a href="https://chemistry.uchicago.edu/ph-d-program/chemistry-graduate-program-policy-guide" target="_blank">UChicago Chemistry Graduate Program Policy Guide September 2026 (9 graduate courses 300/400/500-level; at least 6 at 300-level; at least 4 in Chemistry; at least 2 foundational; up to 2 pre-approved non-chemistry; 3.0 GPA minimum)</a> | <a href="http://graduateannouncements.uchicago.edu/graduate/departmentofchemistry/departmentofchemistry.pdf" target="_blank">UChicago Graduate Announcements Chemistry (legacy PDF: entering class 38-55; no admissions quota; SM program maintained but no funding for master candidates; Autumn quarter only; sequential nature of courses; candidacy exam before end of fifth quarter)</a>',
    },
    "col-chem-phd": {
        "school": "Columbia University, Graduate School of Arts and Sciences, Department of Chemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501; Chemical Physics)",
        "dur": "5-year rule; vast majority defend before end of fifth year; no MA program in chemistry (PhD only); on-campus (New York, NY); required entrance exams in chemistry, 5 graduate courses, 3 semesters as TA; research progress presentation in year 2; original research proposal in year 4; dissertation defense end of year 5",
        "ddl": "Fall 2027 (September): **Deadline December 2, 2026 at 11:59 PM ET** per GSAS. Decisions on rolling basis beginning early January through first week of April. Spring admission not listed for Chemistry PhD.",
        "lang": "TOEFL iBT, IELTS Academic, or Duolingo English Test (DET) per GSAS English proficiency. Required for applicants whose undergraduate degree is from institution in country whose official language is not English. ETS institution code 2111; department code per Chemistry program.",
        "test_cls": "GRE GENERAL REQUIRED (Columbia Chemistry FAQ: 'The GRE is required for admission in the 2026-2027 admissions cycle. The scores must be included in your application. They may not be emailed to our office.' GSAS Chemistry program page also lists GRE General: Yes). Required: online application, transcripts per school attended, statement of academic purpose, personal statement, 3 LOR (at least 2 academic; up to 4 allowed), resume/CV, GRE General (required), English proficiency scores if applicable. Writing sample: No. Resume: Yes. No MA in chemistry - PhD only.",
        "tui": "Multi-year fully-funded through GSAS. 5-year rule with vast majority defending before end of fifth year. ~400 applications per year; 60-90 admitted, 20-30 matriculate. Required: entrance exams in chemistry, 5 graduate courses, 3 semesters as TA. Research progress presentation year 2; original research proposal year 4; dissertation defense end of year 5. Director of Admissions: Tim Berkelbach, 3000 Broadway, Mail Code 3109, New York, NY 10027, (212) 854-2202.",
        "overview": "The Columbia University Department of Chemistry, within the Graduate School of Arts and Sciences, offers the Doctor of Philosophy in Chemistry and the Doctor of Philosophy in Chemical Physics. Per the Department FAQ: Is the GRE General Test required for admission? The GRE is required for admission in the 2026-2027 admissions cycle. The scores must be included in your application. They may not be emailed to our office. The Graduate School of Arts and Sciences requires that certain international applicants demonstrate proficiency in the English language. Yes, in order to be exempt from submitting a TOEFL/IELTS score, applicants must meet specific criteria. Decisions are made on an ongoing basis beginning early January and going up until the first week of April. What are the requirements for a PhD in Chemistry or Chemical Physics? The PhD program requires passing entrance exams in chemistry, completing five graduate courses, and serving as a teaching assistant for three semesters. Students must present their research progress and plans in the second year, propose an original research project in their fourth year, and defend their dissertation at the end of their fifth year. What is the typical length of time for a PhD? The Department of Chemistry has a 5 year rule for the PhD degree with the vast majority of students defending their thesis before the end of the fifth year in residence. Exceptions can be made on a case by case basis, for extenuating circumstances. The program receives approximately 400 applications each year and admits 60-90 students, 20-30 of whom matriculate. Per the Department Admissions page: All students must submit one transcript showing courses and grades per school attended, a statement of academic purpose, three letters of evaluation from academic sources, and a resume. GRE scores are required for the 2026-2027 admissions cycle. International students may be required to submit evidence of English language proficiency. For more information, refer to The Columbia Graduate School for Arts and Sciences Admissions Information and Frequently Asked Questions, as well as our departmental admissions FAQ. For Application Questions: Director of Admissions Tim Berkelbach, Department of Chemistry, Columbia University, 3000 Broadway, Mail Code 3109, New York, NY 10027, (212) 854-2202. Per the GSAS Chemistry program page: Columbia does not offer an MA program in chemistry; therefore, the department can consider applications only from prospective graduate students who intend to pursue a PhD degree. The basic requirements for admission are substantial undergraduate training in chemistry; because outstanding students with a variety of backgrounds and interests apply to Columbia, the first requirement is interpreted liberally and flexibly. In addition to the requirements listed below, all students must submit one transcript showing courses and grades per school attended, a statement of academic purpose, a personal statement, and three letters of evaluation from academic sources. All applicants whose undergraduate degree is from an institution in a country whose official language is not English must submit English proficiency exam scores. This requirement can be fulfilled through TOEFL, IELTS, or Duolingo English Test (DET). Deadline for Fall Admission: 12/2/2026. Resume Requirement: Yes. Writing Sample: No. GRE General: Yes. Letters of Recommendation: 3* (at least TWO letters must be submitted by academic recommenders; you may include up to four letters in your application regardless of the number required by your program of interest). Per the GSAS Admissions Deadlines list: Chemical Physics PhD Fall Admission Deadline 12/2/2026; Chemistry PhD Fall Admission Deadline 12/2/2026. All deadlines are 11:59 PM Eastern Time for the published date. The department is located in New York, New York.",
        "requirements": "<ul><li>Bachelor's degree in chemistry or related quantitative field</li><li>Substantial undergraduate training in chemistry (interpreted liberally and flexibly)</li><li>GRE General: REQUIRED for 2026-2027 cycle</li><li>GRE scores must be included in application; cannot be emailed</li><li>TOEFL iBT, IELTS Academic, or Duolingo English Test (DET)</li><li>Required for applicants whose undergraduate degree is from non-English-official country</li><li>ETS institution code 2111; department code per Chemistry program</li><li>Columbia GSAS online application</li><li>One transcript showing courses and grades per school attended</li><li>Statement of academic purpose</li><li>Personal statement</li><li>3 letters of evaluation from academic sources (at least 2 academic; up to 4 allowed)</li><li>Resume/CV (required)</li><li>Writing sample: No</li><li>**Deadline December 2, 2026 at 11:59 PM ET**</li><li>Decisions on rolling basis beginning early January through first week of April</li><li>No MA program in chemistry - PhD only</li><li>Required: entrance exams in chemistry, 5 graduate courses, 3 semesters as TA</li><li>Research progress presentation in second year</li><li>Original research project proposal in fourth year</li><li>Dissertation defense at end of fifth year</li><li>5-year rule; exceptions case-by-case</li><li>~400 applications per year; 60-90 admitted, 20-30 matriculate</li><li>Multi-year fully-funded through GSAS</li><li>On-campus residential (New York, NY)</li></ul>",
        "research": "<ul><li>Analytical Chemistry</li><li>Biological Chemistry</li><li>Chemical Biology</li><li>Chemical Physics</li><li>Inorganic Chemistry</li><li>Materials Chemistry</li><li>Organic Chemistry</li><li>Physical Chemistry</li><li>Theoretical Chemistry</li><li>Interdisciplinary research with Columbia departments of biology, physics, applied physics, chemical engineering, earth and environmental sciences</li><li>Nanoscience</li><li>Surface Science</li></ul>",
        "source": '<a href="https://www.chem.columbia.edu/content/frequently-asked-questions" target="_blank">Columbia Chemistry Admissions FAQ (GRE required 2026-2027; scores must be in application not emailed; TOEFL/IELTS exemption criteria; decisions rolling early Jan through first week of April; entrance exams + 5 graduate courses + 3 semesters TA; research progress year 2; original proposal year 4; defense end year 5; 5-year rule; ~400 apps/year; 60-90 admitted; 20-30 matriculate)</a> | <a href="https://www.chem.columbia.edu/content/admissions" target="_blank">Columbia Chemistry Admissions (transcripts per school; SOP; 3 LOR; resume; GRE required 2026-2027; international English proficiency; Director of Admissions Tim Berkelbach, 3000 Broadway Mail Code 3109, (212) 854-2202)</a> | <a href="https://www.gsas.columbia.edu/content/chemistry" target="_blank">Columbia GSAS Chemistry (no MA in chemistry; PhD only; substantial undergraduate training in chemistry; SOP + personal statement + 3 LOR; TOEFL/IELTS/DET; deadline 12/2/2026; Resume Yes; Writing Sample No; GRE General Yes; LOR 3* at least 2 academic up to 4)</a> | <a href="https://www.gsas.columbia.edu/content/admissions-deadlines" target="_blank">Columbia GSAS Admissions Deadlines (all deadlines 11:59 PM ET; Chemical Physics PhD 12/2/2026; Chemistry PhD 12/2/2026; no Spring admission for Chemistry)</a> | <a href="https://www.gsas.columbia.edu/content/chemical-physics" target="_blank">Columbia GSAS Chemical Physics (PhD subcommittee; no free-standing MA in Chemical Physics; SOP + personal statement + 3 LOR; TOEFL/IELTS/DET; deadline 12/2/2026; GRE General Yes; Full Time)</a>',
    },
    "yale-chem-phd": {
        "school": "Yale University, Graduate School of Arts and Sciences, Department of Chemistry",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501)",
        "dur": "Strictly a PhD program; no master\'s offered at this time; typically 5-6 years; on-campus (New Haven, CT); M.S. awarded en route to PhD; qualifying exam demonstrates ability to explain research plans for dissertation to faculty panel in written and oral form; final student-research group pairing during first year",
        "ddl": "Fall 2027 (August): **Deadline December 1, 2026 at 11:59 PM ET** per Yale GSAS. Accepted students notified late winter; spring hosting of two visiting days. Application opens mid-August 2026; can be saved and reopened multiple times before final submission.",
        "lang": "TOEFL iBT or IELTS Academic required of most applicants whose native language is not English. Exempt if received (or will receive) undergraduate degree from institution where English is primary language of instruction and studied in residence there for at least 3 years. ETS institution code 3987 (Yale GSAS); no department code needed for Chemistry. Schedule tests no later than November to allow official scores to reach GSAS before deadline.",
        "test_cls": "GRE GENERAL REQUIRED (Yale GSAS Standardized Testing Requirements table dated June 29, 2026: Chemistry - Required. Yale Department of Chemistry: 'For this year application, the GRE General is required. Scores must be officially released to Yale GSAS, institution code 3987. Scores are used as components of holistic evaluation with due consideration of limitations of GRE score.') Required: electronic application (available mid-August 2026), transcripts (scanned copy from institution SIS portal or \'issued to student\' transcript), GRE scores (required), TOEFL scores (if applicable), 3 LOR, personal statement of purpose. No master\'s program - strictly PhD.",
        "tui": "Yale Chemistry PhD students receive multi-year fully-funded support. Per GSAS: PhD students at Yale are normally fully-funded. During their programs, students receive a twelve-month stipend to cover living expenses and a fellowship that covers the full cost of tuition and student healthcare. Fields: biophysical chemistry, chemical biology, inorganic chemistry, materials chemistry, organic chemistry, physical chemistry, theoretical chemistry. Department relatively small size facilitates meaningful interactions. DGS: Pat Loria (patrick.loria@yale.edu). Departmental Registrar: Kara Swenson (chemistry.dgs@yale.edu), 203-432-3913. Some students come to Yale summer before matriculation to sample research group; final pairing during first year.",
        "overview": "The Yale University Department of Chemistry, within the Graduate School of Arts and Sciences, offers the Doctor of Philosophy in Chemistry. Per the Department Application Process page: Thank you for your interest in pursuing doctoral studies in Chemistry at Yale University. Below is information regarding application deadlines and requirements. Program Information: Note the graduate program at Yale Chemistry is strictly a PhD program. A master\'s program is not offered at this time. Application Requirements: Please note, the electronic application to start graduate program for Fall 2026 will be available in mid-August of 2026. The application is due December 1, 2026, along with supplemental information: transcripts, GRE and TOEFL scores, three letters of recommendation, and a personal statement of purpose. Note that the application can be saved and reopened multiple times before final submission. GRE (Graduate Record Examination): For this year application, the GRE General is required. Scores for these examinations must be officially released to the Yale University Graduate School of Arts and Sciences (institution code 3987). These scores are used as components of a holistic evaluation of an applicant\'s qualifications, with due consideration of the limitations of the GRE score. More information is available at GSAS FAQs. Transcripts: This academic record (a scanned copy of a transcript from the institution Student Information System Portal, an \'issued to student\' transcript). Per the Department About Our Graduate Program page: Yale is recognized as having one of the best chemistry programs in the U.S. Our alumni occupy leading positions in academia and industry, due in no small part to their cutting-edge research experiences. The department\'s relatively small size facilitates meaningful interactions between students and internationally known faculty, and collegial interactions between the hardworking and lively graduate students contribute to the Ph.D. experience. Students interested in graduate study at Yale should look through the department facilities, instrumentation, faculty and associated faculty, staff, and seminar schedule. Applications for graduate admission are done through the Yale Graduate School of Arts and Sciences (not through individual professors) and are due, along with standardized test scores, by December 1. Accepted students are notified in late winter. In the spring, we host two visiting days to show prospective graduate students all the beauty, fun, and pleasantry of Yale and New Haven. Sc. degree and include coursework and other formal requirements in addition to research with one or more faculty members. For those that continue to the Ph.D., this culminates in a \'qualifying examination\' in which you demonstrate your ability to explain your research plans for the Ph.D. dissertation to a panel of faculty members, in both written and oral form. Some students come to Yale the summer before matriculation to sample a research group, but the final pairing of students with research groups occurs during the first year. The graduate program begins in late August with a 2-week orientation to Yale, teaching, and the... Per the GSAS Chemistry program page: Fields include biophysical chemistry, chemical biology, inorganic chemistry, materials chemistry, organic chemistry, physical chemistry, and theoretical chemistry. Terminal Degrees Offered: PhD - Doctor of Philosophy. Program Website: Department of Chemistry. Pat Loria, Director of Graduate Studies (patrick.loria@yale.edu). Kara Swenson, Departmental Registrar (chemistry.dgs@yale.edu), 203-432-3913. Application Deadline: December 1, 11:59pm ET. Admission Requirements: Standardized Testing Requirements - GRE is required. English Language Requirement - TOEFL iBT or IELTS Academic is required of most applicants whose native language is not English. You may be exempt from this requirement if you have received (or will receive) an undergraduate degree from a college or university where English is the primary language of instruction, and if you have studied in residence at that institution for at least three years. Financial Information: PhD students at Yale are normally fully-funded. During their programs, our students receive a twelve-month stipend to cover living expenses and a fellowship that covers the full cost of tuition and student healthcare. Per the GSAS Standardized Testing Requirements table dated June 29, 2026: The GRE is required for some degree programs at the Graduate School. Required = You must submit GRE General Test results. Optional = You may submit GRE General Test results if you wish. If you choose to submit scores, you must follow any self-reported scores with official test results. Not Accepted = Do not submit GRE General Test results. GRE General Test scores will not be considered when applications are reviewed. If you submit scores, they will not be reviewed. Test requirements below are for the 2026-2027 application cycle. Last updated June 29, 2026. Subject to change. Chemistry: Is the GRE General Test Required - Required. The department is located in New Haven, Connecticut.",
        "requirements": "<ul><li>Bachelor\'s degree in chemistry or related field</li><li>GRE General: REQUIRED per GSAS 2026-06-29 table</li><li>Scores must be officially released to Yale GSAS</li><li>ETS institution code 3987 (Yale GSAS); no department code needed for Chemistry</li><li>Scores used as components of holistic evaluation with due consideration of limitations of GRE</li><li>TOEFL iBT or IELTS Academic required of most applicants whose native language is not English</li><li>Exempt if undergraduate degree from institution where English is primary language of instruction and studied in residence there for at least 3 years</li><li>Schedule tests no later than November to allow official scores to reach GSAS before deadline</li><li>Yale GSAS electronic application (available mid-August 2026)</li><li>Application can be saved and reopened multiple times before final submission</li><li>Transcripts (scanned copy from institution SIS portal or \'issued to student\' transcript)</li><li>3 letters of recommendation</li><li>Personal statement of purpose</li><li>**Deadline December 1, 2026 at 11:59 PM ET**</li><li>Accepted students notified late winter</li><li>Spring hosting of two visiting days</li><li>Strictly PhD program - no master\'s offered at this time</li><li>M.S. awarded en route to PhD</li><li>Qualifying examination in written and oral form</li><li>Final student-research group pairing during first year</li><li>Some students come summer before matriculation to sample research group</li><li>Graduate program begins late August with 2-week orientation</li><li>12-month stipend + full tuition + student healthcare fellowship</li><li>Multi-year fully-funded through GSAS</li><li>On-campus residential (New Haven, CT)</li></ul>",
        "research": "<ul><li>Biophysical 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>Biological Chemistry</li><li>Nanoscience</li><li>Synthesis and Methodology</li><li>Interdisciplinary research with Yale departments of molecular biophysics and biochemistry, chemistry, physics, applied physics, forestry & environmental studies, School of Medicine</li><li>Energy and sustainability</li></ul>",
        "source": '<a href="https://gsas.yale.edu/programs-of-study/chemistry" target="_blank">Yale GSAS Chemistry (fields biophysical/chemical biology/inorganic/materials/organic/physical/theoretical; Terminal Degree PhD; DGS Pat Loria; Registrar Kara Swenson 203-432-3913; deadline Dec 1 11:59pm ET; GRE required; TOEFL/IELTS for non-native English; exempt if 3+ years in English-institution; 12-month stipend + full tuition + healthcare; fully-funded)</a> | <a href="https://chem.yale.edu/academics/graduate-program/prospective-students/application-process" target="_blank">Yale Chemistry Application Process (strictly PhD no master\'s; application available mid-August 2026; due Dec 1, 2026; transcripts + GRE + TOEFL + 3 LOR + personal statement of purpose; GRE General required; ETS 3987; holistic evaluation; application can be saved and reopened)</a> | <a href="https://gsas.yale.edu/admissions/phdmasters-application-process/dates-deadlines" target="_blank">Yale GSAS Dates & Deadlines (all deadlines 11:59 PM ET; Chemistry deadline December 1, 2026; schedule tests no later than November; decisions after deadline; April 15 reply date)</a> | <a href="https://gsas.yale.edu/admissions/phdmasters-application-process/standardized-testing-requirements" target="_blank">Yale GSAS Standardized Testing Requirements dated June 29, 2026 (Required/Optional/Not Accepted table; Chemistry = Required; 2026-2027 cycle; last updated June 29, 2026; subject to change; official scores must be sent to Yale)</a> | <a href="https://chem.yale.edu/academics/graduate-program/about-our-graduate-program" target="_blank">Yale Chemistry About Our Graduate Program (relatively small size; cutting-edge research; applications through GSAS not individual professors; due Dec 1; accepted late winter; spring two visiting days; M.S. en route to PhD; qualifying exam written and oral; final pairing during first year; late August 2-week orientation)</a>',
    },
    "caltech-chem-phd": {
        "school": "California Institute of Technology, Division of Chemistry and Chemical Engineering",
        "en": "PhD in Chemistry",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501)",
        "dur": "Typically 5-6 years; Master\'s degree in chemistry or chemical engineering not ordinarily offered except under special circumstances with prior approval of Graduate Study Committee; fall only; on-campus (Pasadena, CA); admissions once each year; all decisions posted no later than April 1; applicants may only apply to one academic option during each admission cycle",
        "ddl": "Fall 2027 (September): **Deadline December 1, 2026** per Caltech CCE and Graduate Office. Application system closes at 12:01am on day following posted deadline. Late applications may be considered but may be at disadvantage in allocation of assistance or priority for admission. All decisions posted no later than April 1, 2027.",
        "lang": "English proficiency test scores are no longer required for admission for students coming from non-English speaking countries. English proficiency is required and will be assessed through interviews with faculty. No TOEFL/IELTS minimum score posted. ETS institution code 4034 (California Institute of Technology); no department code needed for Chemistry. Caltech conducts interviews with international applicants to assess English proficiency.",
        "test_cls": "GRE REQUIRED FOR ALL CHEMISTRY PROGRAM APPLICANTS (Caltech CCE: \'GRE is required for all chemistry program applicants. Students who are unable to complete the GRE prior to the deadline due to poor test site availability should reach out to Allison Kinard and will be considered on a case-by-case basis.\') Required: free CollegeNET account, online application (applyweb.com/caltgapp), application fee $100 or fee waiver request, Statement of Purpose, official electronic copy of transcripts or online grade reports (updated grade reports for terms in progress not required; official transcripts from Registrar\'s Office required prior to enrollment), 3 individuals from whom LOR requested, CV or Resume. Admissions committee considers LOR, grades in college particularly chemistry/biochemistry/related subjects, research experience including publications/presentations, GRE scores (chemistry program only), SOP. Note: one option per cycle; if referred to another option, no additional fee or duplicate application.",
        "tui": "Multi-year fully-funded support. No minimum GPA or other quantitative metric used in evaluation. Personal statement, transcripts, and letters of recommendation all taken into consideration. Caltech committed to supporting students and scholars affected by Israel-Gaza and Ukraine-Russia conflicts irrespective of citizenship; candidates in region affected may apply after posted deadline contacting respective Option Representative. Application fee $100 USD; fee waivers granted to limited number of applicants demonstrating financial need or affiliated with organizations with special arrangements. Graduate Office contact: Allison Kinard (GRE accommodations for chemistry applicants unable to complete GRE due to test site availability). Fall only admissions.",
        "overview": "The California Institute of Technology, Division of Chemistry and Chemical Engineering (CCE), offers the Doctor of Philosophy in Chemistry. Per the Division of Chemistry and Chemical Engineering Graduate Admissions page: The Division of Chemistry and Chemical Engineering (CCE) offers degree programs in Biochemistry and... Completed applications are due to the Graduate Office no later than December 1st. Late applications may be considered but may be at a disadvantage in the allocation of assistance or the priority for admission. Please note that a Master\'s degree in chemistry or chemical engineering is not ordinarily offered, except under special circumstances, and with prior approval of the Graduate Study Committee. Prospective chemistry graduate students: GRE is required for all chemistry program applicants. Students who are unable to complete the GRE prior to the deadline due to poor test site availability should reach out to Allison Kinard and will be considered on a case-by-case basis. For students coming from non-English speaking countries, English proficiency test scores are no longer required for admission. However, English proficiency is required and will be assessed through interviews with faculty. Applying: The Admissions Committees will take several components of the application into consideration including letters of recommendation, grades in college particularly those in chemistry, biochemistry, and related subjects, any research experience including resulting publications or presentations, GRE scores (chemistry program only), and the statement of purpose. All documents related to the application must be submitted to the Graduate office on or before the December 1st deadline (Chemical Engineering program application must be submitted before the December 1st). Per the Caltech Graduate Studies Office Admissions page: Caltech\'s Graduate Admissions Committees recognize the challenges and disruption caused by COVID-19 and will take that into consideration when reviewing applications. For those candidates in the region who have been affected, it may be possible to apply after the posted deadline. Interested candidates should contact... Graduate admission is covered by Caltech\'s Nondiscrimination Policy. In general, the admission process takes place once each year accepting applications between December 1 and January 15, for enrollment starting in the following fall term. Applicants are encouraged to submit their applications as early as possible and are responsible for ensuring that all supporting documents are submitted by the posted deadline. All applications are reviewed in their entirety by the respective admissions committees. There is no minimum grade point average or other quantitative metric used in the evaluation of our applications. The personal statement, transcripts, and letters of recommendation are all taken into consideration. Some academic options will review an application received after the posted deadline, but such an applicant may be at a disadvantage in the allocation of financial assistance or in the priority for admission. Applicants may only apply to one academic option during each admission cycle. However, in reviewing your application, the admissions committee of the option to which you have applied may recommend that your application be reviewed by another option. If your application is referred to another option, you will not be charged any additional fees or be asked to submit a duplicate application. Per the Caltech Apply Online page: Applications for 2026-2027 admission are now open. Check the Application Deadlines for the particular academic program you are applying to as the application system will close at 12:01am on the day following the posted deadline. Once the application has been submitted, you will not be able to modify supporting documents, so please proofread materials thoroughly before submission. Deadlines vary by program from December 1 to January 15. Caltech is committed to supporting students and scholars affected by the Israel-Gaza and Ukraine-Russia conflicts, irrespective of citizenship. For those candidates in the region who have been affected, it may be possible to apply after the posted deadline. Interested candidates should contact the respective Option Representative for additional information and guidance on applying. The normal standards for admission will be used. Application Fee: There is an application fee of $100.00 USD. Fee waivers will be granted to a limited number of applicants who can demonstrate financial need or are affiliated with organizations that have made special arrangements with our office. The department is located in Pasadena, California.",
        "requirements": "<ul><li>Bachelor\'s degree in chemistry or related field</li><li>GRE: REQUIRED for all chemistry program applicants</li><li>Students unable to complete GRE due to poor test site availability contact Allison Kinard (case-by-case consideration)</li><li>No TOEFL/IELTS test score required for non-English speaking countries</li><li>English proficiency assessed through interviews with faculty</li><li>ETS institution code 4034 (Caltech); no department code needed for Chemistry</li><li>Caltech online application via CollegeNET (applyweb.com/caltgapp)</li><li>Application fee $100 USD or fee waiver request</li><li>Statement of Purpose</li><li>Official electronic copy of transcripts or online grade reports</li><li>Updated grade reports for terms in progress not required</li><li>Official transcripts from Registrar\'s Office required prior to enrollment</li><li>3 individuals from whom letters of recommendation requested</li><li>CV or Resume</li><li>**Deadline December 1, 2026**</li><li>Application system closes 12:01am on day following posted deadline</li><li>Late applications considered but may be at disadvantage in funding allocation</li><li>All decisions posted no later than April 1, 2027</li><li>Fall only admissions</li><li>Admissions once each year</li><li>**Applicants may only apply to one academic option during each admission cycle**</li><li>If referred to another option, no additional fee or duplicate application</li><li>No minimum GPA or quantitative metric used in evaluation</li><li>Multi-year fully-funded support</li><li>On-campus residential (Pasadena, CA)</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>Geochemistry</li><li>Nanoscience</li><li>Catalysis</li><li>Interdisciplinary research with Caltech divisions of geology and planetary science, engineering and applied science, physics, biology and biological engineering</li><li>Joint programs with UCLA and UC Riverside</li></ul>",
        "source": '<a href="https://cce.caltech.edu/graduate/graduate-admissions" target="_blank">Caltech CCE Graduate Admissions (Dec 1 deadline; late apps at disadvantage; no MS ordinarily offered; GRE required for all chemistry program applicants; Allison Kinard case-by-case for test site availability; no TOEFL/IELTS required - assessed through faculty interviews; admissions committee considers LOR + grades + research experience + GRE + SOP)</a> | <a href="https://gradoffice.caltech.edu/admissions" target="_blank">Caltech Graduate Studies Admissions (COVID-19 accommodations; once each year; Dec 1 to Jan 15 for following fall; no minimum GPA; holistic review; one option per cycle; if referred to another option no additional fee or duplicate application; nondiscrimination policy)</a> | <a href="https://gradoffice.caltech.edu/admissions/applyonline" target="_blank">Caltech Apply Online (2026-2027 applications open; system closes 12:01am day after posted deadline; proofread before submit; deadlines vary Dec 1 to Jan 15; Israel-Gaza and Ukraine-Russia conflict support; fee $100; fee waivers for financial need or partner organizations)</a> | <a href="https://gradoffice.caltech.edu/documents/28935/Application_Deadlines_2024-25.pdf" target="_blank">Caltech Application Deadlines PDF (Chemistry CH December 1; Chemical Engineering ChE December 1; CS December 15; CMS December 15; CDS December 15; ESE December 15; GeBi December 15; GeCh December 15; GePh January 1; MS December 15; ME December 15; MedE December 15; NB December 1; PS January 1; SDN December 15; SS December 15; SE December 15; all decisions posted by April 1)</a> | <a href="https://cce.caltech.edu/graduate/graduate-chemical-engineering/frequently-asked-questions" target="_blank">Caltech CCE FAQ (due Dec 1; applyweb.com/caltgapp; free CollegeNET account; application fee or waiver; SOP; electronic transcripts; 3 LOR; CV/Resume; updated grade reports not required; official transcripts from Registrar prior to enrollment)</a>',
    },
    "cornell-chem-cb-phd": {
        "school": "Cornell University, Graduate School, Field of Chemistry and Chemical Biology",
        "en": "PhD in Chemistry and Chemical Biology",
        "deg": "Doctor of Philosophy (PhD)",
        "stem_label": "STEM-designated (Chemistry / CIP 40.0501; Chemical Biology / CIP 26.0507)",
        "dur": "Typically 5 years; PhD program begins during second week of August (one week before official Fall Semester start); on-campus (Ithaca, NY); three three-week rotations before joining lab; special committee of 3+ faculty; ACS proficiency exams in inorganic/organic/physical chemistry before registration; international students must pass ILA language assessment; ESL course required if ILA shows need",
        "ddl": "Fall 2027 (August): **Deadline December 1, 2026** per Cornell Courses catalog and C&CB How to Apply. Review begins first Monday in December for admission beginning following August. Late applications reviewed but may be at disadvantage. Applicants may be asked to participate in Zoom or in-person interview. No Spring admissions to either PhD or MS program.",
        "lang": "TOEFL iBT or IELTS Academic per Cornell Graduate School English language proficiency requirement. Required for all applicants. ETS institution code 2098 (Cornell University); department codes not needed for matching scores to applications; if ETS requires department code, choose 0000 undecided. GRE scores valid 5 years from test date. International students who receive offer must pass International Teaching Assistant Language Assessment (ILA) and interview administered through Cornell Center for Teaching Excellence (CTE).",
        "test_cls": "GRE REQUIRED (Cornell Courses catalog: Chemistry and Chemical Biology PhD - \'GRE scores are required.\') Required: online application through Cornell Graduate School, application fee, course record form, transcripts (equivalent of US bachelor\'s degree in chemistry including analytical/inorganic/organic/physical chemistry, mathematics, physics; unusually promising students may be admitted with deficiencies), 3 recommendations, GRE scores (required), English proficiency scores if applicable. Supplemental materials (publications/awards) sent directly to Graduate Studies Office, 103 Baker Laboratory, Ithaca, NY 14853-1301. Contact: chemgrad@cornell.edu, 607-255-4139, 136 Baker Laboratory. Entering students take ACS proficiency exams in Organic/Inorganic/Physical Chemistry a few days before registration.",
        "tui": "Cornell C&CB PhD students guaranteed at least 5 years of full financial support as long as making satisfactory progress. This support includes a 12-month stipend, a full tuition award, and health insurance. Support comes in form of teaching assistantships, graduate research assistantships, research fellowships, and several NIH-funded training grant programs such as Chemistry Biology Interface (CBI). All PhD students take ACS proficiency exams in Organic, Inorganic, Physical Chemistry. Each incoming student completes three three-week rotations before officially joining a laboratory. Special Committee of 3+ faculty. Department has been home to four Nobel Prize winners, founding institution for Journal of Physical Chemistry, consistently Top 10 Chemistry graduate program by U.S. News & World Report. Subfields: Analytical, Bioinorganic, Bioorganic, Biophysical, Chemical Biology, Inorganic, Organic, Physical, Theoretical. Contact: Graduate Field Administrator.",
        "overview": "The Cornell University Department of Chemistry and Chemical Biology (C&CB), within the Graduate School, offers the Doctor of Philosophy in Chemistry and Chemical Biology. Per the Courses catalog: Chemistry and Chemical Biology (PhD). Taxonomy Codes CIP 40.0501. Admissions: Graduate Field - Chemistry and Chemical Biology. Program Description: Entering students are required to register with the department of chemistry and chemical biology at the beginning of their first term. Proficiency tests in inorganic, organic, and physical chemistry are required of all entering Ph.D. degree candidates. Application Requirements and Deadlines: Application Deadlines - Fall, December 1. Application Review begins Dec. 1. Applicants may be asked to participate in a Zoom interview as part of the admissions process. Requirements Summary: Applicants should have the equivalent of a U.S. bachelor\'s degree in chemistry, including courses in analytical, inorganic, organic, and physical chemistry, as well as in mathematics and physics. Unusually promising students may be admitted with deficiencies in undergraduate training. All Graduate School requirements, including the English language proficiency requirement for all applicants. Three recommendations. GRE scores are required. Admissions Contact Information: Email: chemgrad@cornell.edu. Phone: 607-255-4139. Campus Address: 136 Baker Laboratory. Website: http://www.chemistry.cornell.edu. Per the Department How to Apply page: Students wishing to pursue the Ph.D. or M.S. degrees in C&CB should apply directly to the Field of Chemistry & Chemical Biology through the Graduate School at Cornell University. The Cornell University Graduate School website provides information about general requirements, financial aid, and specific prerequisites for international students. Application Deadlines: Ph.D. Program - Review of applications to the Ph.D. program will begin on the first Monday in December each year for admission into the program beginning in the following August. Although applications received after this date will be reviewed, late applicants may be at a disadvantage for admission into the program. Applicants may be asked to participate in a Zoom or in-person interview as part of the admissions process. M.S. Program - MS program will begin on January 1 and continue until June 15, for admission into the program beginning in August. There are no spring admissions to either one. Supplemental Materials: Any additional documentation that you think would enhance your application, such as publications or awards, should be sent directly to Graduate Studies Office, Cornell University, 103 Baker Laboratory, Ithaca, NY 14853-1301. Per the Department Program Overview page: As one of the nation\'s most distinguished Chemistry departments, Cornell\'s Department of Chemistry & Chemical Biology (C&CB) has been home to four Nobel Prize winners, was the founding institution for the Journal of Physical Chemistry (J. Phys. Chem.), and has been consistently ranked as a Top 10 Chemistry graduate program by U.S. News & World Report. At Cornell, all applications to the C&CB graduate program are actually made to the Field of Chemistry & Chemical Biology. Graduate students enrolled in the Field of C&CB select a major research concentration in one of the following subfields: Analytical, Bioinorganic, Bioorganic, Biophysical, Chemical Biology, Inorganic, Organic, Physical, Theoretical. Students each choose a special committee consisting of their research advisor and two additional Cornell faculty members to oversee their graduate studies. International Students: International students who receive an offer of admission to the Ph.D. program must pass the International Teaching Assistant Language Assessment (ILA) and an interview administered through the Cornell University Center for Teaching Excellence (CTE). If the ILA shows that an applicant requires more formal training in English, a course in English as a Second Language (ESL) must be completed during the first semester of matriculation. Additional resources for international students can also be found through the International Teaching Assistant Program (ITAP) at CTE. Per the Department PhD Program page: The Ph.D. graduate program begins during the second week of August, one week before the official start of the Fall Semester at Cornell. All incoming Ph.D. students take a series of graduate proficiency exams in Organic, Inorganic, and Physical Chemistry provided by the American Chemical Society (ACS). All Ph.D. students then meet with the Director of Graduate Studies (DGS) and select professors in their area of interest for advice on course selection. Finding a Mentor and Laboratory to Conduct Thesis Research: Students are expected to attend research group meetings of faculty of interest, talk to other students and postdoctoral research associates, and discuss potential research projects with at least three faculty members. Each incoming student will complete three three-week rotations before officially joining a laboratory. Special Committee: Ph.D. students in C&CB are required to choose three or more faculty members to serve as a special committee to represent their major (and minor, if applicable) areas of study. Financial Support: Each Ph.D. student is therefore guaranteed at least five years of full financial support as long as he or she makes satisfactory progress toward the Ph.D. degree. This support includes a 12-month stipend, a full tuition award, and health insurance. Financial support comes in the form of teaching assistantships, graduate research assistantships, research fellowships, and several NIH-funded training grant programs, such as the Chemistry Biology Interface (CBI). Per the Graduate School Required Tests page: Institution Code: All official test scores should be reported directly to Cornell University institution code 2098. Department codes are not needed for matching scores to applications. If ETS requires you to select a department code, you may choose \'0000 undecided.\' Score expiration: GRE test scores are valid for five years from the test date. The department is located in Ithaca, New York.",
        "requirements": "<ul><li>Bachelor\'s degree in chemistry (equivalent of US bachelor\'s) including analytical, inorganic, organic, physical chemistry, mathematics, physics</li><li>Unusually promising students may be admitted with deficiencies in undergraduate training</li><li>GRE: REQUIRED (courses.cornell.edu)</li><li>GRE scores valid 5 years from test date</li><li>ETS institution code 2098 (Cornell University); department codes not needed; choose 0000 undecided if ETS requires</li><li>TOEFL iBT or IELTS Academic per Cornell Graduate School English language proficiency</li><li>Required for all applicants</li><li>Cornell Graduate School online application</li><li>Application fee</li><li>Course record form</li><li>Transcripts</li><li>3 recommendations</li><li>English proficiency scores (if applicable)</li><li>Supplemental materials (publications/awards) sent to 103 Baker Laboratory, Ithaca, NY 14853-1301</li><li>Contact: chemgrad@cornell.edu, 607-255-4139, 136 Baker Laboratory</li><li>**Deadline December 1, 2026** for Fall 2027</li><li>Review begins first Monday in December for admission beginning following August</li><li>Late applications reviewed but may be at disadvantage</li><li>Applicants may be asked to participate in Zoom or in-person interview</li><li>No Spring admissions to either PhD or MS program</li><li>PhD program begins second week of August (one week before official Fall start)</li><li>All incoming PhD students take ACS proficiency exams in Organic, Inorganic, Physical Chemistry</li><li>Each incoming student completes three three-week rotations before joining lab</li><li>Special Committee of 3+ faculty members</li><li>International students must pass ILA language assessment and CTE interview</li><li>If ILA requires more formal English training, ESL course required during first semester</li><li>**5-year full financial support guaranteed** (12-month stipend + full tuition + health insurance)</li><li>Support via TA, GRA, research fellowships, NIH training grants (CBI)</li><li>On-campus residential (Ithaca, NY)</li></ul>",
        "research": "<ul><li>Analytical Chemistry</li><li>Bioinorganic Chemistry</li><li>Bioorganic Chemistry</li><li>Biophysical Chemistry</li><li>Chemical Biology</li><li>Inorganic Chemistry</li><li>Organic Chemistry</li><li>Physical Chemistry</li><li>Theoretical Chemistry</li><li>Interdisciplinary research with Cornell departments of chemistry & chemical biology, molecular biology and genetics, applied and engineering physics, biomedical engineering, materials science and engineering, food science, plant biology, chemical and biomolecular engineering</li><li>Four Nobel Prize winners</li><li>Founding institution of Journal of Physical Chemistry</li><li>Consistently Top 10 by U.S. News & World Report</li></ul>",
        "source": '<a href="https://courses.cornell.edu/programs/chemistry-chemical-biology-phd/" target="_blank">Cornell Courses: Chemistry and Chemical Biology PhD (CIP 40.0501; Fall Dec 1; Zoom interview; equivalent US bachelor\'s in chemistry including analytical/inorganic/organic/physical + math + physics; unusual candidates admitted with deficiencies; 3 recommendations; GRE required; contact chemgrad@cornell.edu 607-255-4139; 136 Baker Laboratory)</a> | <a href="https://chemistry.cornell.edu/how-apply" target="_blank">Cornell C&CB How to Apply (apply directly to Field of C&CB through Cornell Graduate School; PhD review first Monday in December for August admission; late apps reviewed but at disadvantage; Zoom or in-person interview; no Spring admission; supplemental materials to 103 Baker Laboratory)</a> | <a href="https://chemistry.cornell.edu/program-overview" target="_blank">Cornell C&CB Program Overview (four Nobel Prize winners; founding J. Phys. Chem.; consistently Top 10; subfields Analytical/Bioinorganic/Bioorganic/Biophysical/Chemical Biology/Inorganic/Organic/Physical/Theoretical; special committee research advisor + 2 additional faculty; international students must pass ILA and CTE interview; ESL if needed; ITAP resources)</a> | <a href="https://chemistry.cornell.edu/phd-program" target="_blank">Cornell C&CB PhD Program (begins second week of August one week before official Fall; ACS proficiency exams Organic/Inorganic/Physical; DGS meeting; 3 three-week rotations before joining lab; special committee 3+ faculty; 5-year full support 12-month stipend + tuition + health insurance; TA/GRA/fellowships/NIH training grants CBI)</a> | <a href="https://gradschool.cornell.edu/admissions/application-steps/required-tests/" target="_blank">Cornell Graduate School Required Tests (institution code 2098; department codes not needed; choose 0000 undecided if ETS requires; GRE valid 5 years; home-based tests more likely canceled; in-person preferred but home-based allowed if necessary)</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):
    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)}")
