Skip to content

fix(exam_pack): read the verdict word from letter-prefixed TF/code reveals - #40

Merged
agiacalone merged 1 commit into
mainfrom
fix/tf-verdict-answer-normalization
Oct 21, 2026
Merged

agiacalone merged 1 commit into
mainfrom
fix/tf-verdict-answer-normalization

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

Problem

A True/False or code verdict revealed as \textbf{Answer:} a (True) or b (False) --- why was read as the letter a/b. _outline.csv then carried a letter, and GRADING_NOTE.md gave neither the True nor the False row any points.

Fix

parse_outline_from_tex takes the verdict word when it leads the reveal, and a bare T/F on a TF item. A code answer that only mentions "true" later in its text is not treated as a verdict.

Salvaged from the closed #26, which #39 otherwise superseded.

Checks

  • 10 new tests: 9 cases for the new answer reader and 1 check that a letter-form answer gets credit in the grading note.
  • Full suite: 652 passed, 1 skipped.
  • TF/code answers compared before and after across ten real exam sources (CECS 326/378, Su26 and Fa26). Only the 378 Su26 final changes: 20 answers go from letters to the matching word. Fa26 exams are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_012VAyCxeJ3nhHwBM5ABHMqN

…veals

A TF or code verdict revealed as `\textbf{Answer:} a (True)` was read as the
letter `a`. The outline then carried a letter, and the grading note gave
neither the True nor the False row any credit. The CECS 378 Su26 final used
this form on every verdict question.

parse_outline_from_tex now takes True/False when it leads the reveal, and a
bare T/F on a TF item. A code answer that only mentions "true" later is not
treated as a verdict. Salvaged from the closed #26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012VAyCxeJ3nhHwBM5ABHMqN
@agiacalone
agiacalone merged commit eb7b8cf into main Oct 21, 2026
4 checks passed
@agiacalone
agiacalone deleted the fix/tf-verdict-answer-normalization branch October 21, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant