Module:grc-articles >> Module:grc-articles/τεκμηρίωση
Ancient Greek articles as added in declension modules. e.g. for nouns at Module:grc-nouns-decl. Examples at χώρα, θάλασσα.
Call if from a declension module by placing EXACTLY where it is needed:

require ('Module:grc-articles').articles (args)
DO NOT change anything else.

Similar: also see Module:el-articles for Modern Greek (monotonic spelling)

Many thanks to Trappist the monk, from wikipedia for his help.


-- 2021.04.26.
-- Ancient Greek articles as added in declension tables
	-- e.g. for nouns at [[Module:grc-nouns-decl]] -- test e.g. [[χώρα]] at the ancient section
	-- Many thanks to [[User:Trappist the monk]] from wikipedia
	
-- INSTRUCTIONS:
-- Call if from a declension module by placing EXACTLY where it is needed:
	--	require ('Module:grc-articles').articles (args)
	-- DO NOT change anything else. DO NOT add at top of page a m_articles = require this and that.
	
-- USE local for the functions of THIS module
-- ########### TO DO: fix second singular and 2nd plural articles if needed


local languages = mw.loadData("Module:Languages") -- needed: grc (gkm, kath the articles are the same)


-- font colours
local c_stem = '#002000'

local function stem_color (thema)
	thema = thema or '' -- otherwise, it does not work
    return '<span style="color:' .. c_stem ..'; font-weight:normal;">' .. thema .. '</span>'
end

-- ====================== Links
local function create_link (page, text)
	local args = {}
	-- articles are the same for for kath, gkm, grc, so:
	local lang_iso = 'grc'
	local lang_link = languages[lang_iso]['link'] or ''	
	page = page or '' -- otherwise, it does not work
	if text then
		return '[[' .. page .. '#' .. languages[lang_iso]['link'] .. '|' .. text .. ']]'
	else
		return '[[' .. page .. '#' .. languages[lang_iso]['link'] .. '|' .. page .. ']]'
	end
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

--------------------------------------------------------------------------
--                     Ancient  Greek articles                            --
--------------------------------------------------------------------------
local function articles (args)
 
    
-- ========= ARTICLES ========== -- This section was placed in a declension module and is moved here. 
	-- from the duals, only αοδ & αγδ are used (nom and gen). But there is provision for full dual table too.
	
	-- vocatives are empty. (The ὦ! could be placed outside, as it is not an article)
	if args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε'] else args['ακε'] = '' end
	if args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακε'] else args['ακπ'] = '' end
	if args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ'] else args['ακδ'] = '' end
	args['ακε2'] = ''
	args['ακδ2'] = ''
	args['ακπ2'] = ''

-- =========== for INDIVIDUAL cells #TO DO check αοε2 is second IN the same column. a2οε is at different column?or args['αοε2'] == "αρσ" or args['α2οε'] == "αρσ" 
if args['αοε'] == "αρσ" then args['αοε'] = create_link('ὁ', stem_color('ὁ')) end
if args['αοε'] == "θηλ" then args['αοε'] = create_link('ἡ', stem_color('ἡ')) end
if args['αοε'] == "ουδ" then args['αοε'] = create_link('τό', stem_color('τὸ')) end
if args['αοε'] == "αθ" then args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ')) end

if args['αγε'] == "αρσ" then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) end
if args['αγε'] == "θηλ" then args['αγε'] = create_link('τῆς', stem_color('τῆς')) end
if args['αγε'] == "ουδ" then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) end
if args['αγε'] == "αθ" then args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς')) end

if args['αδε'] == "αρσ" then args['αδε'] = create_link('τῷ', stem_color('τῷ')) end
if args['αδε'] == "θηλ" then args['αδε'] = create_link('τῇ', stem_color('τῇ')) end
if args['αδε'] == "ουδ" then args['αδε'] = create_link('τῷ', stem_color('τῷ')) end
if args['αδε'] == "αθ" then args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ')) end

