7 lines
249 B
Dart
7 lines
249 B
Dart
/// Grading rules for typed spelling answers (mirrors server policy).
|
|
abstract final class SpellingAnswerPolicy {
|
|
static bool matches(String typed, String canonical) {
|
|
return typed.trim().toLowerCase() == canonical.trim().toLowerCase();
|
|
}
|
|
}
|