10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 66: | Line 66: | ||
local function insert_rhyme(input, pos) | local function insert_rhyme(input, pos) | ||
local | local function insert_to_rhymes(rhyme) | ||
if not (rhyme == nil or m_table.contains(rhymes, rhyme)) and show_rhymes then | |||
if pos == nil then | |||
table.insert(rhymes, rhyme) | |||
else | |||
table.insert(rhymes, pos, rhyme) | |||
end | |||
-- mw.log("Rhyme registered: " .. rhyme) | |||
end | |||
end | end | ||
insert_to_rhymes(m_rad_IPA.get_rhyme(input)) | |||
insert_to_rhymes(m_rad_IPA.get_weak_rhyme(input)) | |||
end | end | ||