The user wants a "learning outcomes alignment scanner" that consists of three components:
- Syllabus Parser: Extracts learning objectives/outcomes from a syllabus.
- Rubric Mapper: Maps specific assessment criteria (rubrics) to these learning outcomes.
- Gap Report: Identifies learning outcomes that are not assessed or areas where assessment is weak.
Target Audience/Use Case: This is likely for instructional designers, curriculum committees, or teachers aiming for constructive alignment (Biggs, 1996). They need to ensure that what is taught (syllabus) matches what is assessed (rubric).
Technical Approach:
- Input: Text files or strings containing the syllabus and the rubric.
- NLP/Processing:
- Parsing: Simple regex might work for well-structured documents, but NLP (Bloom's Taxonomy verbs) would make it robust.
- Mapping: Keyword matching, semantic similarity (TF-IDF or simple embeddings), or manually defined links (conceptually). For a code example, I need to simulate the "intelligence" part or use a library like
spacy or sentence-transformers if I want to get fancy, but a robust Python script using string similarity (like difflib or fuzzywuzzy) or keyword extraction is more standalone and understandable.
- Output: A structured report (text or data frame) showing matches and gaps.
Structure of the Solution:
I will create a Python Class-based solution.
SyllabusParser:
- Input: Text.
- Logic: Look for keywords like "Students will be able to", "By the end of this course", and Bloom's verbs (Analyze, Create, etc.).
RubricMapper:
- Input: Text (rubric criteria).
- Logic: Compare rubric criteria descriptions against the Syllabus Learning Outcomes (LOs).
GapReportGenerator:
- Logic: Identify LOs with no rubric matches.
Refining the NLP aspect (Mental Sandbox):
- Regex:
r"(?:students will|learners will)\s+(?:be able to\s+)?(\w+.*?)(?:\.|\n)" - Good starting point.
- Mapping: If LO is "Understand Python loops" and Rubric is "Loop Construction", how do they match? Keyword overlap or semantic similarity. I will use a mock semantic similarity function or a simple keyword overlap algorithm for the demo to keep dependencies low, but mention that in production, embeddings (OpenAI/HuggingFace) are better.
Drafting the Code Structure:
class LearningOutcome:
text: str
id: str
blooms_level: str # Optional nice-to-have
class AssessmentCriterion:
text: str
id: str
class AlignmentScanner:
def __init__(self):
pass
def parse_syllabus(self, text):
# Extract LOs
pass
def parse_rubric(self, text):
# Extract Criteria
pass
def map_alignment(self, los, criteria):
# Compute similarity/matches
pass
def generate_gap_report(self, mapping):
# Return what's missing
pass
Enhancements:
- Bloom's Taxonomy Filter: I'll include a list of Bloom's verbs to help identify LOs more accurately.
- Similarity Score: I'll implement a basic Jaccard similarity or SequenceMatcher to determine if a rubric item "covers" an LO.
Deliverable:
A complete Python script that a user can run, along with an explanation of how it works and how to extend it.
Step-by-Step Implementation Plan:
- Imports:
re (regex), difflib (for string matching).
- Data Models: Simple dictionaries or Data Classes.
- Parser Logic: Regex patterns to find lists of objectives.
- Mapper Logic: Iterating through LOs and Rubric items to find matches based on a threshold.
- Reporting: Printing a formatted gap analysis.
Self-Correction during drafting:
- Issue: Real syllabi are messy.
- Solution: I will provide a "Demo Mode" with pre-filled text so the user sees it working immediately, but write the functions to accept arbitrary text.
- Issue: Mapping is subjective.
- Solution: I will include a "Confidence Score" in the output so the user sees it as a suggestion, not a fact.
Final Polish: Add comments explaining Constructive Alignment (the pedagogical theory behind this).
Let's write the code. I will use standard Python libraries to ensure it runs easily without heavy pip installs (like spacy/tensorflow) for this demonstration, though I will note where those would fit in a production app.
- Parser: Search for bullet points or numbered lists following specific headers ("Learning Objectives", "Outcomes").
- Mapper: Use
difflib.SequenceMatcher for a quick semantic proximity check.
- Gap Report: Count how many LOs have 0 matches.
Let's assemble.
This solution builds a Learning Outcomes Alignment Scanner in Python. It uses Natural Language Processing (NLP) techniques to parse a syllabus, identify learning objectives based on Bloom's Taxonomy, map them to rubric criteria, and generate a gap analysis report.
Prerequisites
You will need Python installed. The solution uses standard libraries plus sklearn for semantic matching (to ensure "Critical Thinking" maps to "Analysis" even if words aren't identical).
pip install scikit-learn
The Python Solution
import re
import json
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
# --- CONFIGURATION & CONSTANTS ---
BLOOMS_TAXONOMY = {
'remember': ['define', 'describe', 'identify', 'list', 'recall', 'recognize'],
'understand': ['classify', 'explain', 'interpret', 'summarize', 'translate'],
'apply': ['apply', 'demonstrate', 'execute', 'implement', 'solve', 'use'],
'analyze': ['analyze', 'differentiate', 'examine', 'organize', 'compare', 'contrast'],
'evaluate': ['assess', 'critique', 'defend', 'evaluate', 'judge', 'justify'],
'create': ['construct', 'design', 'develop', 'formulate', 'produce', 'build']
}
class AlignmentScanner:
def __init__(self, similarity_threshold=0.3):
self.similarity_threshold = similarity_threshold
self.learning_outcomes = []
self.rubric_criteria = []
self.alignment_matrix = []
# ------------------------------------------------=========
# 1. SYLLABUS PARSER
# ---------------------------------------------------------
def parse_syllabus(self, text):
"""
Extracts learning outcomes from unstructured syllabus text.
Heuristics: Looks for specific keywords and list patterns.
"""
self.learning_outcomes = []
# Normalize text
text = text.replace('\n', ' <NEWLINE> ')
# Regex to find sections titled "Objectives", "Outcomes", "Goals"
# and capture the list items following them.
pattern = r"(?:Learning\s?(?:Outcomes|Objectives|Goals)|Course\s?(?:Outcomes|Objectives))[:\s]*(.*?)(?:(?:<NEWLINE>\s*){2}|Prerequisites|Required\sText|Grading|$)"
matches = re.findall(pattern, text, re.IGNORECASE | re.DOTALL)
if matches:
potential_text = matches[0]
# Split by newlines or common list delimiters (1., -, *)
raw_items = re.split(r'<NEWLINE>|(?<!\d)\.(?!\d)', potential_text)
for item in raw_items:
clean_item = self._clean_text(item)
if len(clean_item) > 10: # Filter out noise
# Classify cognitive level based on Bloom's verbs
level = self._classify_blooms_level(clean_item)
self.learning_outcomes.append({
'id': f"LO-{len(self.learning_outcomes)+1}",
'text': clean_item,
'level': level
})
return self.learning_outcomes
# ---------------------------------------------------------
# 2. RUBRIC MAPPER
# ---------------------------------------------------------
def parse_rubric(self, text):
"""
Extracts criteria from a rubric.
Assumes criteria are headers or distinct sections.
"""
self.rubric_criteria = []
# Naive split by lines for this demo; in production, use CSV/Excel parsing
lines = [l.strip() for l in text.split('\n') if l.strip()]
# Filter out purely numeric lines or grading scales (e.g., "5 pts")
for line in lines:
if not re.match(r'^\d+|\(|Points|Score|Grade', line):
# Take the first part if colon separated (e.g., "Grammar: No errors")
criterion_text = line.split(':')[0]
self.rubric_criteria.append({
'id': f"R-{len(self.rubric_criteria)+1}",
'text': criterion_text
})
return self.rubric_criteria
def map_alignment(self):
"""
Maps Learning Outcomes to Rubric Criteria using TF-IDF and Cosine Similarity.
"""
if not self.learning_outcomes or not self.rubric_criteria:
return []
lo_texts = [lo['text'] for lo in self.learning_outcomes]
rubric_texts = [r['text'] for r in self.rubric_criteria]
# Create a corpus for vectorization
corpus = lo_texts + rubric_texts
# Vectorize
vectorizer = TfidfVectorizer(stop_words='english')
tfidf_matrix = vectorizer.fit_transform(corpus)
# Split matrix
lo_vectors = tfidf_matrix[:len(lo_texts)]
rubric_vectors = tfidf_matrix[len(lo_texts):]
# Compute Similarity
# Result matrix: Rows = LOs, Cols = Rubrics
similarity_matrix = cosine_similarity(lo_vectors, rubric_vectors)
self.alignment_matrix = []
for i, lo in enumerate(self.learning_outcomes):
matches = []
for j, rubric in enumerate(self.rubric_criteria):
score = similarity_matrix[i, j]
if score >= self.similarity_threshold:
matches.append({
'rubric_id': rubric['id'],
'text': rubric['text'],
'score': round(score, 2)
})
self.alignment_matrix.append({
'outcome_id': lo['id'],
'outcome_text': lo['text'],
'cognitive_level': lo['level'],
'matches': sorted(matches, key=lambda x: x['score'], reverse=True)
})
return self.alignment_matrix
# ---------------------------------------------------------
# 3. GAP REPORT
# ---------------------------------------------------------
def generate_gap_report(self):
"""
Analyzes the alignment matrix to identify gaps.
"""
gaps = {
'unassessed_outcomes': [], # Type 1: LO exists, no rubric match
'orphan_rubrics': [], # Type 2: Rubric exists, maps to no LO
'misaligned_levels': [] # Type 3: Verb mismatch (e.g. LO="Create", Rubric="Recall")
}
# Type 1: Unassessed Outcomes
for item in self.alignment_matrix:
if not item['matches']:
gaps['unassessed_outcomes'].append({
'id': item['outcome_id'],
'text': item['outcome_text'],
'reason': "No rubric criterion semantically matched this outcome."
})
# Type 2: Orphan Rubrics (Rubric items that matched NO learning outcomes)
matched_rubric_ids = set()
for item in self.alignment_matrix:
for m in item['matches']:
matched_rubric_ids.add(m['rubric_id'])
for r in self.rubric_criteria:
if r['id'] not in matched_rubric_ids:
gaps['orphan_rubrics'].append(r)
return gaps
# --- HELPERS ---
def _clean_text(self, text):
text = text.replace('<NEWLINE>', ' ').strip()
text = re.sub(r'^[\d\.\-\*]+', '', text).strip() # Remove list bullets
return text
def _classify_blooms_level(self, text):
text_lower = text.lower()
first_word = text_lower.split(' ')[0]
for level, verbs in BLOOMS_TAXONOMY.items():
if first_word in verbs:
return level.upper()
return "UNCLASSIFIED"
# ---------------------------------------------------------
# DEMONSTRATION
# ---------------------------------------------------------
if __name__ == "__main__":
# 1. Dummy Data (Syllabus & Rubric)
syllabus_text = """
CS 101: Introduction to Data Science
...
Course Learning Objectives:
1. Understand the fundamental principles of Data Mining.
2. Apply Python libraries to clean real-world datasets.
3. Design a machine learning model to predict trends.
4. Evaluate the ethical implications of algorithmic bias.
Grading Policy: ...
"""
rubric_text = """
Data Cleaning Implementation
Code Efficiency and Syntax
Model Architecture Design
Presentation Skills
"""
# 2. Initialize Scanner
scanner = AlignmentScanner(similarity_threshold=0.15)
# 3. Parse Syllabus
outcomes = scanner.parse_syllabus(syllabus_text)
print("--- PARSED LEARNING OUTCOMES ---")
for o in outcomes:
print(f"[{o['level']}] {o['id']}: {o['text']}")
# 4. Parse Rubric
criteria = scanner.parse_rubric(rubric_text)
print("\n--- PARSED RUBRIC CRITERIA ---")
for c in criteria:
print(f"{c['id']}: {c['text']}")
# 5. Map and Scan
alignment = scanner.map_alignment()
gaps = scanner.generate_gap_report()
print("\n--- ALIGNMENT REPORT ---")
for item in alignment:
status = "✅ ALIGNED" if item['matches'] else "❌ GAP"
print(f"{status} | {item['outcome_id']} ({item['cognitive_level']})")
if item['matches']:
for m in item['matches']:
print(f" └── Mapped to: {m['text']} (Score: {m['score']})")
print("\n--- GAP ANALYSIS ---")
print("Unassessed Outcomes:", len(gaps['unassessed_outcomes']))
for g in gaps['unassessed_outcomes']:
print(f" - {g['text']}")
print("Orphan Rubric Items:", len(gaps['orphan_rubrics']))
for g in gaps['orphan_rubrics']:
print(f" - {g['text']} (Does not map to any Learning Objective)")
How It Works
-
Syllabus Parser (Regex & NLP):
- It scans the text for headers like "Learning Objectives" or "Goals".
- It cleans the text (removing bullets, newlines) and extracts the sentences.
- Bloom's Filter: It checks the first verb of every outcome against a dictionary of Bloom's Taxonomy verbs (e.g., Apply, Design, Evaluate) to tag the cognitive level of the outcome.
-
Rubric Mapper (TF-IDF & Cosine Similarity):
- It treats the Learning Outcomes and Rubric Criteria as two sets of documents.
- It converts text into vectors (TF-IDF) to understand the importance of words.
- It calculates the Cosine Similarity between every Outcome and every Rubric Criterion.
- If the similarity score is above a threshold (e.g., 0.15), a link is established.
-
Gap Report (Logic Check):
- Unassessed Outcomes: It lists Learning Outcomes that returned a similarity score of 0 (or below threshold) with any rubric item. This means the assessment does not cover this topic.
- Orphan Rubrics: It checks if any Rubric items were never matched to an Outcome. This usually indicates "Scope Creep"—grading students on things not explicitly taught or listed in the syllabus.
Why this is useful
- Constructive Alignment: Ensures that your assessments actually test what you promised to teach.
- Curriculum Review: Quickly spots if "Ethics" is listed as an outcome but appears nowhere in the grading criteria.
- Accreditation: Provides instant documentation evidence for accreditation bodies (ABET, AACSB, etc.) requiring mapped curricula.