Module:User:AmazingJus
Appearance
local export = {}
local gsub = mw.ustring.gsub
local function lc(str)
return mw.getLanguage("(insert lang here)"):lc(str)
end
-- IPA transcription
function export.toIPA(entry)
-- get user input as a table
if type(entry) == "table" then
entry = entry.args[1]
end
entry = lc(entry) -- make all text lowercase
entry = " " .. entry .. " " -- make all word borders have a space
-- rest of code goes here
return mw.text.trim(entry)
end
return export