Module:User:Sarri.greek/grc-articles

-- 2024.03.06. wikt:en:User:Sarri.greek -- polytonic articles in inflection tables -- they are shown with baria (βαρεία), because a noun follows -- transliteration exact (symbol-to-symbol), no prosody -- TODO more... -- TODO fm, fn if needed

-- font colours local c_stem = '#000000'

local function stem_color (thema) thema = thema or '' -- otherwise, it does not work return '' .. thema .. ' ' end

--[[--< I S _ S E T >may by used optionally

Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.

]] --[=[ explanation: The is_set function may be added so that tests like this: if args['ακε'] ~=  and args['ακε'] ~= nil then args['ακε'] = args['ακε'] else args['ακε'] =  end can be reduced to: if not is_set (args['ακε']) then args['ακε'] = '' end ]=]--

local function is_set (var) return not (var == nil or var == ''); end

-- --                            START PARAMS                            -- -- local function articles (args) --[=[ -- ================================ Links function create_link (page, text) if args['grc'] == '1' then lang_iso = 'grc' elseif args['el'] == '1' then lang_iso = 'el' end if text then return  .. text ..  .. ' '		else return  .. page ..  .. ' '		end

end

--]=] function create_link (page, text)

if text then return  .. text ..  else return  .. page ..  end

end

--[=[ this needs theses 'args' things function create_link (page, text) -- same articles for: if args['grc'] == '1' or args['grc-koi'] == '1' or args['grc-koi'] == '2' or args['gkm'] == '1' or args['gkm'] == '2' or args['grk-gkm'] == '1' or args['grk-gkm'] == '2' or args['el-kth'] == '1' or args['kath'] == '1' then if text then return  .. text ..  else return  .. page ..  end elseif args['el'] == '1' then if text then return  .. text ..  else return  .. page ..  end end end ]=]--

--[=[ ? how xxx = frame:preprocess(xxx) ? ..	frame:expandTemplate{ title = 'l', args = {'?' } } function create_link (page, text)

if text then return '' .. text .. ''		else return '' .. page .. ''		end

end ]=]--

if args['dat'] == '-' then args['aDS'] =  args['aDP'] = end

-- vocatives are empty. (The interjection ὦ! or the ε! could be placed outside, as it is not an article) if args['aVS'] ~=  and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] =  end if args['aVP'] ~=  and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVP'] =  end -- suppose there was a dual vocative if args['aVD'] ~=  and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] =  end -- of a second row args['aVS2'] = 	args['aVP2'] = 	args['aVD2'] = '' -- of a second column args['a2VS'] = 	args['a2VP'] = 	args['a2VD'] = ''

-- ABBREVIATIONS if args['gkm'] == '1' or args['gkm'] == '2'or args['grk-gkm'] == '1' or args['grk-gkm'] == '2' or args['kth'] == '1' or args['kath'] == '1' or args['el-kth'] == '1' then -- masc. o = create_link('ὁ', stem_color('ὁ')) .. ' ' .. ' h o /o/' .. ' ' tou = create_link('τοῦ', stem_color('τοῦ')) .. ' ' .. 'toû /tu/' .. ' ' tooi = create_link('τῷ', stem_color('τῷ')) .. ' ' .. 'tô i /to/' .. ' ' ton = create_link('τόν', stem_color('τὸν')) .. ' ' .. 'tòn' .. ' ' oi = create_link('οἱ', stem_color('οἱ')) .. ' ' .. ' h oi /i/' .. ' ' toon = create_link('τῶν', stem_color('τῶν')) .. ' ' .. 'tôn' .. ' ' tois = create_link('τοῖς', stem_color('τοῖς')) .. ' ' .. 'toîs /tis/' .. ' ' tous = create_link('τούς', stem_color('τοὺς')) .. ' ' .. 'toùs /tus/' .. ' ' -- no dual too = '' toin = '' -- fem. e = create_link('ἡ', stem_color('ἡ')) .. ' ' .. ' h ē /i/' .. ' ' tes = create_link('τῆς', stem_color('τῆς')) .. ' ' .. 'tēs /tis/' .. ' ' tei = create_link('τῇ', stem_color('τῇ')) .. ' ' .. 'tê i /ti/' .. ' ' ten = create_link('τήν', stem_color('τὴν')) .. ' ' .. 'tḕn /tin/' .. ' ' ai = create_link('αἱ', stem_color('αἱ')) .. ' ' .. ' h ai /e/' .. ' ' tais = create_link('ταῖς', stem_color('ταῖς')) .. ' ' .. 'taîs /tes/' .. ' ' tas = create_link('τάς', stem_color('τὰς')) .. ' ' .. 'tàs' .. ' ' -- neu. to = create_link('τό', stem_color('τὸ')) .. ' ' .. 'tò' .. ' ' ta = create_link('τά', stem_color('τὰ')) .. ' ' .. 'tà' .. ' ' -- masc.fem. o_e = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ')) .. ' ' .. ' h o /o/ - h ē /i/' .. ' ' o_br_e = create_link('ὁ', stem_color('ὁ')) .. ' ' .. create_link('ἡ', stem_color('ἡ')) .. ' ' .. ' h o /o/ - h ē /i/' .. ' ' tou_tes = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς')) .. ' ' .. 'toû /tu/ - tēs /tis/' .. ' ' tou_br_tes = create_link('τοῦ', stem_color('τοῦ')) .. ' ' .. create_link('τῆς', stem_color('τῆς')) .. ' ' .. 'toû /tu/ - tēs /tis/' .. ' ' tooi_tei = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ')) .. ' ' .. 'tô i /to/ - tê i /ti/' .. ' ' --br? ton_ten = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν')) .. ' ' .. 'tòn - tḕn /tin/' .. ' ' --br? oi_ai = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ')) .. ' ' .. ' h oi /i/ - h ai /e/' .. ' ' --br? tois_tais = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς')) .. ' ' .. 'taîs /tes/' .. ' ' --br? tous_tas = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς')) .. ' ' .. 'toùs /tus/ -  tàs' .. ' ' --br?

