import Foundation

struct WordBank: Codable {
    let version: Int
    let categories: [WordCategory]
}

struct WordCategory: Codable, Identifiable, Hashable {
    let id: String
    let name: String
    let icon: String
    let words: [Word]
}

struct Word: Codable, Identifiable, Hashable {
    var id: String { word }
    let word: String
    let phonetic: String
    let meaning: String
    let example: String
    let exampleMeaning: String
}
