Module:uz-inflection/data/uz-noun-test

return { template = 'User:Vitalik/uz-decl-noun-table', affixes = { genitive = 'ning', accusative = 'ni', locative = 'da', ablative = 'dan', dative = 'ga', dative_k = 'ka', dative_q = 'qa', pl = 'lar', possessive_first_sg = 'm', possessive_second_sg = 'ng', possessive_first_pl = 'miz', possessive_second_pl = 'ngiz', possessive_third = 'i', interfix = 'i', },	conditions = { {			actions = , },		{			last = 'k', -- if last letter is 'k'			actions = },		{			last = 'q', -- if last letter is 'q'			actions = },		{			comment = 'If two last letters are identical to first letter of declension ending — then we need to leave only two letters from three. For example, metall + lar = metallar', last = 'll', -- if last letters are 'll' actions = },			{			section = 'Possessive forms' },		{			actions = { {'set', 'base_possessive', ' '}, {'add_class', 'possessive_nominative'}, {'add_class', 'possessive_other'}, }		},		{			subsection = 'When last letter is vowel', },		{			last = 'a', actions = { {'set', 'interfix', ''}, {'set', 'possessive_third', 'si'}, }		},		{			last = {'e', 'i', 'u', 'o', 'oʻ', 'o`', "o'"}, sub_conditions = { {					arg_type = 'std', actions = { {'set', 'interfix', ''}, {'set', 'possessive_third', 'si'}, }				},				{					arg_type = 'yisi', actions = { {'set', 'interfix', 'yi'}, {'set', 'possessive_third', 'si'}, }				},				{					arg_type = 'yiyi', actions = { {'set', 'interfix', 'yi'}, {'set', 'possessive_third', 'yi'}, }				},				{					arg_type_NOT = {'std', 'yisi', 'yiyi'}, actions = },			},		},		{			subsection = 'When last letters are "iy"', last = 'iy', actions = },		{			subsection = 'When last letter is "k" or "q"', },		{			last = 'k', arg_type = 'std', actions = },		{			last = 'q', arg_type = 'std', actions = },		{			last = {'k', 'q'}, sub_conditions = { {					arg_type = 'kq', actions = },				{					arg_type_NOT = {'std', 'kq'}, actions = },			},		},		{			subsection = 'When penultimate letter is vowel and last letter is consonant (except "y")', pre_last = {'a', 'e', 'i', 'u', 'o', 'oʻ', 'o`', "o'"}, last_NOT = {'a', 'e', 'i', 'u', 'o', 'oʻ', 'o`', "o'", 'y', 'k', 'q'}, sub_conditions = { {					arg_type = 'reduced', actions =  -- but we don't process case with apostrophe at the end.. },				{					arg_type_NOT = 'reduced', actions = },			},		},		{			subsection = 'Make decision to show/hide block "Possesive"', sub_conditions = { {					var_type_expected = '1', actions = },				{					var_type_expected_NOT = '1', actions = { {'set', 'show_possessive', '1'}, {'set', 'type_expected', ''}, -- just to create empty variable to send to template }				},			},		},		{			section = 'If there are no plural forms', comment = 'This rule should be the last one. Otherwise — removing of plural form can be overriden by other classes', arg_st = '1', -- if we've received argument "st" equals to "1" actions = },	},	classes = { common = { nominative_sg = ' ', genitive_sg = ' ', accusative_sg = ' ', locative_sg = ' ', ablative_sg = ' ', dative_sg = ' ', nominative_pl = ' ', genitive_pl = '  ', accusative_pl = '  ', locative_pl = '  ', ablative_pl = '  ', dative_pl = '  ', show_possessive = '', type_expected = '', },		dative_k = { dative_sg = ' ' -- if -k then -kka },		dative_q = { dative_sg = ' ' -- if -q then -qqa },		possessive_nominative = { nominative_sg_possessive_1sg = ' ', nominative_sg_possessive_2sg = ' ', nominative_sg_possessive_3sg = '', nominative_sg_possessive_1pl = '<base_possessive> <possessive_first_pl>', nominative_sg_possessive_2pl = '<base_possessive> <possessive_second_pl>', nominative_sg_possessive_3pl = '<base_possessive><possessive_third>', nominative_pl_possessive_1sg = ' <pl>i<possessive_first_sg>', nominative_pl_possessive_2sg = ' <pl>i<possessive_second_sg>', nominative_pl_possessive_3sg = ' <pl>i', nominative_pl_possessive_1pl = ' <pl>i<possessive_first_pl>', nominative_pl_possessive_2pl = ' <pl>i<possessive_second_pl>', nominative_pl_possessive_3pl = ' <pl>i', },		possessive_other = { genitive_sg_possessive_1sg = '<nominative_sg_possessive_1sg> ', genitive_sg_possessive_2sg = '<nominative_sg_possessive_2sg> ', genitive_sg_possessive_3sg = '<nominative_sg_possessive_3sg> ', genitive_sg_possessive_1pl = '<nominative_sg_possessive_1pl> ', genitive_sg_possessive_2pl = '<nominative_sg_possessive_2pl> ', genitive_sg_possessive_3pl = '<nominative_sg_possessive_3pl> ', accusative_sg_possessive_1sg = '<nominative_sg_possessive_1sg> ', accusative_sg_possessive_2sg = '<nominative_sg_possessive_2sg> ', accusative_sg_possessive_3sg = '<nominative_sg_possessive_3sg> ', accusative_sg_possessive_1pl = '<nominative_sg_possessive_1pl> ', accusative_sg_possessive_2pl = '<nominative_sg_possessive_2pl> ', accusative_sg_possessive_3pl = '<nominative_sg_possessive_3pl> ', locative_sg_possessive_1sg = '<nominative_sg_possessive_1sg> ', locative_sg_possessive_2sg = '<nominative_sg_possessive_2sg> ', locative_sg_possessive_3sg = '<nominative_sg_possessive_3sg> ', locative_sg_possessive_1pl = '<nominative_sg_possessive_1pl> ', locative_sg_possessive_2pl = '<nominative_sg_possessive_2pl> ', locative_sg_possessive_3pl = '<nominative_sg_possessive_3pl> ', ablative_sg_possessive_1sg = '<nominative_sg_possessive_1sg> ', ablative_sg_possessive_2sg = '<nominative_sg_possessive_2sg> ', ablative_sg_possessive_3sg = '<nominative_sg_possessive_3sg> ', ablative_sg_possessive_1pl = '<nominative_sg_possessive_1pl> ', ablative_sg_possessive_2pl = '<nominative_sg_possessive_2pl> ', ablative_sg_possessive_3pl = '<nominative_sg_possessive_3pl> ', dative_sg_possessive_1sg = '<nominative_sg_possessive_1sg> ', dative_sg_possessive_2sg = '<nominative_sg_possessive_2sg> ', dative_sg_possessive_3sg = '<nominative_sg_possessive_3sg> ', dative_sg_possessive_1pl = '<nominative_sg_possessive_1pl> ', dative_sg_possessive_2pl = '<nominative_sg_possessive_2pl> ', dative_sg_possessive_3pl = '<nominative_sg_possessive_3pl> ', genitive_pl_possessive_1sg = '<nominative_pl_possessive_1sg> ', genitive_pl_possessive_2sg = '<nominative_pl_possessive_2sg> ', genitive_pl_possessive_3sg = '<nominative_pl_possessive_3sg> ', genitive_pl_possessive_1pl = '<nominative_pl_possessive_1pl> ', genitive_pl_possessive_2pl = '<nominative_pl_possessive_2pl> ', genitive_pl_possessive_3pl = '<nominative_pl_possessive_3pl> ', accusative_pl_possessive_1sg = '<nominative_pl_possessive_1sg> ', accusative_pl_possessive_2sg = '<nominative_pl_possessive_2sg> ', accusative_pl_possessive_3sg = '<nominative_pl_possessive_3sg> ', accusative_pl_possessive_1pl = '<nominative_pl_possessive_1pl> ', accusative_pl_possessive_2pl = '<nominative_pl_possessive_2pl> ', accusative_pl_possessive_3pl = '<nominative_pl_possessive_3pl> ', locative_pl_possessive_1sg = '<nominative_pl_possessive_1sg> ', locative_pl_possessive_2sg = '<nominative_pl_possessive_2sg> ', locative_pl_possessive_3sg = '<nominative_pl_possessive_3sg> ', locative_pl_possessive_1pl = '<nominative_pl_possessive_1pl> ', locative_pl_possessive_2pl = '<nominative_pl_possessive_2pl> ', locative_pl_possessive_3pl = '<nominative_pl_possessive_3pl> ', ablative_pl_possessive_1sg = '<nominative_pl_possessive_1sg> ', ablative_pl_possessive_2sg = '<nominative_pl_possessive_2sg> ', ablative_pl_possessive_3sg = '<nominative_pl_possessive_3sg> ', ablative_pl_possessive_1pl = '<nominative_pl_possessive_1pl> ', ablative_pl_possessive_2pl = '<nominative_pl_possessive_2pl> ', ablative_pl_possessive_3pl = '<nominative_pl_possessive_3pl> ', dative_pl_possessive_1sg = '<nominative_pl_possessive_1sg> ', dative_pl_possessive_2sg = '<nominative_pl_possessive_2sg> ', dative_pl_possessive_3sg = '<nominative_pl_possessive_3sg> ', dative_pl_possessive_1pl = '<nominative_pl_possessive_1pl> ', dative_pl_possessive_2pl = '<nominative_pl_possessive_2pl> ', dative_pl_possessive_3pl = '<nominative_pl_possessive_3pl> ', },		singularia_tantum = { nominative_pl = '—', genitive_pl = '—', accusative_pl = '—', locative_pl = '—', ablative_pl = '—', dative_pl = '—', nominative_pl_possessive_1sg = '—', nominative_pl_possessive_2sg = '—', nominative_pl_possessive_3sg = '—', nominative_pl_possessive_1pl = '—', nominative_pl_possessive_2pl = '—', nominative_pl_possessive_3pl = '—', genitive_pl_possessive_1sg = '—', genitive_pl_possessive_2sg = '—', genitive_pl_possessive_3sg = '—', genitive_pl_possessive_1pl = '—', genitive_pl_possessive_2pl = '—', genitive_pl_possessive_3pl = '—', accusative_pl_possessive_1sg = '—', accusative_pl_possessive_2sg = '—', accusative_pl_possessive_3sg = '—', accusative_pl_possessive_1pl = '—', accusative_pl_possessive_2pl = '—', accusative_pl_possessive_3pl = '—', locative_pl_possessive_1sg = '—', locative_pl_possessive_2sg = '—', locative_pl_possessive_3sg = '—', locative_pl_possessive_1pl = '—', locative_pl_possessive_2pl = '—', locative_pl_possessive_3pl = '—', ablative_pl_possessive_1sg = '—', ablative_pl_possessive_2sg = '—', ablative_pl_possessive_3sg = '—', ablative_pl_possessive_1pl = '—', ablative_pl_possessive_2pl = '—', ablative_pl_possessive_3pl = '—', dative_pl_possessive_1sg = '—', dative_pl_possessive_2sg = '—', dative_pl_possessive_3sg = '—', dative_pl_possessive_1pl = '—', dative_pl_possessive_2pl = '—', dative_pl_possessive_3pl = '—', },	}, }