Module:qay-noun/head: Difference between revisions
Created page with "local export = {} local m_p = require("Module:qay-noun") local m_d = require("Module:qay-noun/data") local PAGENAME = mw.title.getCurrentTitle().text local function detect_d..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 33: | Line 33: | ||
function export.pass_to_module(term, case, gender) | function export.pass_to_module(term, case, gender) | ||
local stem = | local stem = PAGENAME | ||
local data = {forms = {}, categories = {}} | local data = {forms = {}, categories = {}} | ||
local decl = gender .. "_" .. detect_decl( | local decl = gender .. "_" .. detect_decl(stem) | ||
stem = { | stem = {stem, "a"} | ||
if m_d[word] then m_d[word](stem, data) | if m_d[word] then m_d[word](stem, data) | ||