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
 
(One intermediate revision by the same user not shown)
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").getByCode("qhv")
return lang:makeSortKey(word)
end
end


return export
return export

Latest revision as of 15:56, 4 March 2021



local export = {}

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

return export