if args['ααε'] == "αρσ" then args['ααε'] = create_link('τόν', stem_color('τὸν')) end
if args['ααε'] == "θηλ" then args['ααε'] = create_link('τήν', stem_color('τὴν')) end
if args['ααε'] == "ουδ" then args['ααε'] = create_link('τό', stem_color('τὸ')) end
if args['αθ'] == "ουδ" then args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν')) end

if args['αοπ'] == "αρσ" then args['αοπ'] = create_link('οἱ', stem_color('οἱ')) end
if args['αοπ'] == "θηλ" then args['αοπ'] = create_link('αἱ', stem_color('αἱ')) end
if args['αοπ'] == "ουδ" then args['αοπ'] = create_link('τά', stem_color('τὰ')) end
if args['αθ'] == "ουδ" then args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ')) end
	
if args['αγπ'] == "αρσ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ'] == "θηλ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ'] == "ουδ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end
if args['αγπ'] == "αθ" then args['αγπ'] = create_link('τῶν', stem_color('τῶν')) end

if args['αδπ'] == "αρσ" then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) end
if args['αδπ'] == "θηλ" then args['αδπ'] = create_link('ταῖς', stem_color('ταῖς')) end
if args['αδπ'] == "ουδ" then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) end
if args['αδπ'] == "αθ" then args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς')) end

