#!/usr/bin/env python3
"""Check an online language-teaching setup against the class it must serve.
JSON:
{
"class_size": 8, "age_group": "adults", # young learners / teens / adults
"upload_mbps": 2.5, "download_mbps": 20, "connection": "wifi", # wifi / ethernet / mobile
"microphone": "headset", # built-in / headset / usb
"camera": "built-in", "light": "front", # front / side / behind
"platform": {"breakout_rooms": true, "screen_share_audio": true, "whiteboard": false, "chat": true,
"polls": true, "recording": true},
"recording_lessons": true, "recording_consent": false,
"safeguarding_policy": false, "backup_plan": ""
}
Checks:
OS001 high upload below 1.5 Mbps (video drops; aim for 3+ for HD with margin)
OS002 high young learners or teens with no safeguarding policy
OS003 high lessons recorded without consent
OS004 medium class of 4+ with no breakout rooms (no pair or group work)
OS005 medium built-in microphone (echo and noise): use a headset or USB microphone
OS006 medium no computer-audio sharing: listening tasks will not reach learners clearly
OS007 medium mobile connection as the main line
OS008 low light behind the teacher (face in shadow; lip reading matters in language classes)
OS009 low no shared whiteboard or annotation tool
OS010 low no backup plan (second device, hotspot, alternative link, offline task)
OS011 low more than 15 learners in a live speaking class
Usage:
python setup_check.py setup.json
Exit codes: 0 no high findings, 1 high findings, 2 read or JSON error.
"""
import argparse
import json
import sys
def check(s):
f, p = [], s.get("platform") or {}
size = int(s.get("class_size") or 1)
up = float(s.get("upload_mbps") or 0)
if up < 1.5:
f.append(("OS001", "high", f"upload {up:g} Mbps: video will freeze; aim for 3+ Mbps or use ethernet"))
age = str(s.get("age_group", "")).lower()
if age in ("young learners", "children", "teens", "teenagers") and not s.get("safeguarding_policy"):
f.append(("OS002", "high", f"{age}: agree a safeguarding policy (parent consent, no private chats, recordings, adult present)"))
if s.get("recording_lessons") and not s.get("recording_consent"):
f.append(("OS003", "high", "recording without consent: get written consent and state storage and deletion"))
if size >= 4 and not p.get("breakout_rooms"):
f.append(("OS004", "medium", f"{size} learners and no breakout rooms: no simultaneous pair or group speaking"))
if str(s.get("microphone", "")).lower() == "built-in":
f.append(("OS005", "medium", "built-in microphone: a headset gives clearer models for pronunciation and less echo"))
if not p.get("screen_share_audio"):
f.append(("OS006", "medium", "cannot share computer audio: share recordings as links or upgrade the platform"))
if str(s.get("connection", "")).lower() == "mobile":
f.append(("OS007", "medium", "mobile data as the main connection: use ethernet or reliable wifi, keep mobile as backup"))
if str(s.get("light", "")).lower() == "behind":
f.append(("OS008", "low", "light behind you: face a window or lamp so learners can see your mouth"))
if not p.get("whiteboard"):
f.append(("OS009", "low", "no whiteboard: add one (built-in, slides with annotation, or a shared document)"))
if not s.get("backup_plan"):
f.append(("OS010", "low", "no backup plan: second device, hotspot, alternative meeting link, offline task"))
if size > 15:
f.append(("OS011", "low", f"{size} learners: speaking time per learner will be low; use breakout rooms most of the time"))
return f
def main():
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
ap.add_argument("setup", help="setup JSON, or - for stdin")
a = ap.parse_args()
try:
fh = sys.stdin if a.setup == "-" else open(a.setup, encoding="utf-8")
with fh:
s = json.load(fh)
if not isinstance(s, dict):
raise ValueError("JSON must be an object")
f = check(s)
except (OSError, ValueError, TypeError) as e:
print(f"error: {e}", file=sys.stderr)
return 2
print(f"Setup for {s.get('class_size', '?')} {s.get('age_group', 'learners')}: {len(f)} finding(s)")
order = {"high": 0, "medium": 1, "low": 2}
for code, sev, msg in sorted(f, key=lambda x: (order[x[1]], x[0])):
print(f"{code} [{sev}] {msg}")
if not f:
print("OK: connection, audio, platform and policies fit the class")
return 1 if any(x[1] == "high" for x in f) else 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.
cefr-aligned-syllabus-builder
Build language course syllabuses aligned to the CEFR (A1-C2, plus levels, Companion Volume 2020): entry and exit levels, guided learning hours and course length (with an L1-distance adjustment), syllabus type (topic, functional-notional, task-based, skills-based, multi-strand), unit-by-unit can-do outcomes, grammar from a core inventory by level, vocabulary, functions, pronunciation, balance of reception, production, interaction and mediation, recycling and assessment points. Checks a syllabus for units without can-do statements, core grammar for the level not covered, items above the course level, skills missing from most units and units with no vocabulary or functions.