Skip to content
v0.1.4latest release159 skills5 categories7 sub-categories303 tested scripts468 reference docsContact us

mode_coverage.py

Helper script for actfl-proficiency-curriculum-mapper · 74 lines

Languages, Linguistics & Translation / Language Teachingv1.0.0Updated OCT 25 20262 references2 scripts
scripts/mode_coverage.py
#!/usr/bin/env python3
"""Map curriculum units to ACTFL's three modes of communication and check each unit's performance assessment.

CSV columns: unit, interpretive, interpersonal, presentational, assessment
(each mode cell describes the unit's main task in that mode; assessment describes the unit's summative task,
ideally an Integrated Performance Assessment covering all three modes)

Checks:
  AC001 high    unit without a performance assessment
  AC002 medium  unit with no task in a mode
  AC003 medium  'interpersonal' task is scripted or rehearsed (skit, memorised dialogue, presentation): that is
                presentational; interpersonal means spontaneous two-way negotiation of meaning
  AC004 low     interpretive task is translation or word lists rather than understanding a text
  AC005 low     assessment does not cover all three modes

Usage:
    python mode_coverage.py units.csv

Exit codes: 0 no high findings, 1 high findings, 2 read error or bad CSV.
"""

import argparse
import csv
import re
import sys

MODES = ["interpretive", "interpersonal", "presentational"]
SCRIPTED = re.compile(r"\b(skit|memori[sz]e|script(ed)?|rehears|present(ation)?|perform|recite|read aloud)", re.I)
LOW_INTERP = re.compile(r"\b(translat\w*|vocab(ulary)? list|word list|define words|flashcards?)\b", re.I)


def main():
    ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
    ap.add_argument("csv")
    a = ap.parse_args()
    try:
        with open(a.csv, newline="", encoding="utf-8-sig") as fh:
            units = list(csv.DictReader(fh))
        if not units or not set(MODES) <= set(units[0]):
            raise ValueError("needs unit, interpretive, interpersonal, presentational and assessment columns")
    except (OSError, csv.Error, ValueError) as e:
        print(f"error: {e}", file=sys.stderr)
        return 2
    f = []
    print("| Unit | Interpretive | Interpersonal | Presentational | Assessment |")
    print("|------|--------------|---------------|----------------|------------|")
    for u in units:
        uid = u.get("unit", "?")
        cells = {m: (u.get(m) or "").strip() for m in MODES}
        assess = (u.get("assessment") or "").strip()
        print(f"| {uid} | " + " | ".join("x" if cells[m] else "-" for m in MODES) + f" | {'x' if assess else '-'} |")
        for m in MODES:
            if not cells[m]:
                f.append(("AC002", "medium", f"unit {uid}: no {m} task"))
        if SCRIPTED.search(cells["interpersonal"]):
            f.append(("AC003", "medium", f"unit {uid}: interpersonal task '{cells['interpersonal'][:40]}' is rehearsed - that is presentational"))
        if LOW_INTERP.search(cells["interpretive"]):
            f.append(("AC004", "low", f"unit {uid}: interpretive task '{cells['interpretive'][:40]}' is not text comprehension"))
        if not assess:
            f.append(("AC001", "high", f"unit {uid}: no performance assessment"))
        elif not (re.search(r"\bipa\b|integrated", assess, re.I) or all(m[:6] in assess.lower() for m in MODES)):
            f.append(("AC005", "low", f"unit {uid}: assessment does not cover all three modes (consider an IPA)"))
    print()
    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: every unit works in all three modes with an integrated assessment")
    return 1 if any(x[1] == "high" for x in f) else 0


if __name__ == "__main__":
    sys.exit(main())
More in Language Teaching

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.

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.

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.