Module:grc-morphology

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This module is implemented by {{grc-morph}}, and will hopefully eventually allow standardized description of Greek morphology, especially of verbs, and categorization of lemmas by morphology of their inflected forms.


local export = {}

local m_utilities = require("Module:utilities")
local lang = require("Module:languages").getByCode("grc")

local morphs = {	--	text: displayed in etymology
				--	link: page that explains the formation
	-- only perfect: δέδωκα
	["er"] = {
		text = "Ce-reduplicated",
		link = "w:Reduplication#Proto-Indo-European",
		category = "verbs with reduplicated perfect",
	},
	
	-- only present: δίδωμι, ἴσχω
	["ir"] = {
		text = "Ci-reduplicated",
		link = "w:Reduplication#Proto-Indo-European",
		category = "with reduplicated present",
	},
	
	-- only οἶδα
	["-r"] = {
		text = "no reduplication",
		category = "verbs with unreduplicated perfect",
	},
	
	-- present, aorist, and perfect (?),
	-- laryngeal-consonant reduplication:
	-- ἀραρίσκω, ἤγαγον
	["lr"] = {
		text = "HC-reduplicated",
		category = "verbs with vowel-initial reduplication",
	},
	
	-- only present: λαμβάνω
	["n"]  = {
		text = "nasal-infixed and suffixed",
		link = "w:Nasal infix",
		category = "verbs with nasal-infixed and -suffixed present"
	},
	
	-- only present: δείκνῡμι
	["nu"] = {
		text = "-nu-suffixed",
		link = "Reconstruction:Proto-Indo-European/-néwti",
		category = "verbs with present tense in -νυμι",
	},
	
	-- present (and iterative imperfect and aorist): πάσχω, ἀραρίσκω
	["sk"] = {
		text = "-sḱe-suffixed",
		link = "Reconstruction:Proto-Indo-European/-sḱéti",
		category = "verbs with present tense in -σκ-",
	},
	
	-- only present, zero-grade, palatalized or contracted: βαίνω
	["y1"]  = {
		text = "-ye-suffixed",
		link = "Reconstruction:Proto-Indo-European/-yeti",
		category = "verbs with present tense in -y-",
	},
	
	-- only present, e-grade, palatalized or contracted: φθείρω
	["y2"]  = {
		text = "-yé-suffixed",
		link = "Reconstruction:Proto-Indo-European/-yéti",
		category = "verbs with present tense in -y-",
	},
	
	-- often all forms: εἶδον
	["e"]  = {
		text = "e-grade",
		link = "w:Indo-European ablaut#Ablaut grades",
		category = "terms from Proto-Indo-European e-grade",
	},
	
	-- usually perfect: οἶδα
	-- sometimes all tenses: ὁράω, λογέω
	["o"]  = {
		text = "o-grade",
		link = "w:Indo-European ablaut#Ablaut grades",
		category = "terms from Proto-Indo-European o-grade",
	},
	
	-- usually present or aorist: ἄγω, ἴσχω, ἔλαβον
	["z"]  = {
		text = "zero-grade",
		link = "w:Indo-European ablaut#Ablaut grades",
		category = "terms from Proto-Indo-European zero-grade",
	},
	
	-- future or aorist: λήψομαι, ἔδειξᾰ
	["s"]  = {
		text = "s-suffixed",
		link = "Reconstruction:Proto-Indo-European/-st",
		category = "verbs with future or aorist in -σ-",
	},
	
	-- aorist or perfect: ἔδωκα, δέδωκα
	["k"]  = {
		text = "k-suffixed",
		category = "verbs with aorist in -κ-",
	},
	
	-- ye- or yé- presents:
	-- ἀγγέλλω, βαίνω, βλάπτω, ἐλπίζω, τάσσω, φθείρω
	["p"]  = {
		text = "Proto-Hellenic palatalization",
		link = "w:Proto-Greek language#Palatalization",
		category = "verbs with palatalized present-tense stem",
	},
	
	-- μι-presents, root aorists: δίδωμι, δείκνῡμι, ἔστην
	["a"]  = {
		text = "athematic",
		link = "w:Thematic vowel",
		category = "verbs with athematic forms",
	}
}

function export.morph(frame)
	local args = frame:getParent().args
	local POS = args[1]
	if POS == verb
		then local tense = args[2]
	end
	return 'root'
end

return export