Module:qhv-verb: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 25: Line 25:


function export.detect_decl(word, class)
function export.detect_decl(word, class)
local root, tv = sub(word, 1, -5), sub(word, -4, -4)
local root = sub(word, 1, -5)
tv = sub(word, -4, -4)
if class then
if class then
local decl = class
local decl = class
Line 75: Line 76:
local data = {forms = {}, categories = {}}
local data = {forms = {}, categories = {}}
data.head = parent_args["head"] or nil
data.head = parent_args["head"] or parent_args["word"] or nil
data.no_cat = parent_args["nocat"] or parent_args["det"] or nil
data.no_cat = parent_args["nocat"] or parent_args["det"] or nil
data.thematic_vowel = sub(word, -4, -4)
data.thematic_vowel = tv
-- Generate the forms
-- Generate the forms