Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
local PAGENAME = mw.title.getCurrentTitle().text | local PAGENAME = mw.title.getCurrentTitle().text | ||
local vowels = "[aeiouyůõảẻỉỏủỷę̊]" | --[[local vowels = "[aeiouyůõảẻỉỏủỷę̊]" | ||
local consonants = "[mpbvntdsṡʦʨʥŋɲcɟħðrṁṅḥkgġhłƛɬḍ]" | local consonants = "[mpbvntdsṡʦʨʥŋɲcɟħðrṁṅḥkgġhłƛɬḍ]" | ||
| Line 78: | Line 78: | ||
end | end | ||
]] | |||
function | local function detect_decl(word, sv) -- stressed vowel | ||
return word | |||
return | |||
end | end | ||
| Line 112: | Line 103: | ||
numbers = {parent_args[1]} | numbers = {parent_args[1]} | ||
else | else | ||
decl_type, numbers = export.detect_decl(word, | decl_type, numbers = export.detect_decl(word, sw) | ||
end | end | ||
end | end | ||
| Line 134: | Line 125: | ||
data.proper = parent_args["proper"] and true or false | data.proper = parent_args["proper"] and true or false | ||
data.nocat = parent_args["nocat"] and true or false | data.nocat = parent_args["nocat"] and true or false | ||
data.sv = parent_args[1] or error("Parameter 1 must be the word's stressed vowel.") | |||
-- Generate the forms | -- Generate the forms | ||