Module:rad-pronunciation: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 38: Line 38:
-- create data arrays --
-- create data arrays --
local IPA = {
local IPA = {}
["standard"] = {["plain"] = {}, ["colloquial"] = {}, ["formal"] = {}, ["humorous"] = {}, },
IPA["standard"] = {}
["hjádvanþs"] = {["plain"] = {}, ["colloquial"] = {}, ["formal"] = {}, ["humorous"] = {}, },
    for _, r in pairs(register) do
["coastal"] = {["plain"] = {}, ["colloquial"] = {}, ["formal"] = {}, ["humorous"] = {}, },
        IPA["standard"]["plain"] = {}
["insular"] = {["plain"] = {}, ["colloquial"] = {}, ["formal"] = {}, ["humorous"] = {}, },
        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