else -- masc. o = create_link('ὁ', stem_color('ὁ')) .. ' ' .. 'ho' .. ' ' tou = create_link('τοῦ', stem_color('τοῦ')) .. ' ' .. 'toû' .. ' ' tooi = create_link('τῷ', stem_color('τῷ')) .. ' ' .. 'tôi' .. ' ' ton = create_link('τόν', stem_color('τὸν')) .. ' ' .. 'tòn' .. ' ' oi = create_link('οἱ', stem_color('οἱ')) .. ' ' .. 'hoi' .. ' ' toon = create_link('τῶν', stem_color('τῶν')) .. ' ' .. 'tôn' .. ' ' tois = create_link('τοῖς', stem_color('τοῖς')) .. ' ' .. 'toîs' .. ' ' tous = create_link('τούς', stem_color('τοὺς')) .. ' ' .. 'toùs' .. ' ' -- duals inline, horizontal translit too = create_link('τώ', stem_color('τὼ')) .. ' ' .. '(tṑ)' .. ' ' toin = create_link('τοῖν', stem_color('τοῖν')) .. ' ' .. '(toîn)' .. ' ' -- fem. e = create_link('ἡ', stem_color('ἡ')) .. ' ' .. 'hē' .. ' ' tes = create_link('τῆς', stem_color('τῆς')) .. ' ' .. 'tês' .. ' ' tei = create_link('τῇ', stem_color('τῇ')) .. ' ' .. 'têi' .. ' ' ten = create_link('τήν', stem_color('τὴν')) .. ' ' .. 'tḕn' .. ' ' ai = create_link('αἱ', stem_color('αἱ')) .. ' ' .. 'hai' .. ' ' tais = create_link('ταῖς', stem_color('ταῖς')) .. ' ' .. 'taîs' .. ' ' tas = create_link('τάς', stem_color('τὰς')) .. ' ' .. 'tàs' .. ' ' -- neu. to = create_link('τό', stem_color('τὸ')) .. ' ' .. 'tò' .. ' ' ta = create_link('τά', stem_color('τὰ')) .. ' ' .. 'tà' .. ' ' -- masc.fem. o_e = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ')) .. ' ' .. 'ho / hē' .. ' ' o_br_e = create_link('ὁ', stem_color('ὁ')) .. ' ' .. create_link('ἡ', stem_color('ἡ')) .. ' ' .. 'ho / hē' .. ' ' tou_tes = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς')) .. ' ' .. 'toû / tês' .. ' ' tou_br_tes = create_link('τοῦ', stem_color('τοῦ')) .. ' ' .. create_link('τῆς', stem_color('τῆς')) .. ' ' .. 'toû / tês' .. ' ' tooi_tei = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ')) .. ' ' .. 'tôi / têi' .. ' ' --br? ton_ten = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν')) .. ' ' .. 'tòn / tḕn' .. ' ' --br? oi_ai = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ')) .. ' ' .. 'hoi / hai' .. ' ' --br? tois_tais = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς')) .. ' ' .. 'toîs / taîs' .. ' ' --br? tous_tas = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς')) .. ' ' .. 'toùs / tàs' .. ' ' --br? end -- close if gkm

