Module:CharacterInfoboxOrigins

-- Put EVERY case where you want to categorize based on a word or phrase here. If they're not specifically here, they won't be categorized, especially if part of the word(s) is in the exceptions area. -- Be sure to escape every alpha-numeric character with % -- Some keywords are not to be used, because they can cover multiple meaning or subcategories. For example, the word Skrull is replaced by Prime Skrull, Eternal Skrull and mainly Deviant Skrulls. Deviant (for Earth-born Deviants) is replaced by Homo descendus, etc. -- Syntax: ["find this word or phrase in the field"] = {"Category1", "Category2", "Category3" ... }

local valid = { ["%[%[alien%]%]"] = {"Aliens"}, ["%[%[atlantean%]%]"] = {"Origin Needing Correction"}, ["%[%[atlanteans%]%]"] = {"Origin Needing Correction"}, ["%[%[centaur%]"] = {"Centaurs"}, ["%[%[centaur %(olymp"] = {"Kentauros"}, ["%[%[centaurs %(olymp"] = {"Kentauros"}, ["%[%[centaurian"] = {"Centaurians"}, ["%[%[dog"] = {"Dogs"}, ["%[%[dragon%]"] = {"Dragons"}, ["%[%[dwarf%]%]"] = {"Dwarves of Unknown Origin"}, ["%[%[dwarves%]%]"] = {"Origin Needing Correction"}, ["%[%[elf%]%]"] = {"Origin Needing Correction"}, ["%[%[elves%]%]"] = {"Origin Needing Correction"}, ["%[%[giant%]%]"] = {"Origin Needing Correction"}, ["%[%[gnome"] = {"Gnomes"}, ["%[%[horse"] = {"Horses"}, ["%[%[homo sapiens%|human mutant"] = {"Origin Needing Correction (human)"}, ["%[%[homo sapiens%|human mutate"] = {"Origin Needing Correction (human)"}, ["%[%[homo sapiens%|mutate"] = {"Origin Needing Correction (human)"}, ["%[%[homo sapiens%|mutant%]%]"] = {"Origin Needing Correction (human)"}, ["%[%[homo superior%|human%]%]"] = {"Origin Needing Correction (human)"}, ["%[%[human%]"] = {"Origin Needing Correction"}, ["%[%[inhuman%]%]"] = {"Origin Needing Correction"}, ["%[%[kree%]%]"] = {"Kree"}, ["%[%[nymph%]%]"] = {"Nymphs"}, ["%[%[skrull%]%]"] = {"Origin Needing Correction"}, ["%[%[skrulls%]%]"] = {"Origin Needing Correction"}, ["%[%[skrulls%|%]%]"] = {"Origin Needing Correction"}, ["%[%[taurian"] = {"Taurians"}, ["%[%[troll%]%]"] = {"Origin Needing Correction"}, ["13s mutants"] = {"13s Mutants"}, ["aakon"] = {"Aakon"}, ["abstract entity"] = {"Abstract Entities", "Cosmic Beings"}, ["achernonian"] = {"Achernonians"}, ["aesir"] = {"Aesir", "Deities"}, ["akah ma%'at"] = {"Bird Men of Akah Ma'at"}, [" alien "] = {"Aliens", "Origin Needing Correction"}, ["alien mutant"] = {"Alien Mutants"}, ["alpha centurian"] = {"Alpha Centaurians"}, ["alpha primitive"] = {"Alpha Primitives"}, ["amphogenesis"] = {"Amphogenesis", "Mutates"}, ["angels %(mono"] = {"Angels (Monotheism)"}, ["angels %(tenth"] = {"Angels (Tenth Realm)"}, ["antigenesis"] = {"Antigenesis", "Mutates"}, [" ape "] = {"Apes"}, ["ape atlantean"] = {"Atlantean Apes"}, ["ape mutant"] = {"Simian Mutants"}, ["aqueos"] = {"Aqueos", "Vampires", "Undead"}, ["arcturan"] = {"Arcturans"}, ["arcturan mutant"] = {"Arcturan Mutants"}, ["arfgardian"] = {"Arfgardians", "Dogs"}, ["armechadon"] = {"Deviants of Armechadon"}, ["asgardian %(earth%-9997%)"] = {"Asgardians (Earth-9997)"}, ["asgardian dragon"] = {"Asgardian Dragons"}, ["avian"] = {"Inhumans (Inhomo supremis)", "Bird-People"}, ["bacteria"] = {"Bacteria"}, ["badoon"] = {"Badoon"}, ["beastial"] = {"New Men"}, ["beasts %(earth%-trn243"] = {"Beasts (Mutants)"}, ["beginagains%, chosen and rejects"] = {"Beginagains/Chosen/Rejects"},  ["beyonders"] = {"Beyonders"},  ["bird people"] = {"Inhumans (Inhomo supremis)", "Bird-People"},  ["bird%-people"] = {"Inhumans (Inhomo supremis)", "Bird-People"},  ["bright elf"] = {"Light Elves"},  ["brood"] = {"Brood"},  ["cat elf"] = {"Cat Elves"},  ["cat elves"] = {"Cat Elves"},  ["category%:humans"] = {"Origin Needing Correction"},  ["cebus capucinus"] = {" White-Headed Capuchin (Cebus capucinus)"},  ["chameloid"] = {"Chameloids"},  ["chaos sprites"] = {"Chaos Sprites"},  ["chitauri"] = {"Chitauri"},  ["clone"] = {"Clones"},  ["cosmic being"] = {"Cosmic Beings"},  ["cosmic ray"] = {"Cosmic Ray Exposure"},  ["cybernetic"] = {"Cyborgs"},  ["cyborg"] = {"Cyborgs"},  ["dark elf"] = {"Dark Elves"},  ["dark elves"] = {"Dark Elves"},  ["deathlok%-class unit"] = {"Deathlok-Class Units"}, ["demon"] = {"Demons"}, ["deity"] = {"Deities"}, ["deviant %(artificial eternal%)"] = {"Deviants (Artificial Eternals)", "Mutates"}, ["deviant mutate %(deviant experim"] = {"Deviant Mutates (Deviant Experiments)"}, ["deviant mutates %(deviant experiments"] = {"Deviant Mutates (Deviant Experiments)"}, ["deviant mutates %(deviants experiments"] = {"Origin Needing Correction"}, ["deviant mutate %(monstrous"] = {"Deviant Mutates (Monstrous Deviants)", "Deviants (Homo descendus)"}, ["deviant mutates %(monstrous"] = {"Deviant Mutates (Monstrous Deviants)", "Deviants (Homo descendus)"}, ["deviant skrull"] = {"Deviant Skrulls"},  ["deviant syndrome"] = {"Mutant Eternals (Deviant Syndrome)"},  ["deviants %(race"] = {"Origin Needing Correction"}, ["devil beast"] = {"Devil Beasts"}, ["dievas"] = {"Dievas", "Deities"}, ["dinosaur"] = {"Dinosaurs"}, ["dire wraith"] = {"Dire Wraiths"}, ["djinn (race)"] = {"Djinn"}, ["doombot"] = {"Doombots"}, ["doppelganger"] = {"Doppelgangers"}, ["dragon of k%'un%-lun"] = {"Dragons of K'un-Lun"}, ["dwarf of nidavellir"] = {"Dwarves of Nidavellir"}, ["dwarf of weirdworld"] = {"Dwarves of Weirdworld"}, ["dwarves of weirdworld"] = {"Dwarves of Weirdworld"}, ["elephant"] = {"Elephants"}, ["elf of klarn"] = {"Elves of Klarn"}, ["elf of otherworld"] = {"Elves of Otherworld"}, ["epsiloni"] = {"Epsiloni"}, ["eridani"] = {"Eridani"}, ["eternal %(earth%-30826%)"] = {"Eternals (Aliens)"}, ["eternal ape"] = {"Eternal Apes"}, ["eternal of earth"] = {"Eternals of Earth", "Eternals (Homo immortalis)"}, ["eternal of skrullos"] = {"Eternal Skrulls"}, ["eternal of unknown species"] = {"Eternals of Unknown Species"}, ["eternal skrull"] = {"Eternal Skrulls"}, ["eternals %(race%)"] = {"Origin Needing Correction"}, ["exogenesis"] = {"Exogenesis", "Mutates"}, ["external"] = {"Externals", "Immortals"}, ["faerie"] = {"Fairies"}, ["faerie of avalon"] = {"Fairies of Avalon"}, ["faerie of the nine worlds"] = {"Fairies of the Nine Worlds"}, ["faeries"] = {"Fairies"}, ["faeries of avalon"] = {"Fairies of Avalon"}, ["faeries of the nine worlds"] = {"Fairies of the Nine Worlds"}, ["fairies"] = {"Fairies"}, ["fairies of avalon"] = {"Fairies of Avalon"}, ["fairies of the nine worlds"] = {"Fairies of the Nine Worlds"}, ["fairy"] = {"Fairies"}, ["fairy of avalon"] = {"Fairies of Avalon"}, ["fairy of the nine worlds"] = {"Fairies of the Nine Worlds"}, ["fallen angel"] = {"Fallen Angels", "Angels (Monotheism)"}, ["faltin"] = {"Faltine"}, ["felisian"] = {"Felisians"}, ["fire demon"] = {"Fire Demons"}, ["flock"] = {"Flock"}, ["fomalhauti"] = {"Fomalhauti"}, ["fomor"] = {"Fomorians"}, ["fomorian"] = {"Fomorians"}, ["froma"] = {"Froma"}, ["frost giant"] = {"Frost Giants"}, ["gamma"] = {"Gamma Ray Exposure"}, ["gann josin"] = {"Gann Josin"}, ["gegku"] = {"Gegku"}, ["genoshan mutate"] = {"Genoshan Mutates"}, ["gestalt"] = {"Gestalt Characters"}, ["giant of jotunheim"] = {"Giants of Jotunheim"}, ["gigantes"] = {"Gigantes"}, ["giants of jotunheim"] = {"Giants of Jotunheim"}, ["goblin"] = {"Goblins"}, ["goblin formula"] = {"Goblin Formula"}, ["goblin serum"] = {"Goblin Formula"}, ["god"] = {"Deities"}, ["golem"] = {"Golems"}, ["gorgon"] = {"Gorgons"}, ["gorilla"] = {"Gorillas"}, ["great beast"] = {"Great Beasts", "Demons", "Deities"}, ["grund"] = {"Grunds"}, ["hauk%'ka"] = {"Hauk'ka"}, ["hesperide"] = {"Hesperides"}, ["hodinn"] = {"Hodinn"}, ["hodomurian"] = {"Hodomurians"}, ["homo descendus"] = {"Deviants (Homo descendus)"}, ["homo erectus"] = {"Homo erectus"}, ["homo immortalis"] = {"Eternals (Homo immortalis)"}, ["homo merman"] = {"Homo mermanus"}, ["homo mermanus mutants"] = {"Atlantean Mutants"}, ["homo sapiens"] = {"Humans (Homo sapiens)"}, ["homo superior"] = {"Mutants (Homo superior)"}, ["homo supreme"] = {"Homo supreme"}, ["human%/alien hybrid"] = {"Hybrids", "Human/Alien Hybrids"}, ["human%/reptile hybrid"] = {"Hybrids", "Human/Reptile Hybrids"}, ["hyade"] = {"Hyades"}, ["hybrid"] = {"Hybrids"}, ["hyde formula"] = {"Hyde Formula"}, ["ice elf"] = {"Ice Elves"}, ["ice elves"] = {"Ice Elves"}, ["ice giant"] = {"Ice Giants"}, ["infinity formula"] = {"Infinity Formula"}, ["%[inhumans%]"] = {"Origin Needing Correction"}, ["inhumans %(inhomo"] = {"Inhumans (Inhomo supremis)"}, ["inhumans %(race%)"] = {"Inhumans (Inhomo supremis)"},  ["inhuman badoon"] = {"Inhuman Badoon"},  ["inhuman centaurian"] = {"Inhuman Centaurians"},  ["inhuman kymellian"] = {"Inhuman Kymellians"},  ["inhomo supremis"] = {"Inhumans (Inhomo supremis)"},  ["inua"] = {"Inua"},  ["ionic"] = {"Ionic Characters"},  ["isogenesis"] = {"Isogenesis", "Mutates"},  ["jath'che"] = {"Jath'Che"},  ["jotun"] = {"Giants of Jotunheim"},  ["k%'aitian"] = {"K'aitians"},  ["kentauros"] = {"Kentauros"},  ["klangian"] = {"Klangians"},  ["korbin"] = {"Korbinites"},  ["krakoa"] = {"Krakoas", "Islands"},  [" kree "] = {"Kree"},  ["kree sentr"] = {"Kree Sentries"},  ["krogarran"] = {"Krogarrans"},  ["krozzar"] = {"Krozzar"},  ["krylorian"] = {"Krylorians"},  ["kt'kn"] = {"Kt'kn"},  ["kumiho"] = {"Kumiho"},  ["kymelli"] = {"Kymellians"},  ["landlak"] = {"Landlaks"}, ["landlak mutant"] = {"Landlak Mutants"}, ["lupak"] = {"Lupak"}, ["luphomoid"] = {"Luphomoids"}, [" lem "] = {"Lem"}, ["leprechaun"] = {"Leprechauns"}, ["life%-model decoy"] = {"Life-Model Decoys"}, ["light elf"] = {"Light Elves"}, ["light elves"] = {"Light Elves"}, ["lilin"] = {"Lilin"}, ["macaca fuscata"] = {"Japanese Macaques (Macaca fuscata)"}, ["magic user"] = {"Magicians"}, ["magician"] = {"Magicians"}, ["majesdanian"] = {"Majesdanians"}, ["makluan%]"] = {"Makluans"}, ["mephitisoid"] = {"Mephitisoids"}, ["metahuman"] = {"Metahumans"}, ["metamutant"] = {"Metamutants", "Mutants (Homo superior)", "Metahumans"}, ["mobian"] = {"Mobians"}, ["moensien"] = {"Moensiens"}, ["molan"] = {"Molans"}, ["moloid"] = {"Moloids"}, ["monkey"] = {"Monkeys"}, ["mountain giant"] = {"Mountain Giants"}, ["mummudrai"] = {"Mummudrai"}, ["mutant brood"] = {"Mutant Brood"}, ["mutant devil beast"] = {"Mutant Devil Beasts"}, ["mutant dinosaur"] = {"Mutant Dinosaurs"}, ["mutant eternal"] = {"Mutant Eternals (Deviant Syndrome)"}, ["mutant hauk%'ka"] = {"Hauk'ka Mutants"}, ["mutant kree"] = {"Kree Mutants"}, ["mutant m%'kraan"] = {"Mutant M'Kraan"}, ["mutant technarch"] = {"Mutant Technarchs"}, ["mutant titanian"] = {"Mutant Eternals (Deviant Syndrome)"}, ["mutate"] = {"Mutates"}, ["mutroid"] = {"Mutroids"}, ["n%'garai"] = {"N'Garai", "Demons"}, ["neanderthal"] = {"Homo neanderthalensis"}, ["neo"] = {"Neo", "Mutants (Homo superior)"}, ["nereid"] = {"Nereids"}, ["nornheim asgardian"] = {"Nornheim Asgardians"}, ["olympian"] = {"Olympians", "Immortals"}, [" oni "] = {"Oni", "Demons"}, ["orangutan"] = {"Orangutans"}, ["oz%]%]"] = {"Oz Formula", "Super-Soldiers"}, ["oz formula"] = {"Oz Formula", "Super-Soldiers"}, ["phalanx"] = {"Techno-Organic Virus", "Phalanx"}, ["plasmagenian"] = {"Plasmagenians"}, ["pleiade"] = {"Pleiades"}, ["plodex"] = {"Plodex"}, ["pluvian"] = {"Pluvians"}, ["possible homo superior"] = {"Possible Mutants"}, ["possible mutants"] = {"Possible Mutants"}, ["procyonite"] = {"Procyonites"}, ["proto%-mutant"] = {"Proto-Mutants"}, ["psionic entity"] = {"Psionic Entities"}, ["psycho%-wraith"] = {"Psycho-Wraiths"}, ["pym particle"] = {"Pym Particles"}, ["quarlian%]"] = {"Quarlians"}, ["quarlian gnome"] = {"Quarlian Gnomes"}, ["quarlians%]"] = {"Quarlians"}, ["reptoid"] = {"Reptoids"}, ["rhunian"] = {"Rhunians"}, ["rigellian%]%]"] = {"Rigellians"}, ["rigellians"] = {"Origin Needing Correction"}, ["rigellian mutant"] = {"Rigellian Mutants", "Rigellians"}, ["rigellian recorder"] = {"Rigellian Recorders", "Robots"}, ["rime giant"] = {"Rime Giants"}, ["robot"] = {"Robots"}, ["rock troll"] = {"Rock Trolls (Orange-Skinned)"}, ["roclite"] = {"Roclites"}, ["ru%'tai"] = {"Ru'Tai", "N'Garai", "Demons"}, ["ruul"] = {"Ruul", "Kree"}, ["sentinel"] = {"Sentinels"}, ["sark"] = {"Sarks"}, ["saurian"] = {"Saurians"}, ["saurid"] = {"Saurids"}, ["savage elf"] = {"Savage Elves"}, ["scy%'ar tal"] = {"M'Kraan (Scy'ar Tal)"}, ["sea nymph"] = {"Water Nymphs"}, ["shi'ar"] = {"Shi'ar", "Avian Form"}, ["shi'ar genetic throwback"] = {"Shi'ar Genetic Throwbacks", "Winged Characters"}, ["siren"] = {"Sirens"}, ["siris"] = {"Siris"}, ["slaver %(specie"] = {"Slavers (Aliens)"}, ["slavers %(specie"] = {"Slavers (Aliens)"}, ["smoke elf"] = {"Smoke Elves"}, ["solon"] = {"Solons"}, ["spartoi"] = {"Spartoi"}, ["stonian"] = {"Stonians"}, ["strontian"] = {"Strontians"}, ["skrull deity"] = {"Skrull Gods"}, ["skrull god"] = {"Skrull Gods"}, ["skrull mutant"] = {"Skrull Mutants (K-Class Deviants)", "Deviant Skrulls"}, ["sorcer"] = {"Magicians"}, ["space beast"] = {"Space Beasts"}, ["storm giant"] = {"Storm Giants"}, ["succubus"] = {"Succubus", "Demons"}, ["super soldier"] = {"Super-Soldiers"}, ["super%-soldier"] = {"Super-Soldiers"}, ["synthezoid"] = {"Synthezoids"}, ["synthozoid"] = {"Synthezoids"}, ["taa%-an"] = {"Taa-ans"}, ["tebbel"] = {"Deviants of Tebbel"}, ["technarch"] = {"Technarchy", "Techno-Organic Virus"}, ["termini"] = {"Termini"}, ["terrigen"] = {"Terrigenesis", "Mutates"}, ["time traveler"] = {"Time Travelers"}, ["titan %(olymp"] = {"Titans"}, ["titanian"] = {"Titanians", "Eternals (Homo immortalis)"},  ["titans %(olymp"] = {"Titans"}, ["traanian"] = {"Traanians"}, ["tribbitite"] = {"Tribbitites"}, ["troll of hades"] = {"Trolls of Hades"}, ["troll of the nine worlds"] = {"Asgardian Trolls"}, ["trolls of the nine worlds"] = {"Asgardian Trolls"}, ["troyjan"] = {"Troyjans"}, ["tuatha de danaan"] = {"Tuatha de Danaan"}, ["uranian"] = {"Uranians"}, ["undead"] = {"Undead"}, ["uni%-mind"] = {"Uni-Minds & Over-Minds", "Gestalt Characters"}, ["unicorn"] = {"Unicorns"}, ["valkyr"] = {"Valkyries"}, ["vampire"] = {"Vampires", "Undead"}, ["vanir"] = {"Vanir"}, ["vi%-lock "] = {"Vi-Locks", "Techno-Organic Virus", "Metal Body", "Legacy Virus Victims"}, ["warpie"] = {"Warpies", "Mutates", "Humans (Homo sapiens)"}, ["warpsmith"] = {"Warpsmiths"}, ["water nymph"] = {"Water Nymphs"}, ["wendigo"] = {"Wendigos"}, ["werewolf"] = {"Werewolves"}, ["wilameanis"] = {"Wilameanis"}, ["winged inhuman"] = {"Inhumans (Inhomo supremis)", "Bird-People"}, [" witch "] = {"Magicians"}, ["witchbreed"] = {"Mutants (Homo superior)"}, ["wizard"] = {"Magicians"}, ["wraith inhuman"] = {"Wraith Inhumans", "Dire Wraiths"}, ["zehoberi"] = "Zen-Whoberis", ["zen whoberi"] = {"Zen-Whoberis"}, ["zen%-whoberi"] = {"Zen-Whoberis"}, ["zenn%-lavian"] = {"Zenn-Lavians"}, ["zn%'rx"] = {"Zn'rx"}, ["zombie"] = {"Zombies", "Undead"}, }

-- Put all of the exceptions where you don't want a category, but part of one of the valid words might exist in your field (e.g. don't categorise as Fur if fur is in something else not specified in the valid area) -- Syntax: ["word_to_look_up"] = {"Examples where the exception is part of another categorization (for documentation, not used in code)" ... }

local exceptions = { ["alien"] = {"alien symbiote"}, ["avian"] = {"zenn%-lavian"}, ["centaurian"] = {"alpha centaurians"}, ["goblin"] = {"goblin formula"}, ["goblin"] = {"goblin serum"}, ["neo"] = {"neo-mutants"}, ["nymph"] = {"sea nymphs"}, ["oz"] = {"synthozoids"}, ["olympian"] = {"titan %(olympian"},	["olympian"] = {"titans %(olympian"}, }

local origins = { ["valid"] = valid, ["exceptions"] = exceptions }

return origins