Project-2 baseline
This commit is contained in:
@@ -86,3 +86,14 @@ never a numeric magnitude, never points, never a cap or pinned score: the
|
||||
grader sizes the subtraction itself. Always state the behavior that does NOT trip the penalty.
|
||||
Never describe how criteria combine into an overall score.>
|
||||
`;
|
||||
|
||||
/** The title names the task, not its author: a leading `<EUID>-` (the worker's 12-char id,
|
||||
* which workers put on their task dir) is dropped. Anything else is used as given. */
|
||||
export function rubricTitleSlug(slug: string): string {
|
||||
return slug.replace(/^(?=[A-Z0-9]*\d)[A-Z0-9]{12}-(?=\S)/, '');
|
||||
}
|
||||
|
||||
/** The scaffold with `<task-slug>` filled in for a task whose name is already known. */
|
||||
export function holisticRubricScaffoldFor(slug: string): string {
|
||||
return HOLISTIC_RUBRIC_SCAFFOLD.replace('<task-slug>', rubricTitleSlug(slug));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user