-- =========== for INDIVIDUAL cells one by one for nouns or adjectives with -m -f -n / c= common gender of living beings/ mf fm, fn are for double genders of things -- NOMINATIVE SINGULAR if args['aNS'] == "m" then args['aNS'] = o elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end if args['aNS'] == "f" then args['aNS'] = e elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end if args['aNS'] == "n" then args['aNS'] = to elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end if args['aNS'] == "c" then args['aNS'] = o_e elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end if args['aNS'] == "mf" then args['aNS'] = o_br_e elseif args['aNS'] == '-' then args['aNS'] = '' else args['aNS'] = args['aNS'] end -- TODO fm, fn if needed -- at a second row, break line if args['aNS2'] == "m" then args['aNS2'] = o elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end if args['aNS2'] == "f" then args['aN2S'] = e elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end if args['aNS2'] == "n" then args['aNS2'] = to elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end if args['aNS2'] == "c" then args['aNS2'] = o_e elseif args['aNS2'] == '-' then args['aNS2'] = '' else args['aNS2'] = args['aNS2'] end -- mf already broken link -- at a second COLUMN if args['a2NS'] == "m" then args['a2NS'] = o elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end if args['a2NS'] == "f" then args['a2NS'] = e elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end if args['a2NS'] == "n" then args['a2NS'] = to elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end if args['a2NS'] == "c" then args['a2NS'] = o_e elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end if args['a2NS'] == "mf" then args['a2NS'] = o_br_e elseif args['a2NS'] == '-' then args['a2NS'] = '' else args['a2NS'] = args['a2NS'] end -- adjectives or other trigenous if args['aNS-m'] ~= "-" and args['aNS-m'] ~= "c" then args['aNS-m'] = o	elseif args['aNS-m'] == "c" then args['aNS-m'] = o_e elseif args['aNS-m'] == '-' then args['aNS-m'] = '' else args['aNS-m'] = args['aNS-m'] end if args['aNS-f'] ~= "-" then args['aNS-f'] = e elseif args['aNS-f'] == '-' then args['aNS-f'] = '' else args['aNS-f'] = args['aNS-f'] end if args['aNS-n'] ~= "-" then args['aNS-n'] = to elseif args['aNS-n'] == '-' then args['aNS-n'] = '' else args['aNS-n'] = args['aNS-n'] end

-- GENITIVE SINGULAR if args['aGS'] == "m" then args['aGS'] = tou elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end if args['aGS'] == "f" then args['aGS'] = tes elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end if args['aGS'] == "n" then args['aGS'] = tou elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end if args['aGS'] == "c" then args['aGS'] = tou_tes elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end if args['aGS'] == "mf" then args['aGS'] = tou_br_tes elseif args['aGS'] == '-' then args['aGS'] = '' else args['aGS'] = args['aGS'] end -- at a second row, break line if args['aGS2'] == "m" then args['aGS2'] = tou elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end if args['aGS2'] == "f" then args['aGS2'] = tes elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end if args['aGS2'] == "n" then args['aGS2'] = tu elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end if args['aGS2'] == "c" then args['aGS2'] = tou_tes elseif args['aGS2'] == '-' then args['aGS2'] = '' else args['aGS2'] = args['aGS2'] end -- at a second COLUMN if args['a2GS'] == "m" then args['a2GS'] = tou elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end if args['a2GS'] == "f" then args['a2GS'] = tes elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end if args['a2GS'] == "n" then args['a2GS'] = tou elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end if args['a2GS'] == "c" then args['a2GS'] = tou_tes elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end if args['a2GS'] == "mf" then args['a2GS'] = tou_br_tes elseif args['a2GS'] == '-' then args['a2GS'] = '' else args['a2GS'] = args['a2GS'] end -- adjectives if args['aGS-m'] ~= "-" and args['aGS-m'] ~= "c" then args['aGS-m'] = tou elseif args['aGS-m'] == "c" then args['aGS-m'] = tou_tes elseif args['aGS-m'] == '-' then args['aGS-m'] = '' else args['aGS-m'] = args['aGS-m'] end if args['aGS-f'] ~= "-" then args['aGS-f'] = tes elseif args['aGS-f'] == '-' then args['aGS-f'] = '' else args['aGS-f'] = args['aGS-f'] end if args['aGS-n'] ~= "-" then args['aGS-n'] = tou elseif args['aGS-n'] == '-' then args['aGS-n'] = '' else args['aGS-n'] = args['aGS-n'] end

