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