-- ChatTranslateDictionary_Vocab6.lua
--
-- Sechstes EN-DE Wortschatz-Modul: Fantasy/Mittelalter (WoW-relevant),
-- Piraten, Science-Fiction, Horror/Krimi, Handwerk, Kaffee/Tee,
-- Physik/Geometrie/Zoologie-Erweiterungen, Kreativberufe u.v.m.
-- Enthält NUR Wörter, die in keinem vorherigen Modul vorkommen.
-- Muss NACH allen vorherigen Dateien geladen werden.

CT_Dictionary = CT_Dictionary or {}
CT_Dictionary.words = CT_Dictionary.words or {}

local vocab6 = {
    -- Fantasy und Mittelalter
    { en = "knight", de = "Ritter" },
    { en = "sword", de = "Schwert" },
    { en = "shield", de = "Schild" },
    { en = "throne", de = "Thron" },
    { en = "kingdom", de = "Königreich" },
    { en = "sorcerer", de = "Hexenmeister (Fantasy)" },
    { en = "spell", de = "Zauberspruch" },
    { en = "vassal", de = "Vasall" },
    { en = "lord (medieval)", de = "Lehnsherr" },
    { en = "peasant", de = "Bauer (Mittelalter)" },
    { en = "armor plate", de = "Panzerplatte" },
    { en = "crossbow", de = "Armbrust" },
    { en = "catapult", de = "Katapult" },
    { en = "banner", de = "Banner" },
    { en = "crest", de = "Wappen" },
    { en = "scepter", de = "Zepter" },
    { en = "amulet", de = "Amulett" },
    { en = "talisman", de = "Talisman" },
    { en = "relic", de = "Relikt" },
    { en = "prophecy", de = "Prophezeiung" },

    -- Piraten und Abenteuer
    { en = "treasure", de = "Schatz" },
    { en = "pirate", de = "Pirat" },
    { en = "cannon", de = "Kanone" },
    { en = "sword fight", de = "Schwertkampf" },
    { en = "plank", de = "Planke" },
    { en = "skull and crossbones", de = "Totenkopfflagge" },

    -- Science-Fiction
    { en = "robot", de = "Roboter" },
    { en = "cyborg", de = "Cyborg" },
    { en = "android", de = "Android" },
    { en = "alien", de = "Alien" },
    { en = "laser", de = "Laser" },
    { en = "time travel", de = "Zeitreise" },
    { en = "clone", de = "Klon" },
    { en = "artificial intelligence", de = "künstliche Intelligenz" },
    { en = "hologram", de = "Hologramm" },
    { en = "teleportation", de = "Teleportation" },
    { en = "dystopia", de = "Dystopie" },
    { en = "utopia", de = "Utopie" },

    -- Horror und Krimi
    { en = "monster", de = "Monster" },
    { en = "zombie", de = "Zombie" },
    { en = "cemetery", de = "Friedhof" },
    { en = "clue", de = "Hinweis" },
    { en = "suspect", de = "Verdächtiger" },
    { en = "motive", de = "Motiv" },
    { en = "detective", de = "Detektiv" },
    { en = "investigation", de = "Ermittlung" },
    { en = "crime scene", de = "Tatort" },
    { en = "alibi", de = "Alibi" },
    { en = "haunted", de = "verflucht (Geisterhaus)" },
    { en = "curse", de = "Fluch" },

    -- Weitere Handwerksbereiche
    { en = "calligraphy", de = "Kalligrafie" },
    { en = "typography", de = "Typografie" },
    { en = "fashion design", de = "Modedesign" },
    { en = "jewelry making", de = "Schmuckherstellung" },
    { en = "woodworking", de = "Holzbearbeitung" },
    { en = "metalworking", de = "Metallbearbeitung" },
    { en = "sculpting", de = "Bildhauerei" },
    { en = "chisel", de = "Meißel" },
    { en = "lathe", de = "Drehbank" },
    { en = "workshop", de = "Werkstatt" },

    -- Kaffee, Tee und Genuss
    { en = "espresso", de = "Espresso" },
    { en = "cappuccino", de = "Cappuccino" },
    { en = "latte", de = "Latte" },
    { en = "barista", de = "Barista" },
    { en = "coffee bean", de = "Kaffeebohne" },
    { en = "tea leaf", de = "Teeblatt" },
    { en = "teapot", de = "Teekanne" },
    { en = "kettle", de = "Wasserkocher" },
    { en = "brewing (drink)", de = "Brühen" },
    { en = "aroma", de = "Aroma" },
    { en = "flavor", de = "Geschmack (Aroma)" },

    -- Alternative Medizin
    { en = "acupuncture", de = "Akupunktur" },
    { en = "herbal medicine", de = "Kräutermedizin" },
    { en = "homeopathy", de = "Homöopathie" },
    { en = "aromatherapy", de = "Aromatherapie" },
    { en = "chiropractic", de = "Chiropraktik" },
    { en = "naturopathy", de = "Naturheilkunde" },
    { en = "remedy", de = "Heilmittel" },
    { en = "ointment", de = "Salbe" },

    -- Puzzle und Rätsel
    { en = "jigsaw puzzle", de = "Puzzle (Legespiel)" },
    { en = "crossword", de = "Kreuzworträtsel" },
    { en = "riddle", de = "Rätsel" },
    { en = "maze", de = "Labyrinth" },
    { en = "sudoku", de = "Sudoku" },
    { en = "brain teaser", de = "Denksportaufgabe" },
    { en = "word search", de = "Wortsuche" },

    -- Navigation und Schifffahrt weitere
    { en = "navigation", de = "Navigation" },
    { en = "latitude", de = "Breitengrad" },
    { en = "longitude", de = "Längengrad" },
    { en = "buoy", de = "Boje" },
    { en = "port (harbor)", de = "Hafen (Anlegestelle)" },
    { en = "voyage", de = "Seereise" },
    { en = "shipyard", de = "Werft" },
    { en = "hull", de = "Rumpf (Schiff)" },

    -- Erneuerbare Energie weitere
    { en = "hydropower", de = "Wasserkraft" },
    { en = "geothermal energy", de = "Erdwärme" },
    { en = "biofuel", de = "Biokraftstoff" },
    { en = "turbine", de = "Turbine" },
    { en = "battery storage", de = "Batteriespeicher" },
    { en = "carbon footprint", de = "CO2-Fußabdruck" },
    { en = "sustainability", de = "Nachhaltigkeit" },

    -- Optik und weitere Physik
    { en = "reflection (optics)", de = "Reflexion" },
    { en = "refraction", de = "Brechung" },
    { en = "spectrum", de = "Spektrum" },
    { en = "prism", de = "Prisma" },
    { en = "wavelength", de = "Wellenlänge" },
    { en = "infrared", de = "Infrarot" },
    { en = "ultraviolet", de = "Ultraviolett" },

    -- Geometrische Körper
    { en = "pyramid", de = "Pyramide" },
    { en = "cylinder", de = "Zylinder" },
    { en = "cone", de = "Kegel" },
    { en = "polygon", de = "Polygon" },
    { en = "hexagon", de = "Sechseck" },
    { en = "pentagon", de = "Fünfeck" },
    { en = "octagon", de = "Achteck" },
    { en = "trapezoid", de = "Trapez" },
    { en = "parallelogram", de = "Parallelogramm" },

    -- Sternzeichen und Klimazonen
    { en = "zodiac", de = "Tierkreis" },
    { en = "horoscope", de = "Horoskop" },
    { en = "tropical zone", de = "Tropenzone" },
    { en = "temperate zone", de = "gemäßigte Zone" },
    { en = "arctic zone", de = "arktische Zone" },
    { en = "climate zone", de = "Klimazone" },

    -- Kreativ- und IT-Berufe
    { en = "graphic designer", de = "Grafikdesigner" },
    { en = "web designer", de = "Webdesigner" },
    { en = "illustrator", de = "Illustrator" },
    { en = "copywriter", de = "Werbetexter" },
    { en = "software developer", de = "Softwareentwickler" },
    { en = "system administrator", de = "Systemadministrator" },
    { en = "quality assurance tester", de = "QS-Tester" },
    { en = "data scientist", de = "Datenwissenschaftler" },
    { en = "UX designer", de = "UX-Designer" },
    { en = "game designer", de = "Spieledesigner" },

    -- Prüfungsarten und Lernmethoden
    { en = "oral exam", de = "mündliche Prüfung" },
    { en = "written exam", de = "schriftliche Prüfung" },
    { en = "multiple choice", de = "Multiple-Choice" },
    { en = "essay (exam)", de = "Aufsatz (Prüfung)" },
    { en = "flashcard", de = "Lernkarte" },
    { en = "mnemonic", de = "Eselsbrücke" },
    { en = "plagiarism", de = "Plagiat" },
    { en = "proofreading", de = "Korrekturlesen" },

    -- Zoologie und Botanik Begriffe
    { en = "herd", de = "Herde" },
    { en = "flock", de = "Schwarm (Vögel)" },
    { en = "swarm", de = "Schwarm (Insekten)" },
    { en = "den", de = "Höhle (Tier)" },
    { en = "nest", de = "Nest" },
    { en = "habitat", de = "Lebensraum" },
    { en = "pollination", de = "Bestäubung" },
    { en = "photosynthesis", de = "Photosynthese" },
    { en = "germination", de = "Keimung" },
    { en = "predator", de = "Raubtier" },
    { en = "prey", de = "Beute" },
    { en = "camouflage", de = "Tarnung" },
    { en = "migration (animal)", de = "Wanderung (Tier)" },
    { en = "hibernation", de = "Winterschlaf" },

    -- Yoga und Entspannung
    { en = "yoga", de = "Yoga" },
    { en = "breathing exercise", de = "Atemübung" },
    { en = "balance (yoga)", de = "Gleichgewicht" },
    { en = "stress relief", de = "Stressabbau" },
    { en = "mental health", de = "psychische Gesundheit" },
    { en = "self-care", de = "Selbstfürsorge" },

    -- Publizistik und Rundfunk
    { en = "newspaper", de = "Zeitung" },
    { en = "headline", de = "Schlagzeile" },
    { en = "editor", de = "Redakteur" },
    { en = "press release", de = "Pressemitteilung" },
    { en = "correspondent", de = "Korrespondent" },
    { en = "interview (journalism)", de = "Interview" },

    -- Oper und Klassik
    { en = "opera", de = "Oper" },
    { en = "aria", de = "Arie" },
    { en = "soprano", de = "Sopran" },
    { en = "tenor", de = "Tenor" },
    { en = "libretto", de = "Libretto" },
    { en = "overture", de = "Ouvertüre" },
    { en = "ensemble", de = "Ensemble" },

    -- Uhren und Zeitmessung
    { en = "wristwatch", de = "Armbanduhr (Zeitmessung)" },
    { en = "hourglass", de = "Sandglas" },
    { en = "sundial", de = "Sonnenuhr" },
    { en = "pendulum", de = "Pendel" },
    { en = "chronometer", de = "Chronometer" },
    { en = "alarm clock", de = "Wecker" },

    -- Adventure Tourismus
    { en = "safari", de = "Safari" },
    { en = "expedition", de = "Expedition" },
    { en = "trekking", de = "Trekking" },
    { en = "bungee jumping", de = "Bungee-Jumping" },
    { en = "skydiving", de = "Fallschirmspringen" },
    { en = "paragliding", de = "Gleitschirmfliegen" },
    { en = "scuba diving", de = "Gerätetauchen" },
    { en = "snorkeling", de = "Schnorcheln" },
    { en = "rock climbing", de = "Klettern (Fels)" },

    -- Weitere Alltagsverben
    { en = "to whisper (repeat)", de = "flüstern (weiteres)" },
    { en = "to guess", de = "raten" },
    { en = "to assume", de = "annehmen" },
    { en = "to suppose", de = "vermuten" },
    { en = "to admit", de = "zugeben" },
    { en = "to deny", de = "abstreiten" },
    { en = "to confirm", de = "bestätigen" },
    { en = "to suggest", de = "vorschlagen" },
    { en = "to recommend", de = "empfehlen" },
    { en = "to warn", de = "warnen" },
    { en = "to threaten", de = "bedrohen" },
    { en = "to insist", de = "bestehen auf" },
    { en = "to convince", de = "überzeugen (weiteres)" },
    { en = "to hesitate", de = "zögern" },
    { en = "to react", de = "reagieren" },
    { en = "to respond", de = "antworten (reagieren)" },
    { en = "to adapt", de = "anpassen" },
    { en = "to adjust", de = "justieren" },
    { en = "to modify", de = "modifizieren" },
    { en = "to update (verb)", de = "aktualisieren (weiteres)" },

    -- Weitere Substantive
    { en = "perspective", de = "Perspektive" },
    { en = "viewpoint", de = "Standpunkt" },
    { en = "assumption", de = "Annahme" },
    { en = "argument", de = "Argument" },
    { en = "conclusion", de = "Schlussfolgerung" },
    { en = "summary", de = "Zusammenfassung" },
    { en = "context", de = "Kontext" },
    { en = "detail", de = "Detail" },
    { en = "aspect", de = "Aspekt" },
    { en = "factor", de = "Faktor" },
    { en = "component", de = "Komponente" },
    { en = "structure (general)", de = "Struktur" },
    { en = "trend", de = "Trend" },
    { en = "phenomenon", de = "Phänomen" },
    { en = "concept", de = "Konzept" },

}

for _, entry in ipairs(vocab6) do
    table.insert(CT_Dictionary.words, entry)
end

local function BuildIndex(sourceTable, destIndex)
    for _, entry in ipairs(sourceTable) do
        for srcLang, srcText in pairs(entry) do
            local key = srcText:lower()
            for tgtLang, tgtText in pairs(entry) do
                if tgtLang ~= srcLang then
                    destIndex[tgtLang] = destIndex[tgtLang] or {}
                    destIndex[tgtLang][key] = tgtText
                end
            end
        end
    end
end

CT_Dictionary.wordIndex = CT_Dictionary.wordIndex or {}
BuildIndex(CT_Dictionary.words, CT_Dictionary.wordIndex)