10,794
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 1,178: | Line 1,178: | ||
local function stress(syl) -- assigns primary or secondary stress to the current working word | local function stress(syl) -- assigns primary or secondary stress to the current working word | ||
if syl == 1 or syl == 2 then | if syl == 1 or syl == 2 then | ||
if syllables[1] == "-" or output[#output] == "·" then -- check if following · or preceding - ; if so, assign stress regardless of monosyllabicness | if (syllables[1] == "-" or output[#output] == "·") and syllables[1] ~= "·" and output[#output] ~= "-" then -- check if following · or preceding - ; if so, assign stress regardless of monosyllabicness | ||
working_word[syl]["stress"] = true | working_word[syl]["stress"] = true | ||
-- mw.log("Primary stress assigned to syllable " .. syl .. ".") | -- mw.log("Primary stress assigned to syllable " .. syl .. ".") |