Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 69: | Line 69: | ||
local stressed = syll_count(word) | local stressed = syll_count(word) | ||
local tonic_vowel = stressed_components(word) | local tonic_vowel = stressed_components(word) | ||
for vowel, d in pairs(stressed_vowels) do | |||
tonic_vowel = gsub(tonic_vowel, vowel, d) | |||
end | |||
if gender and quality then | if gender and quality then | ||
if find(word, vowels .. "$") then | if find(word, vowels .. "$") then | ||
local decl = gender .. "-" .. | local decl = gender .. "-" .. tonic_vowel .. "-" .. quality | ||
return decl | return decl | ||
else | else | ||
return gender .. "-" .. sub(word, -1) .. "-" .. | return gender .. "-" .. sub(word, -1) .. "-" .. tonic_vowel | ||
end | end | ||
else | else | ||