#!/usr/bin/env python3
"""Estimate guided learning hours and course length to move between CEFR levels.
Uses Cambridge English's widely quoted cumulative guided-learning-hour ranges (A2 ~180-200, B1 ~350-400,
B2 ~500-600, C1 ~700-800, C2 ~1,000-1,200) as midpoints. Hours vary with L1 distance, age, intensity, exposure
and self-study; --distance applies a rough multiplier (near 0.85, medium 1.0, far 1.3), e.g. Spanish speakers
learning English are "near", Japanese or Arabic speakers "far".
Usage:
python cefr_hours.py --from A2 --to B2 --hours-per-week 6
python cefr_hours.py --from B1 --to C1 --weeks 30 --distance far
Exit codes: 0 printed, 2 target not above start or bad arguments.
"""
import argparse
import math
import sys
CUMULATIVE = {"A0": 0, "A1": 95, "A2": 190, "B1": 375, "B2": 550, "C1": 750, "C2": 1100}
DISTANCE = {"near": 0.85, "medium": 1.0, "far": 1.3}
def main():
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
ap.add_argument("--from", dest="start", type=str.upper, choices=CUMULATIVE, required=True, help="A0 = beginner")
ap.add_argument("--to", dest="end", type=str.upper, choices=CUMULATIVE, required=True)
ap.add_argument("--hours-per-week", type=float, help="class hours per week")
ap.add_argument("--weeks", type=int, help="weeks available (prints hours per week needed)")
ap.add_argument("--distance", choices=DISTANCE, default="medium", help="L1 distance from English")
a = ap.parse_args()
if CUMULATIVE[a.end] <= CUMULATIVE[a.start]:
print("error: --to must be above --from", file=sys.stderr)
return 2
hours = (CUMULATIVE[a.end] - CUMULATIVE[a.start]) * DISTANCE[a.distance]
lo, hi = hours * 0.8, hours * 1.2
print(f"{a.start} -> {a.end}: about {hours:.0f} guided hours (range {lo:.0f}-{hi:.0f}), L1 distance {a.distance}")
steps = [lvl for lvl in CUMULATIVE if CUMULATIVE[a.start] < CUMULATIVE[lvl] <= CUMULATIVE[a.end]]
prev = a.start
for lvl in steps:
print(f" {prev} -> {lvl}: ~{(CUMULATIVE[lvl] - CUMULATIVE[prev]) * DISTANCE[a.distance]:.0f} h")
prev = lvl
if a.hours_per_week:
weeks = math.ceil(hours / a.hours_per_week)
print(f"At {a.hours_per_week:g} h/week: about {weeks} weeks ({weeks / 36:.1f} school years of 36 weeks)")
if a.weeks:
print(f"In {a.weeks} weeks: about {hours / a.weeks:.1f} class hours per week")
print("Guided hours include class time and teacher-directed study; regular self-study and exposure shorten it.")
return 0
if __name__ == "__main__":
sys.exit(main())
academic-english-eap-course-planner
Plan English for Academic Purposes (EAP) courses: pre-sessional, in-sessional, foundation, IELTS preparation and discipline-specific EAP, with syllabus strands (academic reading, lecture listening and note-taking, essay and report writing, paraphrase, summary and synthesis, referencing and plagiarism, seminars and presentations, academic vocabulary, critical thinking), a 10-week pre-sessional outline, exit assessment, IELTS-CEFR alignment and academic style (formality, hedging, cohesion, reporting verbs). Estimates study hours and weeks to close an IELTS gap from overall or per-skill scores (IELTS rounding, minimum per skill, priority skills, feasibility before a deadline), and checks learner texts for contractions, informal words with academic alternatives, unhedged claims, 'you', And/But/So starts, rhetorical questions and missing citations.
actfl-proficiency-curriculum-mapper
Map world language curricula to the ACTFL framework: proficiency levels (Novice, Intermediate, Advanced, Superior, Distinguished with sublevels), functions, contexts, text types and accuracy, proficiency vs performance, the three modes of communication (interpretive, interpersonal, presentational), the 5 Cs World-Readiness Standards, backward-designed thematic units with Integrated Performance Assessments, typical programme targets and FSI time estimates. Looks up approximate ACTFL-CEFR-ILR equivalences with what each level can do, and checks a unit map for missing modes, rehearsed skits mislabelled as interpersonal, translation or word lists as interpretive tasks, and units without an integrated performance assessment.
adult-literacy-esl-lesson-builder
Build lessons for adult ESL learners who are developing literacy (LESLLA learners: pre-literate, non-literate, semi-literate, literate in a non-Roman script): learner profiles and sensitive initial assessment, principles (oral language first, known to new, systematic phonics with adult-relevant text, repetition, classroom skills, respect for experience), a lesson routine (oral warm-up, review, new grapheme, blending, segmenting, decodable text, writing, functional literacy, Language Experience Approach), a phonics sequence for adults, sight words, functional literacy targets (forms, signs, medicine labels) and portfolio assessment. Checks whether a reading text is decodable with the letter-sound patterns and sight words taught so far, catching untaught digraphs, listing non-decodable words with the untaught part, and suggesting the most useful next patterns.
authentic-material-lesson-adapter
Turn authentic material (news articles, podcasts, videos, songs, menus, timetables, adverts, social media posts, forms, infographics) into language lessons by grading the task rather than the text. Selects texts for interest, relevance, exploitability, coverage, cultural load and rights; finds the 4-6 words to pre-teach, words to gloss on the page and words learners can ignore, plus names and cultural references to explain, with reading time by level; and builds a lesson shape (lead-in, pre-teach, gist or scanning, graded detail task, language focus on chunks and register, response) with task ideas per material type and level from A1 to C1. Covers copyright, fair dealing and fair use, Creative Commons and attribution.
can-do-statement-writer
Write and review can-do statements for language courses, units, lessons and learner self-assessment, CEFR or NCSSFL-ACTFL style: action (observable verb) + text or situation + level-specific conditions, learner ('I can') and descriptor ('Can') versions, progressions of one activity from A1 to C1, and coverage of reception, production, interaction and mediation. Includes a verb bank by mode and level and condition and text-type banks. Lints statements for teacher-centred phrasing, knowledge instead of use (learn, know, understand the passive), missing context, two skills in one statement, vague quality words, grammar items as outcomes, overlong statements and missing modes in a set.
classroom-management-for-esl-coach
Coach ESL/EFL teachers in classroom management: the instruction sequence (attention, group first, graded imperatives, demonstration, ICQs, hand out, start, check), ICQ examples, online instructions, routines for the first weeks (class agreement, L1 use, phones, lateness, homework, seating), strategies for L1 use in tasks, dominant and quiet learners, mixed levels, large classes, fast finishers, low motivation, disruptive young learners and teens, cultural expectations, classroom language to teach early and teacher presence. Checks planned instructions for length, missing ICQs, useless ICQs like 'Do you understand?', no demonstration, long sentences, filler and missing grouping or timing, and builds seating plans that keep named learners apart, seat learners who need the front, mix first languages and alternate stronger and weaker learners.