-- DATIVE SINGULAR if args['aDS'] == "m" then args['aDS'] = tooi elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end if args['aDS'] == "f" then args['aDS'] = tei elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end if args['aDS'] == "n" then args['aDS'] = tooi elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end if args['aDS'] == "c" then args['aDS'] = tooi_tei elseif args['aDS'] == '-' then args['aDS'] = '' else args['aDS'] = args['aDS'] end -- TODO fm, fn if needed -- at a second row, break line if args['aDS2'] == "m" then args['aDS2'] = tooi elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end if args['aDS2'] == "f" then args['aDS2'] = tei elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end if args['aDS2'] == "n" then args['aDS2'] = tooi elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end if args['aDS2'] == "c" then args['aDS2'] = tooi_tei elseif args['aDS2'] == '-' then args['aDS2'] = '' else args['aDS2'] = args['aDS2'] end -- mf already broken link -- at a second COLUMN if args['a2DS'] == "m" then args['a2DS'] = tooi elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end if args['a2DS'] == "f" then args['a2DS'] = tei elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end if args['a2DS'] == "n" then args['a2DS'] = tooi elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end if args['a2DS'] == "c" then args['a2DS'] = tooi_tei elseif args['a2DS'] == '-' then args['a2DS'] = '' else args['a2DS'] = args['a2DS'] end -- adjectives todo

-- ACCUSATIVE SINGULAR if args['aAS'] == "m" then args['aAS'] = ton elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end if args['aAS'] == "f" then args['aAS'] = ten elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end if args['aAS'] == "n" then args['aAS'] = to elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end if args['aAS'] == "c" then args['aAS'] = ton_ten elseif args['aAS'] == '-' then args['aAS'] = '' else args['aAS'] = args['aAS'] end -- at a second row, break line -- at a second COLUMN -- adjectives

-- NOMINATIVE PLURAL if args['aNP'] == "m" then args['aNP'] = oi elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end if args['aNP'] == "f" then args['aNP'] = ai elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end if args['aNP'] == "n" then args['aNP'] = ta elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end if args['aNP'] == "c" then args['aNP'] = oi_ai elseif args['aNP'] == '-' then args['aNP'] = '' else args['aNP'] = args['aNP'] end -- at a second row, break line -- at a second COLUMN -- adjectives

-- GENITIVE PLURAL if args['aGP'] == "m" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end if args['aGP'] == "f" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end if args['aGP'] == "n" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end if args['aGP'] == "c" then args['aGP'] = toon elseif args['aGP'] == '-' then args['aGP'] = '' else args['aGP'] = args['aGP'] end -- at a second row, break line -- at a second COLUMN -- adjectives

-- DATIVE PLURAL if args['aDP'] == "m" then args['aDP'] = tois elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end if args['aDP'] == "f" then args['aDP'] = tais elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end if args['aDP'] == "n" then args['aDP'] = tois elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end if args['aDP'] == "c" then args['aDP'] = tois_tais elseif args['aDP'] == '-' then args['aDP'] = '' else args['aDP'] = args['aDP'] end -- at a second row, break line -- at a second COLUMN -- adjectives

-- ACCUSATIVE PLURAL if args['aAP'] == "m" then args['aAP'] = tous elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end if args['aAP'] == "f" then args['aAP'] = tas elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end if args['aAP'] == "m" then args['aAP'] = ta elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end if args['aAP'] == "c" then args['aAP'] = tous_tas elseif args['aAP'] == '-' then args['aAP'] = '' else args['aAP'] = args['aAP'] end -- at a second row, break line -- at a second COLUMN -- adjectives

-- NOM-ACC-VOC DUAL if args['aND'] == "m" or args['aND'] == "f" or args['aND'] == "n" or args['aND'] == "c" then args['aND'] = too elseif args['aND'] == '-' then args['aND'] = '' else args['aND'] = args['aND'] end -- do not break line -- NO second COLUMN -- adjectives

-- GEN-DAT DUAL if args['aGD'] == "m" or args['aGD'] == "f" or args['aGD'] == "n" or args['aGD'] == "c" then args['aGD'] = toin elseif args['aGD'] == '-' then args['aGD'] = '' else args['aGD'] = args['aGD'] end

-- no articles	================== FOR THE WHOLE TABLE ??TODO by column for diff genders. if args['articles'] == '0' or args['articles'] == '-' then args['aNS'] = '   '	args['aGS'] = 	args['aDS'] = 	args['aAS'] = '' args['aNP'] = '   '	args['aGP'] = 	args['aDP'] = 	args['aAP'] = '' args['aND'] = '   '	args['aND'] = '' else

