10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 38: | Line 38: | ||
-- create data arrays -- | -- create data arrays -- | ||
local IPA = { | local IPA = {} | ||
IPA["standard"] = {} | |||
for _, r in pairs(register) do | |||
IPA["standard"]["plain"] = {} | |||
IPA["standard"][r] = {} | |||
end | |||
for _, d in pairs(dialect) do | |||
IPA[d] = {} | |||
for _, r in pairs(register) do | |||
IPA[d]["plain"] = {} | |||
IPA[d][r] = {} | |||
end | |||
end -- set up IPA | |||
local rhymes = {} | local rhymes = {} | ||
local syllables = {} | local syllables = {} | ||
Line 70: | Line 78: | ||
table.insert(rhymes, pos, new_rhyme) | table.insert(rhymes, pos, new_rhyme) | ||
end | end | ||
mw.log("Rhyme registered: " .. new_rhyme) | -- mw.log("Rhyme registered: " .. new_rhyme) | ||
end | end | ||
end | end |