Module:qhv-noun/test: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "local export = {} function export.test(frame) local word = frame.args[1] return require("Module:qhv-pron").write_stress(word, true) end return export")
 
No edit summary
Line 2: Line 2:


function export.test(frame)
function export.test(frame)
local word = frame.args[1]
local word = frame.args[1] or mw.title.getCurrentTitle().text
return require("Module:qhv-pron").write_stress(word, true)
local lang = require("Module:languages")
return lang:makeSortKey(word)
end
end


return export
return export

Revision as of 15:55, 4 March 2021



local export = {}

function export.test(frame)
	local word = frame.args[1] or mw.title.getCurrentTitle().text
	local lang = require("Module:languages")
	return lang:makeSortKey(word)
end

return export