-- MASCULINE ARTICLES if args['m'] == '1' then if args['aNS'] == '-' then args['aNS'] = '' elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS'] else args['aNS'] = o			end -- masc. gen. sg. +dor/lac +epic if args['aGS'] == '-' then args['aGS'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGS'] ~= '-' then args['aGS'] = create_link('τῶ', stem_color('τῶ')) .. ' ' .. 'tô' .. ' '			elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGS'] ~= '-' then args['aGS'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τοῖο', stem_color('τοῖο')) .. ' ' .. 'toû / toîo' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS'] else args['aGS'] = tou end if args['aDS'] == '-' then args['aDS'] = '' elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS'] else args['aDS'] = tooi end if args['aAS'] == '-' then args['aAS'] = '' elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS'] else args['aAS'] = ton end if -- vocative is empty args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural masculine -- masc. nom. pl. +lac/dor +epic if args['aNP'] == '-' then args['aNP'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aNP'] ~= '-' then args['aNP'] = create_link('τοί', stem_color('τοὶ')) .. ' ' .. 'toì' .. ' '			elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aNP'] ~= '-' then args['aNP'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('τοί', stem_color('τοὶ')) .. ' ' .. 'hoi / toì' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = oi		end if args['aGP'] == '-' then args['aGP'] = '' elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end -- masc.dat.pl +epic if args['aDP'] == '-' then args['aDP'] = '' elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aDP'] ~= '-' then args['aDP'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('τοῖσι', stem_color('τοῖσι')) .. '(' .. create_link('τοῖσιν', stem_color('ν')) .. ')' .. ' ' .. 'toîs / toîsi(n)' .. ' '			elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = tois end -- masc.acc.pl +doc/lac if args['aAP'] == '-' then args['aAP'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['αοπ'] ~= '-' then args['aAP'] = create_link('τώς', stem_color('τὼς')) .. ' ' .. 'tṑs' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = tous end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVP'] = '' end -- dual	masculine if args['aND'] == '-' then args['aND'] = '' elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end -- masc.gen.du +epic if args['aGD'] == '-' then args['aGD'] = '' elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-' then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν')) .. ' ' .. 'toîin' .. ' '			elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end -- (masc.dat.du +epic) -- DO NOT NEED THESE if args['aDD'] == '-' then args['aGD'] = '' elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-' then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν')) .. ' ' .. 'toîin' .. ' '			elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end if args['aAD'] == '-' then args['aAD'] = '' elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

-- FEMININE ARTICLES elseif args['f'] == '1' then -- fem.nom.sg +dor/lac if args['aNS'] == '-' then args['aNS'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aNS'] ~= '-' then args['aNS'] = create_link('ἁ', stem_color('ἁ')) .. ' ' .. 'ha' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS'] else args['aNS'] = e		end -- fem.gen.sg +dor/lac if args['aGS'] == '-' then args['aGS'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGS'] ~= '-' then args['aGS'] = create_link('τᾶς', stem_color('τᾶς')) .. ' ' .. 'tâs' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS'] else args['aGS'] = tes end -- fem.dat.sg +dor/lac if args['aDS'] == '-' then args['aDS'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aDS'] ~= '-' then args['aDS'] = create_link('τᾷ', stem_color('τᾷ')) .. ' ' .. 'tâi' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS'] else args['aDS'] = tei end -- fem.acc.sg +dor/lac if args['aAS'] == '-' then args['aAS'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aAS'] ~= '-' then args['aAS'] = create_link('τάν', stem_color('τὰν')) .. ' ' .. 'tàn' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS'] else args['aAS'] = ten end if -- vocative is empty args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural feminine -- fem.nom.pl +dor/lac if args['aNP'] == '-' then args['aNP'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aNP'] ~= '-' then args['aNP'] = create_link('ταί', stem_color('ταὶ')) .. ' ' .. 'taì' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = ai		end -- fem.gen.pl +dor/lac +epic if args['aGP'] == '-' then args['aGP'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGP'] ~= '-' then args['aGP'] = create_link('τᾶν', stem_color('τᾶν')) .. ' ' .. 'tân' .. ' '			elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGP'] ~= '-' then args['aGP'] = create_link('τῶν', stem_color('τῶν')) .. '/' .. create_link('τάων', stem_color('τάων')) .. ' ' .. 'tôn / táōn' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end if args['aDP'] == '-' then args['aDP'] = '' elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = tais end if args['aAP'] == '-' then args['aAP'] = '' elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = tas end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVS'] = '' end -- dual	feminine -- fem.nom.du +dor/lac if args['aND'] == '-' then args['aND'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aND'] ~= '-' then args['aND'] = create_link('τά', stem_color('τὰ')) .. ' ' .. 'tà' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end -- fem.gen.du +dor/lac +epic if args['aGD'] == '-' then args['aGD'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGD'] ~= '-' then args['aGD'] = create_link('ταῖν', stem_color('ταῖν')) .. ' ' .. 'taîn' .. ' '			elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-' then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν')) .. ' ' .. 'toîin' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end -- (fem.dat.du +dor/lac +epic) if args['aDD'] == '-' then args['aDD'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aDD'] ~= '-' then args['aDD'] = create_link('ταῖν', stem_color('ταῖν')) .. ' ' .. 'taîn' .. ' '			elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aDD'] ~= '-' then args['aDD'] = create_link('τοῖιν', stem_color('τοῖιν')) .. ' ' .. 'toîin' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD'] else args['aDDδ'] = toin end -- (fem.acc.du +dor/lac) = like nom. if args['aAD'] == '-' then args['aAD'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aAD'] ~= '-' then args['aAD'] = create_link('τά', stem_color('τὰ')) .. ' ' .. 'tà' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

