Idea · Sep 18, 2026
NLF-Scaffolded Decomposition Signals: Mining Natural Language Function Prompts to Classify CS1 Misconceptions and Route Adaptive Hints
Extends the NLF (Natural Language Function) scaffolding tool from SIGCSE TS 2026 by building a misconception classifier over student NLF prompt logs, then routing LLM-generated hints based on detected misconception type, evaluated entirely through automated metrics on synthetic student personas without requiring human subjects.
What it would do
Yusuf et al. (SIGCSE TS 2026) showed that students using a Natural Language Functions tool, which generates callable stubs from natural language prompts, produced approximately three times more decomposition behaviors than a control group. Their qualitative findings identified a shift from verbal articulation to written expression, with students spending more time crafting prompts and less time verbalizing intent aloud. This research builds on that signal: if student NLF prompts reflect decomposition thinking, the linguistic patterns in those prompts should distinguish between common CS1 misconceptions (treating a problem as a single monolithic computation, misidentifying where abstraction boundaries belong, confusing data transformation with control flow). This project constructs a three-stage pipeline. Stage 1 uses a curated taxonomy of CS1 decomposition misconceptions, derived from the CS1-LLM and problem-decomposition literature, to generate a synthetic corpus of NLF prompts via LLM persona simulation: each persona represents a student at a specific misconception state and produces prompts consistent with that state. Stage 2 trains a lightweight misconception classifier on this synthetic corpus using prompt-feature extraction (verb choice, granularity signals, co-reference patterns). Stage 3 evaluates whether routing hints through a misconception-specific prompt template produces higher-quality explanatory hints than a generic hint prompt, measured by rubric-grounded LLM evaluation and embedding-space distance from expert explanations. Because the study relies entirely on synthetically generated prompts and automated evaluation metrics, no human subjects are required, making it executable within a single semester without IRB overhead. Results will inform how NLF tooling can be instrumented to detect student misconceptions in real time and personalize scaffolding.