10,735
edits
TheNightAvl (talk | contribs) (Created page with "local export = {} local getArgs = require("Module:Arguments").getArgs local m_links = require("Module:links") local m_languages = require("Module:languages") local V = "aeiouyɑæɐəɵɛɜɪɨɔœɒøʊʉʌɯʏɤ" local from_secondary = { ["lfv"] = true } -- list of language codes which get rhyme from secondary stress as well as primary function de_onset(ipa) ipa = mw.ustring.gsub(ipa, "[ˈˌ]", "") ipa = mw.ustring.gsub(ipa, "^[^" .. V .. "]+", "") ipa = mw.ust...") |
TheNightAvl (talk | contribs) No edit summary |
||
Line 56: | Line 56: | ||
if i > 1 then | if i > 1 then | ||
rhyme = mw.ustring.gsub(rhyme, "[%/%[%]]", "") | rhyme = mw.ustring.gsub(rhyme, "[%/%[%]]", "") | ||
local rhyme2 = mw.ustring.match(rhyme, "ˌ(.*)$") | local rhyme2 | ||
if from_secondary[language.code] then | |||
rhyme2 = mw.ustring.match(rhyme, "ˌ(.*)$") | |||
end | |||
rhyme = mw.ustring.match(rhyme, "ˈ(.*)$") or rhyme | rhyme = mw.ustring.match(rhyme, "ˈ(.*)$") or rhyme | ||
table.insert(rhymes, de_onset(rhyme)) | table.insert(rhymes, de_onset(rhyme)) |