-- NEUTER ARTICLES elseif args['ουδ'] == '1' then if args['aNS'] == '-' then args['aNS'] = '' elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS'] else args['aNS'] = to		end if args['aGS'] == '-' then args['aGS'] = '' elseif (args['dor'] == '1' or args['grc-dor'] == '1' 			or args['lak'] == '1' or args['grc-lak'] == '1') and args['aGS'] ~= '-' then args['aGS'] = create_link('τῶ', stem_color('τῶ')) .. ' ' .. 'tô' .. ' '			elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGS'] ~= '-' then args['aGS'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τοῖο', stem_color('τοῖο')) .. ' ' .. 'toû / toîo' .. ' '			elseif args['dor'] ~= '1' and args['grc-dor'] ~= '1' and args['lak'] ~= '1' and args['grc-lak'] ~= '1' and args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS'] else args['aGS'] = tou end if args['aDS'] == '-' then args['aDS'] = '' elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS'] else args['aDS'] = tooi end if args['aAS'] == '-' then args['aAS'] = '' elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS'] else args['aAS'] = to		end if -- vocative is empty args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural neuter if args['aNP'] == '-' then args['aNP'] = '' elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = ta		end if args['aGP'] == '-' then args['aGP'] = '' elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end if args['aDP'] == '-' then args['aDP'] = '' elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = tois end if args['aAP'] == '-' then args['aAP'] = '' elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = ta		end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVP'] = '' end -- dual	neuter if args['aND'] == '-' then args['aND'] = '' elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end if args['aGD'] == '-' then args['aGD'] = '' elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aGD'] ~= '-' then args['aGD'] = create_link('τοῖιν', stem_color('τοῖιν')) .. ' ' .. 'toîin' .. ' '			elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end if args['aDD'] == '-' then args['aDD'] = '' elseif (args['epic'] == '1' or args['grc-epi'] == '1') and args['aDD'] ~= '-' then args['aDD'] = create_link('τοῖιν', stem_color('τοῖιν')) .. ' ' .. 'toîin' .. ' '			elseif args['epic'] ~= '1' and args['grc-epi'] ~= '1' and args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD'] else args['aDDδ'] = toin end if args['aAD'] == '-' then args['aAD'] = '' elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

-- COMMON gender of living beings MASCULINE+FEMININE ARTICLES elseif args['c'] == '1' then if args['aNS'] == '-' then args['aNS'] = '' elseif args['aNS'] ~= '-' and args['aNS'] ~= '' and args['aNS'] ~= nil then args['aNS'] = args['aNS'] else args['aNS'] = o_e end if args['aGS'] == '-' then args['aGS'] = '' elseif args['aGS'] ~= '-' and args['aGS'] ~= '' and args['aGS'] ~= nil then args['aGS'] = args['aGS'] else args['aGS'] = tou_tes end if args['aDS'] == '-' then args['aDS'] = '' elseif args['aDS'] ~= '-' and args['aDS'] ~= '' and args['aDS'] ~= nil then args['aDS'] = args['aDS'] else args['aDS'] = tooi_tei end if args['aAS'] == '-' then args['aAS'] = '' elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS'] else args['aAS'] = ton_ten end if -- vocative is empty args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural common masc+fem if args['aNP'] == '-' then args['aNP'] = '' elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = oi_ai end if args['aGP'] == '-' then args['aGP'] = '' elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end if args['aDP'] == '-' then args['aDP'] = '' elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = tois_tais end if args['aAP'] == '-' then args['aAP'] = '' elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = tous_tas end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVS'] = '' end -- dual	common if args['aND'] == '-' then args['aND'] = '' elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end if args['aGD'] == '-' then args['aGD'] = '' elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end if args['aDD'] == '-' then args['aDD'] = '' elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD'] else args['aDD'] = toin end if args['aAD'] == '-' then args['aAD'] = '' elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

