import Foundation
import SharedModels

/// Thin app-side wrapper around the SharedModels `AnswerGrader`. All logic
/// lives in SharedModels so it can be unit tested.
enum AnswerChecker {
    static func grade(userText: String, canonical: String, alternates: [String] = []) -> TextbookGrade {
        AnswerGrader.grade(userText: userText, canonical: canonical, alternates: alternates)
    }
}
