Documentation
¶
Overview ¶
Package repeatcalc holds the pure study-group-semester repeat heuristic: reading the semester number out of a study-group code and deciding whether an exam is (likely) a repeat for a student. It drives the conflict auto-accept (a repeat conflict is only informational) and the plan-generation down-weighting. All functions are I/O-free; the heuristic is not fully reliable (study-group numbers are the only signal), so it only down-weights, never hard-excludes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinGroupSemester ¶
MinGroupSemester returns the smallest semester number found in the exam's groups (e.g. "IF2A" -> 2), or 0 if none.
func RepeatForStudent ¶
RepeatForStudent reports whether an exam is (likely) a repeat for a student: the exam is flagged a repeater, or the student's semester is higher than the exam's (a heuristic via study-group numbers; not fully reliable).
func SemesterOf ¶
SemesterOf extracts the first run of digits from a study-group code (e.g. "IF4B" -> 4), or 0 if none.
Types ¶
This section is empty.