-- ΜULTIPLE GENDERS 1) MASCULINE OR FEMININE ARTICLES	elseif args['mf'] == '1' then		if args['aNS'] == '-' then args['aNS'] = 			elseif args['aNS'] ~= '-' and args['aNS'] ~=  and args['aNS'] ~= nil then args['aNS'] = args['aNS']			else args['aNS'] = o_br_e		end		if args['aGS'] == '-' then args['aGS'] = 			elseif args['aGS'] ~= '-' and args['aGS'] ~=  and args['aGS'] ~= nil then args['aGS'] = args['aGS']			else args['aGS'] = tou_br_tes		end		if args['aDS'] == '-' then args['aDS'] = 			elseif args['aDS'] ~= '-' and args['aDS'] ~=  and args['aDS'] ~= nil then args['aDS'] = args['aDS']			else args['aDS'] = tooi_br_tei		end		if args['aAS'] == '-' then args['aAS'] = 			elseif args['aAS'] ~= '-' and args['aAS'] ~=  and args['aAS'] ~= nil then args['aAS'] = args['aAS']			else args['aAS'] = ton_br_ten		end		if -- vocative is empty			args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural multiple masc and fem if args['aNP'] == '-' then args['aNP'] = '' elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = oi_br_ai end if args['aGP'] == '-' then args['aGP'] = '' elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end if args['aDP'] == '-' then args['aDP'] = '' elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = tois_br_tais end if args['aAP'] == '-' then args['aAP'] = '' elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = tous_br_tas end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVS'] = '' end -- dual	common if args['aND'] == '-' then args['aND'] = '' elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end if args['aGD'] == '-' then args['aGD'] = '' elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end if args['aDD'] == '-' then args['aDD'] = '' elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD'] else args['aDD'] = toin end if args['aAD'] == '-' then args['aAD'] = '' elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

-- ΜULTIPLE GENDERS 2) FEMININE OR MASCULINE ARTICLES	elseif args['fm'] == '1' then		if args['aNS'] == '-' then args['aNS'] = 			elseif args['aNS'] ~= '-' and args['aNS'] ~=  and args['aNS'] ~= nil then args['aNS'] = args['aNS']			else args['aNS'] = create_link('ἡ', stem_color('ἡ')) .. ' ' .. create_link('ὁ', stem_color('ὁ'))				.. ' ' ..  'hē / ho' .. ' '		end		if args['aGS'] == '-' then args['aGS'] = 			elseif args['aGS'] ~= '-' and args['aGS'] ~=  and args['aGS'] ~= nil then args['aGS'] = args['aGS']			else args['aGS'] = create_link('τῆς', stem_color('τῆς')) .. ' ' .. create_link('τοῦ', stem_color('τοῦ'))				.. ' ' ..  'tês / toû' .. ' '		end		if args['aDS'] == '-' then args['aDS'] = 			elseif args['aDS'] ~= '-' and args['aDS'] ~=  and args['aDS'] ~= nil then args['aDS'] = args['aDS']			else args['aDS'] = create_link('τῇ', stem_color('τῇ')) .. ' ' .. create_link('τῷ', stem_color('τῷ')) .. ' ' .. 'têi / tôi' .. ' '		end if args['aAS'] == '-' then args['aAS'] = '' elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS'] else args['aAS'] = create_link('τήν', stem_color('τὴν')) .. ' ' .. create_link('τόν', stem_color('τὸν')) .. ' ' .. 'tḕn / tòn' .. ' '		end if -- vocative is empty args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural multiple fem and masc if args['aNP'] == '-' then args['aNP'] = '' elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = create_link('αἱ', stem_color('αἱ')) .. ' ' .. create_link('οἱ', stem_color('οἱ')) .. ' ' .. 'hai / hoi' .. ' '		end if args['aGP'] == '-' then args['aGP'] = '' elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end if args['aDP'] == '-' then args['aDP'] = '' elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = create_link('ταῖς', stem_color('ταῖς')) .. ' ' .. create_link('τοῖς', stem_color('τοῖς')) .. ' ' .. 'taîs / toîs' .. ' '		end if args['aAP'] == '-' then args['aAP'] = '' elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = create_link('τάς', stem_color('τὰς')) .. ' ' .. create_link('τούς', stem_color('τοὺς')) .. ' ' .. 'tàs / toùs' .. ' '		end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVS'] = '' end -- dual	common if args['aND'] == '-' then args['aND'] = '' elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end if args['aGD'] == '-' then args['aGD'] = '' elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end if args['aDD'] == '-' then args['aDD'] = '' elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD'] else args['aDD'] = toin end if args['aAD'] == '-' then args['aAD'] = '' elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