if args['ααπ'] == "αρσ" then args['ααπ'] = create_link('τούς', stem_color('τοὺς')) end
if args['ααπ'] == "θηλ" then args['ααπ'] = create_link('τάς', stem_color('τὰς')) end
if args['ααπ'] == "ουδ" then args['ααπ'] = create_link('τά', stem_color('τὰ')) end
if args['ααπ'] == "αθ" then args['ααπ'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς')) end

if args['αοδ'] == "αρσ" or args['αοδ'] == "θηλ" or args['αοδ'] == "ουδ" or args['αοδ'] == "αθ"
then args['αοδ'] = create_link('τώ', stem_color('τὼ')) end

if args['αγδ'] == "αρσ" or args['αγδ'] == "θηλ" or args['αγδ'] == "ουδ" or args['αγδ'] == "αθ"
then args['αγδ'] = create_link('τοῖν', stem_color('τοῖν')) end

-- no articles	==================
if  -- take off all the nils, to make the INDIVIDUAL work
--	(args['αρσ'] == '' or args['αρσ'] == nil) and (args['θηλ'] == '' or args['θηλ'] == nil) and (args['ουδ'] == '' or args['ουδ'] == nil)
--	and (args['αθ'] == '' or args['αθ'] == nil) and (args['α-θ'] == '' or args['α-θ'] == nil) and (args['θ-α'] == '' or args['θ-α'] == nil)
--	and (args['θο'] == '' or args['θο'] == nil)
--	or 
	args['άρθρα'] == '0' or args['άρθρα'] == '-'
	then
		args['αοε'] = '&nbsp;&nbsp;&nbsp;&nbsp;'	args['αγε'] = ''	args['αδε'] = ''	args['ααε'] = ''
		args['αοπ'] = '&nbsp;&nbsp;&nbsp;&nbsp;'	args['αγπ'] = ''	args['αδπ'] = ''	args['ααπ'] = ''	
		args['αοδ'] = '&nbsp;&nbsp;&nbsp;&nbsp;'	args['αγδ'] = ''
else
	
-- for ALL the table, by GENDER parameter αρσ=1, θηλ=1, αθ=1, θο=1 -- more to be added for double-gender-declensions which are NOT common gender
-- MASCULINE ARTICLES
	if args['αρσ'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('ὁ', stem_color('ὁ'))
		end
		if args['αγε'] == '-' then args['αγε'] = ''
			elseif (args['δωρ'] == '1' or args['λακ'] == '1') and args['αγε'] ~= '-'
				then args['αγε'] = create_link('τῶ', stem_color('τῶ'))
			elseif args['δωρ'] ~= '1' and args['λακ'] ~= '1' and args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil
				then args['αγε'] = args['αγε']
			else args['αγε'] = create_link('τοῦ', stem_color('τοῦ'))
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῷ', stem_color('τῷ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τόν', stem_color('τὸν'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural masculine
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('οἱ', stem_color('οἱ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('τοῖς', stem_color('τοῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τούς', stem_color('τοὺς'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	masculine
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
		end
-- FEMININE ARTICLES
	elseif args['θηλ'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('ἡ', stem_color('ἡ'))
		end
		if args['αγε'] == '-' then args['αγε'] = ''
			elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
			else args['αγε'] = create_link('τῆς', stem_color('τῆς'))
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῇ', stem_color('τῇ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τήν', stem_color('τὴν'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural feminine
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('αἱ', stem_color('αἱ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('ταῖς', stem_color('ταῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τάς', stem_color('τὰς'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	feminine
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
			end
-- RARE FEMININE or NEUTER ARTICLES (plural is not attested)  θο=1 feminine or neuter, for diminutive hypocoristic names for women like [[Γλυκέριον]]
	elseif args['θο'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('ἡ', stem_color('ἡ')) .. '/' .. create_link('τό', stem_color('τὸ'))
		end
		if args['αγε'] == '-' then args['αγε'] = ''
			elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
			else args['αγε'] = create_link('τῆς', stem_color('τῆς')) .. '/' .. create_link('τοῦ', stem_color('τοῦ'))
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῇ', stem_color('τῇ')) .. '/' .. create_link('τῷ', stem_color('τῷ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τήν', stem_color('τὴν')) .. '/' .. create_link('τό', stem_color('τὸ'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural feminine+neuter
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('αἱ', stem_color('αἱ')) .. '/' .. create_link('τά', stem_color('τὰ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('ταῖς', stem_color('ταῖς')) .. '/' .. create_link('τοῖς', stem_color('τοῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τάς', stem_color('τὰς')) .. '/' .. create_link('τά', stem_color('τὰ'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	feminine+neuter = same
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
		end
	
-- COMMON MASCULINE+FEMININE ARTICLES
	elseif args['αθ'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
		end
-- γενική ενικού με άρθρο δεύτερης γραμμής: επιλέγουμε τι θέλουμε	/ 2 articles in 2 lines		-- NOT USED YET
		if args['α2γε'] ~= '' and args['α2γε'] ~= nil then
			args['αγε'] = args['αγε'] .. "<br />" .. args['α2γε']
		else
			if args['αγε'] == '-' then args['αγε'] = ''
				elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
				else args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
			end
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural common masc+fem
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	common
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
			end
	
-- ΜULTIPLE 1) MASCULINE+FEMININE ARTICLES
	elseif args['α-θ'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '<br />' .. create_link('ἡ', stem_color('ἡ'))
		end
		if args['αγε'] == '-' then args['αγε'] = ''
			elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
			else args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '<br />' .. create_link('τῆς', stem_color('τῆς'))
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '<br />' .. create_link('τῇ', stem_color('τῇ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '<br />' .. create_link('τήν', stem_color('τὴν'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural multiple  masc and fem
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('οἱ', stem_color('οἱ')) .. '<br />' .. create_link('αἱ', stem_color('αἱ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('τοῖς', stem_color('τοῖς')) .. '<br />' .. create_link('ταῖς', stem_color('ταῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τούς', stem_color('τοὺς')) .. '<br />' .. create_link('τάς', stem_color('τὰς'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	common
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
			end
	
	
-- ΜULTIPLE 2) FEMININE - MASCULINE  ARTICLES
	elseif args['θ-α'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('ἡ', stem_color('ἡ')) .. '<br />' .. create_link('ὁ', stem_color('ὁ'))
		end
		if args['αγε'] == '-' then args['αγε'] = ''
			elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
			else args['αγε'] = create_link('τῆς', stem_color('τῆς')) .. '<br />' .. create_link('τοῦ', stem_color('τοῦ'))
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῇ', stem_color('τῇ')) .. '<br />' .. create_link('τῷ', stem_color('τῷ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τήν', stem_color('τὴν')) .. '<br />' .. create_link('τόν', stem_color('τὸν'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural multiple  fem and masc
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('αἱ', stem_color('αἱ')) .. '<br />' .. create_link('οἱ', stem_color('οἱ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('ταῖς', stem_color('ταῖς')) .. '<br />' .. create_link('τοῖς', stem_color('τοῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τάς', stem_color('τὰς')) .. '<br />' .. create_link('τούς', stem_color('τοὺς'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	common
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
			end

	
-- NEUTER ARTICLES
	elseif args['ουδ'] == '1' then
		if args['αοε'] == '-' then args['αοε'] = ''
			elseif args['αοε'] ~= '-' and args['αοε'] ~= '' and args['αοε'] ~= nil then args['αοε'] = args['αοε']
			else args['αοε'] = create_link('τό', stem_color('τὸ'))
		end
		if args['αγε'] == '-' then args['αγε'] = ''
			elseif args['αγε'] ~= '-' and args['αγε'] ~= '' and args['αγε'] ~= nil then args['αγε'] = args['αγε']
			else args['αγε'] = create_link('τοῦ', stem_color('τοῦ'))
		end
		if args['αδε'] == '-' then args['αδε'] = ''
			elseif args['αδε'] ~= '-' and args['αδε'] ~= '' and args['αδε'] ~= nil then args['αδε'] = args['αδε']
			else args['αδε'] = create_link('τῷ', stem_color('τῷ'))
		end
		if args['ααε'] == '-' then args['ααε'] = ''
			elseif args['ααε'] ~= '-' and args['ααε'] ~= '' and args['ααε'] ~= nil then args['ααε'] = args['ααε']
			else args['ααε'] = create_link('τό', stem_color('τὸ'))
		end
		if -- vocative is empty
			args['ακε'] ~= '' and args['ακε'] ~= nil then args['ακε'] = args['ακε']
			else args['ακε'] = ''
		end
		-- plural neuter
		if args['αοπ'] == '-' then args['αοπ'] = ''
			elseif args['αοπ'] ~= '-' and args['αοπ'] ~= '' and args['αοπ'] ~= nil then args['αοπ'] = args['αοπ']
			else args['αοπ'] = create_link('τά', stem_color('τὰ'))
		end
		if args['αγπ'] == '-' then args['αγπ'] = ''
			elseif args['αγπ'] ~= '-' and args['αγπ'] ~= '' and args['αγπ'] ~= nil then args['αγπ'] = args['αγπ']
			else args['αγπ'] = create_link('τῶν', stem_color('τῶν'))
		end
		if args['αδπ'] == '-' then args['αδπ'] = ''
			elseif args['αδπ'] ~= '-' and args['αδπ'] ~= '' and args['αδπ'] ~= nil then args['αδπ'] = args['αδπ']
			else args['αδπ'] = create_link('τοῖς', stem_color('τοῖς'))
		end
		if args['ααπ'] == '-' then args['ααπ'] = ''
			elseif args['ααπ'] ~= '-' and args['ααπ'] ~= '' and args['ααπ'] ~= nil then args['ααπ'] = args['ααπ']
			else args['ααπ'] = create_link('τά', stem_color('τὰ'))
		end
		if -- vocative is empty
			args['ακπ'] ~= '' and args['ακπ'] ~= nil then args['ακπ'] = args['ακπ']
			else args['ακε'] = ''
		end
		-- dual	neuter
		if args['αοδ'] == '-' then args['αοδ'] = ''
			elseif args['αοδ'] ~= '-' and args['αοδ'] ~= '' and args['αοδ'] ~= nil then args['αοδ'] = args['αοδ']
			else args['αοδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if args['αγδ'] == '-' then args['αγδ'] = ''
			elseif args['αγδ'] ~= '-' and args['αγδ'] ~= '' and args['αγδ'] ~= nil then args['αγδ'] = args['αγδ']
			else args['αγδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['αδδ'] == '-' then args['αδδ'] = ''
			elseif args['αδδ'] ~= '-' and args['αδδ'] ~= '' and args['αδδ'] ~= nil then args['αδδ'] = args['αδδ']
			else args['αδδ'] = create_link('τοῖν', stem_color('τοῖν'))
		end
		if args['ααδ'] == '-' then args['ααδ'] = ''
			elseif args['ααδ'] ~= '-' and args['ααδ'] ~= '' and args['ααδ'] ~= nil then args['ααδ'] = args['ααδ']
			else args['ααδ'] = create_link('τώ', stem_color('τὼ'))
		end
		if -- vocative is empty
			args['ακδ'] ~= '' and args['ακδ'] ~= nil then args['ακδ'] = args['ακδ']
			else args['ακδ'] = ''
		end


	else
-- BY CASE -- USE ONLY IF NEEDED.
			if args['αοε'] == 'αρσ' then args['αοε'] = create_link('ὁ', stem_color('ὁ'))
		elseif args['αοε'] == 'θηλ' then args['αοε'] = create_link('ἡ', stem_color('ἡ'))
		elseif args['αοε'] == 'ουδ' then args['αοε'] = create_link('τό', stem_color('τὸ'))
		elseif args['αοε'] == 'αθ' then	args['αοε'] = create_link('ὁ', stem_color('ὁ')) .. '/' .. create_link('ἡ', stem_color('ἡ'))
		elseif args['αοε'] == 'θο' then args['αοε'] = create_link('ἡ', stem_color('ἡ')) .. '/' .. create_link('τό', stem_color('τὸ'))
		elseif args['αοε'] ~= '' and args['αοε'] ~= '-' and args['αοε'] ~= 'αρσ' and args['αοε'] ~= 'θηλ' and args['αοε'] ~= 'ουδ' and args['αοε'] ~= 'αθ' and args['αοε'] ~= 'θο' then
			args['αοε'] = create_link(args['αοε'], stem_color(args['αοε']))
			else args['αοε'] = ''
		end
		if args['αγε'] == 'αθ' then
			args['αγε'] = create_link('τοῦ', stem_color('τοῦ')) .. '/' .. create_link('τῆς', stem_color('τῆς'))
		elseif args['αγε'] ~= '' and args['αγε'] ~= '-' and args['αγε'] ~= 'αθ' then
			args['αγε'] = create_link(args['αγε'], stem_color(args['αγε']))
			--else args['αγε'] = '' -- πρόβλημα στο νεοελληνικό [[ναύλος]]: έσβηνε το αγε
		end
		if args['αδε'] == 'αθ' then
			args['αδε'] = create_link('τῷ', stem_color('τῷ')) .. '/' .. create_link('τῇ', stem_color('τῇ'))
		elseif args['αδε'] ~= '' and args['αδε'] ~= '-' and args['αδε'] ~= 'αθ' then
			args['αδε'] = create_link(args['αδε'], stem_color(args['αδε']))
			else args['αδε'] = ''
		end
		if args['ααε'] == 'αθ' then
			args['ααε'] = create_link('τόν', stem_color('τὸν')) .. '/' .. create_link('τήν', stem_color('τὴν'))
		elseif args['ααε'] ~= '' and args['ααε'] ~= '-' and args['ααε'] ~= 'αθ' then
			args['ααε'] = create_link(args['ααε'], stem_color(args['ααε']))
			else args['ααε'] = ''
		end

	
	end -- close if args masculine, or feminine, or...
	
-- FOR 2nd plural -- άρθρα 2ου πληθυντικού -- [[κόρυμβος]]
			if args['αοπ2'] == 'αρσ' then args['αοπ2'] = create_link('οἱ', stem_color('οἱ'))
		elseif args['αοπ2'] == 'θηλ' then args['αοπ2'] = create_link('αἱ', stem_color('αἱ'))
		elseif args['αοπ2'] == 'ουδ' then args['αοπ2'] = create_link('τά', stem_color('τὰ'))
		elseif args['αοπ2'] == 'αθ' then args['αοπ2'] = create_link('οἱ', stem_color('οἱ')) .. '/' .. create_link('αἱ', stem_color('αἱ'))
		elseif args['αοπ2'] == 'θο' then args['αοπ2'] = create_link('αἱ', stem_color('αἱ')) .. '/' .. create_link('τά', stem_color('τὰ'))
		elseif args['αοπ2'] ~= '' and args['αοπ2'] ~= '-' and args['αοπ2'] ~= 'αρσ' and args['αοπ2'] ~= 'θηλ' and args['αοπ2'] ~= 'ουδ' and args['αοπ2'] ~= 'αθ' and args['αοπ2'] ~= 'θο' then
			args['αοπ2'] = create_link(args['αοπ2'], stem_color(args['αοπ2']))
			else args['αοπ2'] = ''
		end
		
			if args['αγπ2'] == 'αρσ' then args['αγπ2'] = create_link('τῶν', stem_color('τῶν'))
		elseif args['αγπ2'] == 'θηλ' then args['αγπ2'] = create_link('τῶν', stem_color('τῶν'))
		elseif args['αγπ2'] == 'ουδ' then args['αγπ2'] = create_link('τῶν', stem_color('τῶν'))
		elseif args['αγπ2'] == 'αθ' then args['αγπ2'] = create_link('τῶν', stem_color('τῶν'))
		elseif args['αγπ2'] == 'θο' then args['αγπ2'] = create_link('τῶν', stem_color('τῶν'))
		elseif args['αγπ2'] ~= '' and args['αγπ2'] ~= '-' and args['αγπ2'] ~= 'αρσ' and args['αγπ2'] ~= 'θηλ' and args['αγπ2'] ~= 'ουδ' and args['αγπ2'] ~= 'αθ' and args['αγπ2'] ~= 'θο' then
			args['αγπ2'] = create_link(args['αγπ2'], stem_color(args['αγπ2']))
			else args['αγπ2'] = ''
		end

			if args['αδπ2'] == 'αρσ' then args['αδπ2'] = create_link('τοῖς', stem_color('τοῖς'))
		elseif args['αδπ2'] == 'θηλ' then args['αδπ2'] = create_link('ταῖς', stem_color('ταῖς'))
		elseif args['αδπ2'] == 'ουδ' then args['αδπ2'] = create_link('τοῖς', stem_color('τοῖς'))
		elseif args['αδπ2'] == 'αθ' then args['αδπ2'] = create_link('τοῖς', stem_color('τοῖς')) .. '/' .. create_link('ταῖς', stem_color('ταῖς'))
		elseif args['αδπ2'] == 'θο' then args['αδπ2'] = create_link('ταῖς', stem_color('ταῖς')) .. '/' .. create_link('τοῖς', stem_color('τοῖς'))
		elseif args['αδπ2'] ~= '' and args['αδπ2'] ~= '-' and args['αδπ2'] ~= 'αρσ' and args['αδπ2'] ~= 'θηλ' and args['αδπ2'] ~= 'ουδ' and args['αδπ2'] ~= 'αθ' and args['αδπ2'] ~= 'θο' then
			args['αδπ2'] = create_link(args['αδπ2'], stem_color(args['αδπ2']))
			else args['αδπ2'] = ''
		end

			if args['ααπ2'] == 'αρσ' then args['ααπ2'] = create_link('τούς', stem_color('τοὺς'))
		elseif args['ααπ2'] == 'θηλ' then args['ααπ2'] = create_link('τάς', stem_color('τὰς'))
		elseif args['ααπ2'] == 'ουδ' then args['ααπ2'] = create_link('τά', stem_color('τὰ'))
		elseif args['ααπ2'] == 'αθ' then args['ααπ2'] = create_link('τούς', stem_color('τοὺς')) .. '/' .. create_link('τάς', stem_color('τὰς'))
		elseif args['ααπ2'] == 'θο' then args['ααπ2'] = create_link('τάς', stem_color('τὰς')) .. '/' .. create_link('τά', stem_color('τὰ'))
		elseif args['ααπ2'] ~= '' and args['ααπ2'] ~= '-' and args['ααπ2'] ~= 'αρσ' and args['ααπ2'] ~= 'θηλ' and args['ααπ2'] ~= 'ουδ' and args['ααπ2'] ~= 'αθ' and args['ααπ2'] ~= 'θο' then
			args['ααπ2'] = create_link(args['ααπ2'], stem_color(args['ααπ2']))
			else args['ααπ2'] = ''
		end
	
end -- close if αρσ, θηλ, αθ ουδ are nil or empty	

end -- close  function articles

return {articles = articles}