Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 47: Line 47:


local function detect_decl(stressed)
local function detect_decl(stressed)
for og, repl in pairs(m_com.stressed_vowels) do
for _, sv in ipairs(m_com.stressed_vowels) do
local decl = gsub(stressed, og, repl)
local decl = gsub(stressed, sv[1], sv[2])
end
end
Line 76: Line 76:


if not m_data[word] then
if not m_data[word] then
decl_type = frame.args.decl or detect_decl(word, sv)
decl_type = frame.args.decl or detect_decl(sv)
if not decl_type then
if not decl_type then