This module returns the lists of parameters used by {{grc-decl}}
and {{grc-adecl}}
.
local m_table = require("Module:table")
local deep_copy = m_table.deepCopy
local genders = { 'M', 'F', 'N' }
local cases = { 'N', 'G', 'D', 'A', 'V' }
local numbers = { 'S', 'D', 'P' }
local noun_params = {
= {},
= {},
dial = { default = 'att' },
form = { default = 'full' },
voc = {}, -- if "α", means that first-declension masculine has vocative in -ᾰ
notes = {},
note = { alias_of = "notes" },
= {},
= {},
titleapp = {},
= {},
= {},
}
for _, c in ipairs(cases) do
for _, n in ipairs(numbers) do
noun_params = {}
noun_params = {}
noun_params = {}
end
end
local irreg_noun_params, irreg_N_noun_params = deep_copy(noun_params), deep_copy(noun_params)
for i = 3, 9 do
irreg_N_noun_params = {}
end
for i = 3, 12 do
irreg_noun_params = {}
end
local adj_params = {
= {},
= {},
dial = { default = 'att' },
form = { default = '' },
notes = {},
= {},
= {},
titleapp = {},
= {},
= {},
title = {},
adv = {},
= {},
= {},
deg = {},
comp = {},
= {},
= {},
super = {},
= {},
= {},
hp = { type = "boolean" },
}
for _, g in ipairs(genders) do
for _, c in ipairs(cases) do
for _, n in ipairs(numbers) do
adj_params = {}
adj_params = {}
adj_params = {}
end
end
end
local irreg_adj_params = deep_copy(adj_params)
for i = 3, 25 do
irreg_adj_params = {}
end
return {
noun_params = noun_params,
irreg_noun_params = irreg_noun_params,
irreg_N_noun_params = irreg_N_noun_params,
adj_params = adj_params,
irreg_adj_params = irreg_adj_params,
}