-- ΜULTIPLE GENDERS 3) RARE FEMININE or NEUTER ARTICLES (plural is not attested)  fn=1 feminine or neuter, for diminutive hypocoristic names for women like Γλυκέριον	elseif args['fn'] == '1' then		if args['aNS'] == '-' then args['aNS'] = 			elseif args['aNS'] ~= '-' and args['aNS'] ~=  and args['aNS'] ~= nil then args['aNS'] = args['aNS']			else args['aNS'] = create_link('ἡ', stem_color('ἡ')) .. '/' .. create_link('τό', stem_color('τὸ'))				.. ' ' ..  'hē / tò' .. ' '		end		if args['aGS'] == '-' then args['aGS'] = 			elseif args['aGS'] ~= '-' and args['aGS'] ~=  and args['aGS'] ~= nil then args['aGS'] = args['aGS']			else args['aGS'] = create_link('τῆς', stem_color('τῆς')) .. '/' .. create_link('τοῦ', stem_color('τοῦ'))				.. ' ' ..  'tês / toû' .. ' '		end		if args['aDS'] == '-' then args['aDS'] = 			elseif args['aDS'] ~= '-' and args['aDS'] ~=  and args['aDS'] ~= nil then args['aDS'] = args['aDS'] else args['aDS'] = create_link('τῇ', stem_color('τῇ')) .. '/' .. create_link('τῷ', stem_color('τῷ')) .. ' ' .. 'têi / tôi' .. ' '		end if args['aAS'] == '-' then args['aAS'] = '' elseif args['aAS'] ~= '-' and args['aAS'] ~= '' and args['aAS'] ~= nil then args['aAS'] = args['aAS'] else args['aAS'] = create_link('τήν', stem_color('τὴν')) .. '/' .. create_link('τό', stem_color('τὸ')) .. ' ' .. 'tḕn / tò' .. ' '		end if -- vocative is empty args['aVS'] ~= '' and args['aVS'] ~= nil then args['aVS'] = args['aVS'] else args['aVS'] = '' end -- plural feminine+neuter if args['aNP'] == '-' then args['aNP'] = '' elseif args['aNP'] ~= '-' and args['aNP'] ~= '' and args['aNP'] ~= nil then args['aNP'] = args['aNP'] else args['aNP'] = create_link('αἱ', stem_color('αἱ')) .. '/' .. create_link('τά', stem_color('τὰ')) .. ' ' .. 'hai / tà' .. ' '		end if args['aGP'] == '-' then args['aGP'] = '' elseif args['aGP'] ~= '-' and args['aGP'] ~= '' and args['aGP'] ~= nil then args['aGP'] = args['aGP'] else args['aGP'] = toon end if args['aDP'] == '-' then args['aDP'] = '' elseif args['aDP'] ~= '-' and args['aDP'] ~= '' and args['aDP'] ~= nil then args['aDP'] = args['aDP'] else args['aDP'] = create_link('ταῖς', stem_color('ταῖς')) .. '/' .. create_link('τοῖς', stem_color('τοῖς')) .. ' ' .. 'taîs / toîs' .. ' '		end if args['aAP'] == '-' then args['aAP'] = '' elseif args['aAP'] ~= '-' and args['aAP'] ~= '' and args['aAP'] ~= nil then args['aAP'] = args['aAP'] else args['aAP'] = create_link('τάς', stem_color('τὰς')) .. '/' .. create_link('τά', stem_color('τὰ')) .. ' ' .. 'tàs / tà' .. ' '		end if -- vocative is empty args['aVP'] ~= '' and args['aVP'] ~= nil then args['aVP'] = args['aVP'] else args['aVS'] = '' end -- dual	feminine+neuter = same if args['aND'] == '-' then args['aND'] = '' elseif args['aND'] ~= '-' and args['aND'] ~= '' and args['aND'] ~= nil then args['aND'] = args['aND'] else args['aND'] = too end if args['aGD'] == '-' then args['aGD'] = '' elseif args['aGD'] ~= '-' and args['aGD'] ~= '' and args['aGD'] ~= nil then args['aGD'] = args['aGD'] else args['aGD'] = toin end if args['aDD'] == '-' then args['aDD'] = '' elseif args['aDD'] ~= '-' and args['aDD'] ~= '' and args['aDD'] ~= nil then args['aDD'] = args['aDD'] else args['aDD'] = toin end if args['aAD'] == '-' then args['aAD'] = '' elseif args['aAD'] ~= '-' and args['aAD'] ~= '' and args['aAD'] ~= nil then args['aAD'] = args['aAD'] else args['aAD'] = too end if -- vocative is empty args['aVD'] ~= '' and args['aVD'] ~= nil then args['aVD'] = args['aVD'] else args['aVD'] = '' end

end -- close if m=1, if f=1.... end -- close if articles = 0

-- --- end -- close function articles

return {articles = articles}