Module:qhv-adj: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 123: Line 123:
local function make_cases(data, pre)
local function make_cases(data, pre)
local cases = {"nominative", "accusative", "genitive", "dative", "locative", "instrumental", "comitative", "vocative"}
local cases = {"nominative", "accusative", "genitive", "dative", "locative", "instrumental", "comitative", "vocative"}
local genders = {"lunar", "solar", "terrestrial", "aquatic"}
local genders = data.decl_type == "I" and {"lunar", "solar", "terrestrial", "aquatic"} or {"lunar", "terrestrial"}
local ret = {}
local ret = {}