Module:siwa-noun: Difference between revisions

No edit summary
No edit summary
Line 28: Line 28:
end
end


function export.syll_count(word)
local function syll_count(word)
word = dedigraphicize(word)
word = dedigraphicize(word)
Line 49: Line 49:
end
end


local function detect_decl(word, stressed, gender)
function export.detect_decl(word, stressed, gender)
word = dedigraphicize(word)
word = dedigraphicize(word)
if gender == "a" then return "animate"
if gender == "a" then return "animate"
Line 114: Line 114:
end
end
end
end
local _ = export.head(data)
-- Make the table
-- Make the table
return make_table(data)
return make_table(data)
end
-- for headword module
function export.head(data)
return (data.g == "i" and data.forms.m or data.forms.m_sg)
end
end