Module:User:Erutuon/grc-decl/sandbox/decl/classes

--[[ -- Created with the following code. Deepcopy is probably unnecessary.

local data = require'Module:table'.deepcopy(mw.loadData'Module:grc-decl/sandbox/decl/staticdata', true) local dump = require'Module:debug'.highlight_dump return dump(data) --]]

return { ["adjinflections"] = { ["1&2-alp"] = { "2nd", "1st-alp", "2nd-N", ["adeclheader"] = "1&2", },		["1&2-alp-con"] = { "2nd-con", "1st-alp", "2nd-N-con", ["adeclheader"] = "1&2", },		["1&2-eta"] = { "2nd", "1st-eta", "2nd-N", ["adeclheader"] = "1&2", },		["1&2-eta-con"] = { "2nd-con", "1st-eta", "2nd-N-con", ["adeclheader"] = "1&2", },		["1&3-ups"] = { "3rd-weak-υ", "1st-als", "3rd-N-weak-υ", ["a2"] = "ει", ["adeclheader"] = "1&3", },		["1&3-εν"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "εν", ["a2"] = "ειν", ["adeclheader"] = "1&3", },		["1&3-εντ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "εντ", ["a2"] = "εισ", ["adeclheader"] = "1&3", },		["1&3-εσσ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "εντ", ["a2"] = "εσσ", ["adeclheader"] = "1&3", },		["1&3-οντ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "οντ", ["a2"] = "ουσ", ["adeclheader"] = "1&3", },		["1&3-οντ-con"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "ουντ", ["a2"] = "ουσ", ["adeclheader"] = "1&3", },		["1&3-οτ"] = { "3rd-cons", "1st-als", "3rd-N-cons", ["a1"] = "οτ", ["a2"] = "υι", ["adeclheader"] = "1&3", },		["1&3-ουντ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "οντ", ["a2"] = "ουσ", ["adeclheader"] = "1&3", },		["1&3-ωντ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "ωντ", ["a2"] = "ωσ", ["adeclheader"] = "1&3", },		["1&3-ᾰν"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "ᾰν", ["a2"] = "αιν", ["adeclheader"] = "1&3", },		["1&3-ᾰντ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "ᾰντ", ["a2"] = "ᾱσ", ["adeclheader"] = "1&3", },		["1&3-ῠντ"] = { "3rd-cons", "1st-ets", "3rd-N-cons", ["a1"] = "ῠντ", ["a2"] = "ῡσ", ["adeclheader"] = "1&3", },		["2nd"] = { "2nd", nil, "2nd-N", ["adeclheader"] = "2nd", },		["2nd-att"] = { "2nd-att", nil, "2nd-N-att", ["adeclheader"] = "Attic", },		["3rd-cons"] = { "3rd-cons", nil, "3rd-N-cons", ["adeclheader"] = "3rd", },		["3rd-εσ"] = { "3rd-εσ", nil, "3rd-N-εσ", ["adeclheader"] = "3rd", },		["3rd-εσ-open"] = { "3rd-εσ-open", nil, "3rd-N-εσ-open", ["adeclheader"] = "3rd", },	},	["adjinflections_con"] = { ["1&2-alp-con"] = { "2nd-con", "1st-alp", "2nd-N-con", ["adeclheader"] = "1&2", },		["1&2-eta-con"] = { "2nd-con", "1st-eta", "2nd-N-con", ["adeclheader"] = "1&2", },		["3rd-εσ"] = { "3rd-εσ", nil, "3rd-N-εσ", ["adeclheader"] = "3rd", },	},	["ambig_forms"] = { ["α"] = { ["ας"] = true, ["ης"] = true, },		["υς"] = { ["εως"] = true, ["υος"] = true, },	},	["ambig_forms_adj"] = { },	["conversion"] = { ["1st-M-alp"]	= "M_alp_pax", ["1st-M-alp2"]	= "M_alp_con", ["1st-M-eta"]	= "M_eta_pax", ["1st-alp"]		= "alp_pax", ["1st-als"]		= "als_prx", ["1st-eta"]		= "eta_pax", ["1st-ets"]		= "ets_prx", ["2nd"]			= "second", ["2nd-N"]		= "second_N", ["2nd-N-att"]	= "second_N_att_prx", ["2nd-N-con"]	= "second_N_con", ["2nd-att"]		= "second_att", ["2nd-con"]		= "second_con", ["3rd-N-pure-ι"]	= "N_pure_i_prx", ["3rd-N-pure-υ"]	= "N_pure_u_prx", ["3rd-N-weak-ι"]	= "N_weak_i_prx", ["3rd-N-weak-υ"]	= "N_weak_u", ["3rd-N-εσ"]		= "N_es_adj", ["3rd-N-ος"]		= "N_es_prx", ["3rd-N-ος-open"]	= "N_es_prx_open", ["3rd-N-ᾰσ"]		= "N_as_prx", ["3rd-pure-ι"]		= "pure_i_prx", ["3rd-pure-υ"]		= "pure_u", ["3rd-pure-υ-long"]	= "pure_u_long_prx", ["3rd-weak-ι"]		= "weak_i_prx", ["3rd-weak-υ"]		= "weak_u", ["3rd-εσ"]			= "es_adj", ["3rd-εσ-open"] 	= "es_adj_prx_open", ["3rd-ευς"] 		= "eus", ["3rd-ευς-con"] 	= "eus_con", ["3rd-κλῆς"]		= "kles", ["3rd-κλῆς-open"]	= "kles_open", ["3rd-οι"]			= "oi", },	["headers"] = { ["1&2"]		= "First and second declension", ["1&3"] 	= "First and third declension", ["1st"] 	= "First declension", ["2nd"] 	= "Second declension", ["3rd"] 	= "Third declension", ["Attic"]	= "Attic second declension", ["decl"]	= "Declension", ["irreg"]	= "Irregular declension", },	["infl_info"] = { noun = { longest_nominative_ending = 5, ["ᾱ"] = { ["ᾱς"] = "1st-alp", ["ας"] = "1st-alp", },			["ᾱς"] = { ["α"]	= "1st-M-alp", ["ᾱ"]	= "1st-M-alp", ["ου"]	= "1st-M-alp", },			["ᾰ"] = { ["ᾱς"] = "1st-als", ["ας"] = "1st-als", ["ης"] = "1st-ets", },			["ᾰς"] = { ["ᾰος"]	= "3rd-N-ᾰσ-open", ["αος"]	= "3rd-N-ᾰσ-open", ["ως"]	= "3rd-N-ᾰσ", },			["ας"] = { ["α"]	= "1st-M-alp", ["ᾱ"]	= "1st-M-alp", ["ᾰος"]	= "3rd-N-ᾰσ-open", ["αος"]	= "3rd-N-ᾰσ-open", ["ου"]	= "1st-M-alp", ["ως"]	= "3rd-N-ᾰσ", },			["ες"] = { ["ους"] = "3rd-N-εσ", },			["ευς"] = { ["εως"]	= "3rd-ευς", ["ως"]	= "3rd-ευς-con", },			["η"] = { ["ης"] = "1st-eta", },			["ης"] = { ["εος"]	= "3rd-εσ-open", ["ου"]	= "1st-M-eta", ["ους"]	= "3rd-εσ", },			["ι"] = "ῐ", ["ῐ"] = { ["εως"] = "3rd-N-weak-ι", ["ῐος"] = "3rd-N-pure-ι", ["ιος"] = "3rd-N-pure-ι", },			["ῐς"] = { ["εως"] = "3rd-weak-ι", ["ῐος"] = "3rd-pure-ι", ["ιος"] = "3rd-pure-ι", },			["ις"] = "ῐς", ["κλεης"] = { ["κλεους"] = "3rd-κλῆς-open", },			["κλης"] = { ["κλεους"] = "3rd-κλῆς", },			["ον"] = { ["ου"] = "2nd-N", },			["ος"] = { ["εος"]	= "3rd-N-ος-open", ["ου"]	= "2nd", ["ους"]	= "3rd-N-ος", },			["ουν"] = { ["ου"] = "2nd-N-con", },			["ους"] = { ["ου"] = "2nd-con", },			["υ"] = "ῠ", ["ῡς"] = { ["ῠος"] = "3rd-pure-υ-long", ["υος"] = "3rd-pure-υ-long", },			["ῠ"] = { ["εως"] = "3rd-N-weak-υ", ["ῠος"] = "3rd-N-pure-υ", ["υος"] = "3rd-N-pure-υ", },			["ῠς"] = { ["εως"] = "3rd-weak-υ", ["ῠος"] = "3rd-pure-υ", ["υος"] = "3rd-pure-υ", },			["ω"] = { ["ους"] = "3rd-οι", },			["ων"] = { ["ω"] = "2nd-N-att", },			["ως"] = { ["ω"] = "2nd-att", },		},		adj = { longest_masculine_ending = 3, ["ᾱς"] = { ["ᾱσᾰ"]		= "1&3-ᾰντ", ["αινα"]	= "1&3-ᾰν", ["αινᾰ"]	= "1&3-ᾰν", ["ασα"]		= "1&3-ᾰντ", },			["ας"] = "ᾱς", ["εις"] = { ["εισα"] = "1&3-εντ", ["εισᾰ"] = "1&3-εντ", ["εσσα"] = "1&3-εσσ", ["εσσᾰ"] = "1&3-εσσ", },			["ην"] = { ["εινα"] = "1&3-εν", ["εινᾰ"] = "1&3-εν", },			["ης"] = { ["ες"] = "3rd-εσ", },			["ος"] = { ["α"] = "1&2-alp", ["ᾱ"] = "1&2-alp", ["η"] = "1&2-eta", ["ον"] = "2nd", },			["ους"] = { ["α"]		= "1&2-alp-con", ["ᾱ"]		= "1&2-alp-con", ["η"]		= "1&2-eta-con", ["ουσα"]	= "1&3-ουντ", ["ουσᾰ"]	= "1&3-ουντ", },			["ῡς"] = { ["ῡσᾰ"] = "1&3-ῠντ", ["υσα"] = "1&3-ῠντ", },			["ῠς"] = { ["εια"] = "1&3-ups", ["ειᾰ"] = "1&3-ups", },			["υς"] = { ["εια"] = "1&3-ups", ["ειᾰ"] = "1&3-ups", ["ῡσᾰ"] = "1&3-ῠντ", ["υσα"] = "1&3-ῠντ", },			["ων"] = { ["ουσα"]	= "1&3-οντ", ["ουσᾰ"]	= "1&3-οντ", ["ωσα"]		= "1&3-ωντ", ["ωσᾰ"]		= "1&3-ωντ", },			["ως"] = { ["υια"]	= "1&3-οτ", ["υιᾰ"]	= "1&3-οτ", ["ων"]	= "2nd-att", },		},	},	-- This determines the forms that each positional parameter in	-- Template:grc-decl and Template:grc-adecl supply when the first -- parameter is "irreg". -- The inflectional categories are abbreviated in the order case, number -- or gender, case, number. "NS" stands for nominative singular, "NNS" -- for neuter nominative singular. -- For instance, for masculine or feminine irregular nouns, the second -- parameter is the nominative singular, the third the genitive singular, -- and so on. -- There's probably a way to generate these tables more simply. irregular = { noun = { masculine_feminine = { full = { false, 'NS', 'GS', 'DS', 'AS', 'VS', 'ND', 'GD', 'NP', 'GP', 'DP', 'AP', },				S = { false, 'NS', 'GS', 'DS', 'AS', 'VS' }, D = { false, 'ND', 'GD' }, P = { false, 'NP', 'GP', 'DP', 'AP' }, SP = { false, 'NS', 'GS', 'DS', 'AS', 'VS', 'NP', 'GP', 'DP', 'AP', },				DP = { false, 'ND', 'GD', 'NP', 'GP', 'DP', 'AP', },			},			neuter = { full = { false, 'NS', 'GS', 'DS', 'ND', 'GD', 'NP', 'GP', 'DP', redirects = { AS = 'NS', VS = 'NS', AP = 'NP' },				},				DP = { false, 'ND', 'GD', 'NP', 'GP', 'DP', redirects = { AP = 'NP', },				},				SP = { false, 'NS', 'GS', 'DS', 'NP', 'GP', 'DP', redirects = { AS = 'NS', VS = 'NS', AP = 'NP' },				},				S = { false, 'NS', 'GS', 'DS', redirects = { AS = 'NS', VS = 'NS', },				},				D = { false, 'DS', 'DG' }, P = { false, 'NP', 'GP', 'DP', redirects = { AP = 'NP' },				},			},		},		adjective = { full = { false, 'MNS', 'MGS', 'MDS', 'MAS', 'MVS', 'MND', 'MGD', 'MNP', 'MGP', 'MDP', 'MAP', 'FNS', 'FGS', 'FDS', 'FAS', 'FVS', 'FND', 'FGD', 'FNP', 'FGP', 'FDP', 'FAP', 'NNS', 'NNP', redirects = { NGS = 'MGS', NDS = 'MDS', NAS = 'NNS', NVS = 'NNS', NND = 'MND', NGD = 'MGD', NGP = 'MGP', NDP = 'MGP', NAP = 'NNP' },			},			SP = { false, 'MNS', 'MGS', 'MDS', 'MAS', 'MVS', 'MNP', 'MGP', 'MDP', 'MAP', 'FNS', 'FGS', 'FDS', 'FAS', 'FVS', 'FNP', 'FGP', 'FDP', 'FAP', 'NNS', 'NNP', redirects = { NGS = 'MGS', NDS = 'MDS', NAS = 'NNS', NVS = 'NNS', NGP = 'MGP', NDP = 'MGP', NAP = 'NNP' },			},			S = { false, 'MNS', 'MGS', 'MDS', 'MAS', 'MVS', 'FNS', 'FGS', 'FDS', 'FAS', 'FVS', 'NNS', redirects = { NGS = 'MGS', NDS = 'MDS', NAS = 'NNS', NVS = 'NNS', }, },			-- Unlikely ever to be used. D = { false, 'MND', 'MGD', 'FND', 'FGD', redirects = { NND = 'MGD', NGD = 'MGD' }, },			P = { false, 'MNP', 'MGP', 'MDP', 'MAP', 'FNP', 'FGP', 'FDP', 'FAP', 'NNP', redirects = { NGP = 'MGP', NDP = 'MGP', NAP = 'NNP' }, },		},	}, }