Hello, you have come here looking for the meaning of the word . In DICTIOUS you will not only get to know all the dictionary meanings for the word , but we will also tell you about its etymology, its characteristics and you will know how to say in singular and plural. Everything you need to know about the word you have here. The definition of the word will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local make_auto_subtabler = require("Module:auto-subtable")

local content = mw.title.new("Appendix:Ancient Greek endings"):getContent()

local endings = {}

-- Find entries for endings marked by the syntax "; ]".
-- Store them in a table.
for anchor in content:gmatch("\n; %]+)%]%]") do
	if anchor:find("") then
		for suffix in anchor:gmatch("%-+") do
			endings = true
		end
	end
end

local shares_ending = make_auto_subtabler()

-- The actual purpose of this data module:
-- Check if each ending ends with the characters of any smaller endings, by
-- snipping off progressively larger pieces of the ending and comparing them to
-- all other endings.
-- If so, store the ending in an array indexed by the shorter ending.
-- For instance, -εσθαι ends with the characters of -αι and -σθαι.
for ending in pairs(endings) do
	for i = 1, mw.ustring.len(ending) - 2 do -- Ignore the first two characters because of the hyphen.
		local sub_ending = "-" .. mw.ustring.sub(ending, -i)
		if endings then
			table.insert(shares_ending, ending)
		end
	end
end

shares_ending:un_auto_subtable()

return { shares_ending = shares_ending }