Module:headword: Difference between revisions
No edit summary |
No edit summary |
||
| Line 947: | Line 947: | ||
-- add an appropriate category. | -- add an appropriate category. | ||
local postype = export.pos_lemma_or_nonlemma(data.pos_category) | local postype = export.pos_lemma_or_nonlemma(data.pos_category) | ||
local main_cat = data.lang:getMainCategoryName() | |||
if not postype then | |||
elseif not data.noposcat then | |||
if postype:match("^lemma") and main_cat ~= "lemma" then | |||
postype = main_cat | |||
end | |||
insert(data.categories, 1, full_langname .. " " .. postype .. "s") | |||
end | |||
-- EXPERIMENTAL: see [[Wiktionary:Beer parlour/2024/June#Decluttering the altform mess]] | -- EXPERIMENTAL: see [[Wiktionary:Beer parlour/2024/June#Decluttering the altform mess]] | ||