Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FITBRegexGrader

Implements

Index

Constructors

Properties

t_response_kinds: "fill_in_the_blank"
minRubricItemPoints: number

Methods

  • isGrader<T>(responseKind: T): this is QuestionGrader<T, GradingResult>
  • prepare(): void
  • Gives the grader a chance to do any one-time preparation depending on the exam and question it is being used for. Generally, this is used to process manual grading results, which are loaded externally and provided as a parameter when prepare() is called.

    Returns void

  • single_blank_grade_helper(submission: string, rubric_item: FITBRegexRubricItem): { matched: boolean; pointsEarned: number; explanation: undefined | string }
  • Parameters

    Returns { matched: boolean; pointsEarned: number; explanation: undefined | string }

    • matched: boolean
    • pointsEarned: number
    • explanation: undefined | string
  • Computes the number of points earned for the given grading result. Heads up! This could be negative or more than the number of points a question is worth, depending on the type of grader. That's not the concern of the grader, and it's presumed to be handled elsewhere (e.g. by clamping the value between 0 and max points possible on a question).

    Parameters

    Returns number

  • getGradedBlanksSubmissions(submissions: readonly FITBSubmission[]): { grading_result: { matched: boolean; pointsEarned: number; explanation: undefined | string }; sub: string; num: number }[][]
  • Parameters

    Returns { grading_result: { matched: boolean; pointsEarned: number; explanation: undefined | string }; sub: string; num: number }[][]

Generated using TypeDoc