judgeText

Judges a text answer: correct when, ignoring case and surrounding or repeated whitespace, it matches any one of the accepted strings.

@internote/canvas-sdkFunction
On this page
import { judgeText } from '@internote/canvas-sdk';

#Values

correctincorrect

#Parameters

accepted
The strings the question accepts.
answer
What the reader typed.

Declared in packages/canvas-sdk/src/assess/judge.ts:442.

Last updated