Module:qhv-verb: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:


function export.detect_decl(word, class)
function export.detect_decl(word, class)
local root  = sub(word, 1, -5)
root  = sub(word, 1, -5)
tv = sub(word, -4, -4)
tv = sub(word, -4, -4)
if class then
if class then
Line 60: Line 60:
end
end
if not decl_type then
if not decl_type then decl_type, numbers = "fricative", {root} end
error("Unknown declension '" .. decl_type .. "'")
end
args = require("Module:parameters").process(parent_args, m_data[decl_type].params, true)
args = require("Module:parameters").process(parent_args, m_data[decl_type].params, true)