import Foundation

public extension VerbLevel {
    /// The highest-ranked `VerbLevel` in `set` per `allCases` ordering.
    /// Used when a single representative level is required (word-of-day
    /// widget, AI chat/story scenario generation).
    static func highest(in set: Set<VerbLevel>) -> VerbLevel? {
        allCases.last { set.contains($0) }
    }
}
