跳转到内容

模組:Ne-conj

維基詞典,自由的多語言詞典


local export = {}
local m_translit = require("Module:ne-translit")
local m_utilities = require("Module:ne-utilities")

local gsub = mw.ustring.gsub
local sub = mw.ustring.sub
local match = mw.ustring.match
local len = mw.ustring.len

local comb_list = {
	["्अ"] = "‍", 
	["्आ"] = "ा", 
	["्इ"] = "ि",
	["्ई"] = "ी",
	["्ए"] = "े", 
	["्उ"] = "ु", 
	["्ऊ"] = "ू",
	["्ओ"] = "ो", 
	["्ऐ"] = "ै", 
	["्औ"] = "ौ",
    ["उअ"] = "ऊ",
    ["उa"] = "ऊ",
    ["आa"] = "आऊ",
    ["ाअ"] = "ाऊ",
    ["ाa"] = "ाऊ",
    ["्क्"] = "्कि",
    ["्र्"] = "्रि",
    ["्ख्"] = "्खि",
    ["्म्"] = "्मि",
    ["्ल्"] = "्लि",
    ["्झ्"] = "्झि",
    ["अ"] = "",
    ["्a"] = "",
    ["ोa"] = "ोऊ",
    ["a"] = "अ",

}

local function wordify_info(text)
	text = gsub(text, "्.", comb_list)
    text = gsub(text, "उ.", comb_list)
    text = gsub(text, ".a", comb_list)
    text = gsub(text, "ा.", comb_list)
    text = gsub(text, "ो.", comb_list)
    text = gsub(text, "्.्", comb_list)
    text = gsub(text, ".्", comb_list)
    text = gsub(text, ".््.", comb_list)

	text = m_utilities.link(text)
	return text
end

local function wordify(text)
	local words, translits = {}, {}
	text = gsub(text, "्.", comb_list)
    text = gsub(text, "उ.", comb_list)
    text = gsub(text, ".a", comb_list)
    text = gsub(text, "ा.", comb_list)
    text = gsub(text, "ो.", comb_list)
    text = gsub(text, "्.्", comb_list)
    text = gsub(text, ".", comb_list)
    text = gsub(text, ".्", comb_list)
    text = gsub(text, ".््.", comb_list)
	for word in mw.text.gsplit(text, ",") do
		table.insert(words, ne_format(word))
		table.insert(translits, m_translit.tr(word, "ne", "Deva"))
	end
	text = table.concat(words, ", ") .. "<br><small style=\"color:#888\">" ..
		table.concat(translits, ", ") .. "</small>"
	return text
end

function ne_format(text)
	text = ('<span lang="ne" class="Deva">[[%s]]</span>'):format(text)
	return text
end

local function inj_2s(stem, neg)
	local inj_2s_rpl = {
		["दि"] = { "दे", "दिएस्" },
		["लि"] = { "ले", "लिएस्" },
		["ग"] = { "जा", "गएस्" },
		["आउ"] = { "आ", "आएस्" },
		["बिर्स"] = { "बिर्सी" },
		["बिग्र"] = { "बिग्री" },
		["रह्"] = { "रही" },
		["हेर््"] = { "हेर्" },
        ["फेर््"] = { "फेर्" },
        ["हो"] = { "भई", "भएस्" },
		--["दुहो"] = { "दो", "दोएस्" },
	}
	words = inj_2s_rpl[stem] or { stem, stem .. "एस्", stem .. "ए" }
	if neg then
		return "न" .. table.concat(words, ",न")
	else
		return table.concat(words, ",")
	end
end

local function inj_2p(stem, class, neg)
	local inj_2p_rpl = {
		["दि"] = { "देऊ", "देओ", "दिए" },
		["लि"] = { "लेऊ", "लेओ", "लिए" },
		["ग"] = { "जाऊ", "जाओ", "गए" },
		["आउ"] = { "आऊ", "आओ", "आए" },
		["बिर्स"] = { "बिर्स" },
		["बिग्र"] = { "बिग्र" },
		["रह्"] = { "रह" },
        ["हेर््"] = { "हेर‍" },
        ["फेर््"] = { "फेर‍" },
        ["हो"] = { "भऊ", "भओ", "भए" },
		--["दुहो"] = { "दोऊ", "दोओ", "दोए" },
	}
words = inj_2p_rpl[stem] or (class == 1 and { stem .. "अ", stem .. "ए" } or { stem .. "ऊ", stem .. "ओ", stem .. "ए" } )
if neg then
		if stem == "आउ" then
			return "न" .. table.concat(words, ",न") .. "आइज"
		else
			return "न" .. table.concat(words, ",न")
		end
	else
		return table.concat(words, ",")
	end
end

local function imp_2s(stem, neg)
	local imp_2s_rpl = {
		["दि"] = { "दे" },
		["लि"] = { "ले" },
		["ग"] = { "जा" },
		["आउ"] = { "आ" },
		["बिर्स"] = { "बिर्सी" },
		["बिग्र"] = { "बिग्री" },
		["रह्"] = { "रही" },
        ["हेर््"] = { "हेर्" },
        ["फेर््"] = { "फेर्" },
        ["हो"] = { "भई" },
        --["दुहो"] = { "दो" },
	}
	words = imp_2s_rpl[stem] or { stem }
	if neg then
		return "न" .. table.concat(words, ",न")
	else
		return table.concat(words, ",")
	end
end
local function imp_2p(stem, class, neg)
	local imp_2p_rpl = {
		["दि"] = { "देऊ", "देओ" },
		["लि"] = { "लेऊ", "लेओ" },
		["ग"] = { "जाऊ", "जाओ" },
		["आउ"] = { "आऊ", "आओ" },
		["बिर्स"] = { "बिर्स" },
		["बिग्र"] = { "बिग्र" },
		["रह्"] = { "रह" },
        ["हेर््"] = { "हेर‍" },
        ["फेर््"] = { "फेर‍" },
        ["हो"] = { "भऊ", "भओ" },
       --["दुहो"] = { "दोऊ", "दोओ" },
	}
	words = imp_2p_rpl[stem] or (class == 1 and { stem .. "अ" } or { stem .. "a", stem .. "ओ"} )
if neg then
		if stem == "आउ" then
			return "न" .. table.concat(words, ",न") .. "आइज"
		else
			return "न" .. table.concat(words, ",न")
		end
	else
		return table.concat(words, ",")
	end
end

local function fut_indef(stem_1, stem_2, pos, class, alt_neg)
	local fut_indef_rpl = {
		["1sm"] = { "उँला" },
		["1sf"] = { "उँली" },
		["1p"] = { "औँला" },
		["2sm"] = { "लास्" },
		["2sf"] = { "लिस्" },
		["2pm"] = { "औला", "लाउ" },
		["2pf"] = { "औली", "लेउ" },
		["3sm"] = { "ला" },
		["3sf"] = { "ली" },
		["3pm"] = { "लान्", "नन्" },
		["3pf"] = { "लिन्", "निन्" },
	}
	local fut_indef_rpl_c2 = {
		["1sm"] = { "उँला" },
		["1sf"] = { "उँली" },
		["1p"] = { "औँला" },
		["2sm"] = { "एलास्" },
		["2sf"] = { "एलिस्" },
		["2pm"] = { "औला", "एलाउ" },
		["2pf"] = { "औली", "एलेउ" },
		["3sm"] = { "एला" },
		["3sf"] = { "एली" },
		["3pm"] = { "एलान्", "एनन्" },
		["3pf"] = { "एलिन्", "एनिन्" },
	}
	local fut_indef_rpl_c3_au = {
		["1sm"] = { stem_2 .. "उँला" },
		["1sf"] = { stem_2 .. "उँली" },
		["1p"] = { stem_2 .. "औँला" },
		["2sm"] = { stem_1 .. "लास्" },
		["2sf"] = { stem_1 .. "लिस्" },
		["2pm"] = { stem_2 .. "औला", stem_1 .. "लाउ" },
		["2pf"] = { stem_2 .. "औली", stem_1 .. "लेउ" },
		["3sm"] = { stem_1 .. "ला" },
		["3sf"] = { stem_1 .. "ली" },
		["3pm"] = { stem_1 .. "लान्", stem_1 .. "नन्" },
		["3pf"] = { stem_1 .. "लिन्", stem_1 .. "निन्" },
	}
	na = ""
	if alt_neg then
		na = "न"
	end
	if class == 1 or match(stem_1, "ा$") then
		return na .. stem_1 .. table.concat(fut_indef_rpl[pos], "," .. na .. stem_1)
	elseif class == 2 then
		if stem_1 == "दि" or stem_1 == "लि" then
			if not match(pos, "^1") then
				stem_1 = gsub(stem_1, "..", { ["दि"] = "दे", ["लि"] = "ले" } )
			end
			return na .. stem_1 .. table.concat(fut_indef_rpl[pos], "," .. na .. stem_1)
		else
			return na .. stem_1 .. table.concat(fut_indef_rpl_c2[pos], "," .. na .. stem_1)
		end
	elseif count_c(stem_1) == 1 and match(stem_1, "ु$") then
		return na .. stem_2 .. table.concat(fut_indef_rpl[pos], "," .. na .. stem_2)
	else
		return na .. table.concat(fut_indef_rpl_c3_au[pos], "," .. na)
	end
end

local function fut_indef_neg(stem_1, stem_2, pos, class)
	local fut_indef_neg_rpl = {
		["1s"] = "ओइनँ",
		["1p"] = "ओइनौँ",
		["2s"] = "ओइनस्",
		["2p"] = "ओइनौ",
		["3s"] = "ओइन",
		["3p"] = "ओइनन्",
	}
	if class == 1 or match(stem_1, "ा$") or class == 2 then
		return stem_1 .. fut_indef_neg_rpl[pos]
	else
		return stem_2 .. fut_indef_neg_rpl[pos]
	end
end

function count_c(text)
	return len(gsub(text, "[^कखगघङचछजझञटठडढतथदधपफबभशषसयरलवहणनम]", "")) 
end

function export.show(frame)
	local args = frame:getParent().args
	local word = args[1] or mw.title.getCurrentTitle().text
	local irreg = args["irreg"] or false
	local stem_2 = args["stem_2"] or false
	local i_stem = args["i"] or false
	local a_stem = args["a"] or false
	local passive = args["p"] or false
	local causative = args["c"] or false
	local class = 1
	local stem_1, stem_1_n = "", ""

	if match(word, "‍") then
		error("It contains the invisible character (zero-width joiner: 0x200D).")
	end
	
	if not match(word, "नु$") then
		error("Please ensure inputted word is a verb in its ''nu''-infinitive form.")
	end
	
	denu = sub(word, 1, -3)
	denu_translit = m_translit.tr(denu, "ne", "Deva")
	
	-- aau-: (1) aau-, (2) aa-, (3) aauṁ-
	if match(denu_translit, "([āi])u$") then
		class = 3
		stem_1 = denu
		stem_2 = sub(denu, 1, -2)
		stem_1_n = denu .. "ँ"
	elseif match(denu_translit, "[^aāiīuūeo]u$") then
		class = 3

		-- dhu-: (1) dhu-, (2) dho-, (3) dhun-
		if count_c(denu) == 1 then
			stem_1 = denu
			stem_2 = sub(denu, 1, -2) .. "ो"
			stem_1_n = denu .. "न्"
		
		-- duhu-: (1) duhu-, (2) duh-, (3) duh-
		else
			stem_1 = denu
			stem_2 = sub(denu, 1, -2) .. "ो"
			stem_1_n = denu
		end
	
	-- birsa-: (1) birsa-, (2) birs-, (3) birsan-
	elseif match(denu_translit, "[^aāiīuūeo]a$") then
		class = 3
		stem_1 = denu
		stem_2 = denu .. "्"
		stem_1_n = denu .. "न्"
	
	-- jaa-: (1) jaa-, (2) ga-, (3) jaan-
	elseif denu_translit == "jā" or irreg then
		class = 3
		stem_1 = denu
		stem_2 = stem_2 or gsub(denu, "जा", "ग")
		stem_1_n = denu .. "न्"
	
	-- khaa-: (1) khaa-, (2) khaa-, (3) khaan-
	elseif match(denu_translit, "[aāiīuūeo]$") then
		class = 2
		stem_1 = denu
		stem_2 = stem_1
		stem_1_n = denu .. "न्"
	
	-- gar-: (1) gar-, (2) gar-, (3) gar-
	else
		stem_1 = denu
		stem_2 = stem_1
		stem_1_n = stem_1
		
	end
	
	stem_1_n_2 = gsub(stem_1_n, "न्$", "ँ")
	
	info = [=[

<div class="NavFrame" style="background-color:#e3f3ff">
<div class="NavHead" style="width:100%" >]=] .. m_utilities.link(word) .. [=[ 的變位</div>
<div class="NavContent">

{| align=left style="margin-left:0.5em; margin-bottom:0.5em; border:1px solid #AAAAAA; width:50em; border-collapse:collapse; text-align:center" cellpadding="5" rules="all"
|-
!colspan=5 style="background-color:#F2F3FF"| 資訊
|-]=]

	if class == 3 then
		info = info .. [=[

! colspan="3" style="background-color:#FAF0E6"|''主要詞幹''
|colspan="2" style="background-color:#FFF0F5"|]=] .. m_utilities.link(stem_1 .. "-") .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|''次要詞幹''
|colspan="2" style="background-color:#FFF0F5"|]=] .. m_utilities.link(stem_2 .. "-") .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|''變位種類''
|colspan="2" style="background-color:#FFF0F5"|3<sup>rd</sup> conjugation: vowel-ending stem, irregular.]=]

	elseif class == 2 then
		info = info .. [=[

! colspan="3" style="background-color:#FAF0E6"|''詞幹''
|colspan="2" style="background-color:#FFF0F5"|]=] .. m_utilities.link(denu .. "-") .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|''變位種類''
|colspan="2" style="background-color:#FFF0F5"|2<sup>nd</sup> conjugation: vowel-ending stem, regular.]=]

	else
		info = info .. [=[

! colspan="3" style="background-color:#FAF0E6"|''詞幹''
|colspan="2" style="background-color:#FFF0F5"|]=] .. m_utilities.link(denu .. "-") .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|''變位種類''
|colspan="2" style="background-color:#FFF0F5"|1<sup>st</sup> conjugation: consonant-ending stem, regular.]=]

	end
	
	if i_stem or a_stem or passive or causative then
		info = info .. [=[
		
|-
!colspan=5 style="background-color:#F2F3FF"|Derivatives]=]

		if i_stem then
			info = info .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|''I-詞幹''<br><small>(Passive)</small>
|colspan="2" style="background-color:#FFF0F5"|]=] .. wordify_info(stem_2  .. "इनु")
	
		end
		if a_stem then
			info = info .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|''A-詞幹''<br><small>(Causative/Denominative)</small>
|colspan="2" style="background-color:#FFF0F5"|]=] .. wordify_info(stem_2  .. "आउनु")
	
		end
		if passive then
			info = info .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|'''被動'''
|colspan="2" style="background-color:#FFF0F5"|]=] .. wordify_info(passive)
	
		end
		if causative then
			info = info .. [=[

|-
! colspan="3" style="background-color:#FAF0E6"|'''使動'''
|colspan="2" style="background-color:#FFF0F5"|]=] .. wordify_info(causative)
	
		end
	end
		

	info = info .. [=[

|-
! colspan=5 style="background-color:#F2F3FF"|Non-finite forms
|-
! colspan="3" style="background-color:#FAF0E6"| ''Infinitives''
| colspan="2" style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_1 .. "नु") .. "<br>" .. wordify_info(stem_1 .. "न") .. [=[

|- style="height:2em"
!rowspan="14" style="background-color:#FAF0E6"| ''分詞''
!colspan="2" style="background-color:#FAF0E6"| 
|style="background-color:#FAF0E6" | '''''Affirmative''''' (+)
|style="background-color:#FAF0E6"| '''''Negative''''' (–)
|-
!colspan="2" style="background-color:#FAF0E6"| ''Conjunctive''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_2 .. "एर") .. "<br>" .. wordify_info(stem_2 .. "ई") .. "<br>" .. wordify_info(stem_2 .. "ई<कन>") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_2 .. "एर") .. "<br>" .. wordify_info("न" .. stem_2 .. "ई") .. "<br>" .. wordify_info("न" .. stem_2 .. "ई<कन>") .. [=[

|-
!rowspan="4" style="background-color:#FAF0E6"| ''1<sup>st</sup> Perfect''
!style="background-color:#FAF0E6"| ''m. sing.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_2 .. "एको") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_2 .. "एको") .. [=[

|-
!style="background-color:#FAF0E6"| ''f. sing.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_2 .. "एकी") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_2 .. "एकी") .. [=[

|-
!style="background-color:#FAF0E6"| ''pl.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_2 .. "एका") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_2 .. "एका") .. [=[

|-
!style="background-color:#FAF0E6"| ''high-resp.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(denu .. "नुभएको") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. denu .. "नुभएको") .. [=[

|-
!rowspan="2" style="background-color:#FAF0E6"| ''2<sup>nd</sup> Perfect''
!style="background-color:#FAF0E6"| ''normal''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_2 .. "ए") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_2 .. "ए") .. [=[

|-
!style="background-color:#FAF0E6"| ''high-resp.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(denu .. "नुभए") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. denu .. "नुभए") .. [=[

|-
!rowspan="2" style="background-color:#FAF0E6"| ''Imperfect''
!style="background-color:#FAF0E6"| ''normal''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_1 .. "दा") .. "<br>" .. wordify_info(stem_1 .. "दै") .. "<br>" .. wordify_info(stem_1 .. "दो") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_1 .. "दा") .. "<br>" .. wordify_info("न" .. stem_1 .. "दै") .. "<br>" .. wordify_info("न" .. stem_1 .. "दो") .. [=[

|-
!style="background-color:#FAF0E6"| ''high-resp.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(denu .. "नुहुँदा") .. "<br>" .. wordify_info(denu .. "नुहुँदै") .. "<br>" .. wordify_info(denu .. "नुहुँदो") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. denu .. "नुहुँदा") .. "<br>" .. wordify_info("न" .. denu .. "नुहुँदै") .. "<br>" .. wordify_info("न" .. denu .. "नुहुँदो") .. [=[

|-
!rowspan="2" style="background-color:#FAF0E6"| ''Infinitival''
!style="background-color:#FAF0E6"| ''normal''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(stem_1 .. "ने") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. stem_1 .. "ने") .. [=[

|-
!style="background-color:#FAF0E6"| ''high-resp.''
|style="background-color:#FFF0F5"| ]=] .. wordify_info(denu .. "नुहुने") .. [=[
||style="background-color:#FFF0F5"| ]=] .. wordify_info("न" .. denu .. "नुहुने") .. [=[

|-
!colspan="2" style="background-color:#FAF0E6"| ''Absolutive''
|colspan="2" style="background-color:#FFF0F5"| ]=] .. (stem_1 == "जा" and wordify_info(stem_1 .. "इ") .. "<br>" or "") .. wordify_info(stem_2 .. "इ") .. [=[

|}]=]

	form = info .. [=[

{| border="1" color="#cdcdcd" style="border-collapse:collapse; border:1px solid #555555; background:#fdfdfd; width:100%; text-align:center" class="inflection-table"
|- style="height:3em"
! colspan="16" style="background:#bcbcbc" | Finite forms of ]=] .. wordify_info(word) .. [=[

|-
! colspan="3" style="background:#cdcdcd" | Person
! colspan="4" style="background:#cdcdcd; height:3em" | 1<sup>st</sup>
! colspan="4" style="background:#cdcdcd" | 2<sup>nd</sup>
! colspan="4" style="background:#cdcdcd" | 3<sup>rd</sup>
! style="background:#cdcdcd" | 2<sup>nd</sup> & 3<sup>rd</sup>
|-
! rowspan="2" colspan="3" style="background:#cdcdcd" | Pronoun
! colspan="2" style="background:#cdcdcd" | ]=] .. ne_format("म") .. [=[<br><small><span style="font-family:Times New Roman">SING.</span></small>
!! colspan="2" style="background:#cdcdcd" | ]=] .. ne_format("हामी") .. [=[<br><small><span style="font-family:Times New Roman">PL.</span></small>
!! colspan="2" style="background:#cdcdcd" | ]=] .. ne_format("तँ") .. [=[<br><small><span style="font-family:Times New Roman">LOW-RESP.<br>SING.</span></small>
!! colspan="2" style="background:#cdcdcd" | ]=] .. ne_format("तिमी") .. [=[<br><small><span style="font-family:Times New Roman">MID-RESP.</span></small>
!! colspan="2" style="background:#cdcdcd" | ]=] .. ne_format("ऊ") .. [=[<br><small><span style="font-family:Times New Roman">LOW-RESP.<br>SING.</span></small>
!! colspan="2" style="background:#cdcdcd" | ]=] .. ne_format("उनी") .. [=[<br><small><span style="font-family:Times New Roman">MID-RESP.</span></small>
!! rowspan="2" style="background:#cdcdcd" | ]=] .. ne_format("तपाईं") .. " / " .. ne_format("ऊहाँ") .. [=[<br><small><span style="font-family:Times New Roman">HIGH-RESP.</span></small>

|-
! style="background:#cdcdcd" | ''m''
! style="background:#cdcdcd" | ''f''
! style="background:#cdcdcd" | ''m''
! style="background:#cdcdcd" | ''f''
! style="background:#cdcdcd" | ''m''
! style="background:#cdcdcd" | ''f''
! style="background:#cdcdcd" | ''m''
! style="background:#cdcdcd" | ''f''
! style="background:#cdcdcd" | ''m''
! style="background:#cdcdcd" | ''f''
! style="background:#cdcdcd" | ''m''
! style="background:#cdcdcd" | ''f''
|-
! colspan="2" rowspan="]=] .. (class == 1 and "2" or "3") .. [=[" style="background:#cdcdcd" | 現在時
! style="height:7em; width:1.5em; background:#cdcdcd" | +
| colspan="2" | ]=] .. wordify(stem_1_n .. "छु") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1_n .. "छौँ") .. [=[
|| ]=] .. wordify(stem_1_n .. "छस्") .. [=[
|| ]=] .. wordify(stem_1_n .. "छेस्") .. [=[
|| ]=] .. wordify(stem_1_n .. "छौ") .. [=[
|| ]=] .. wordify(stem_1_n .. "छ्यौ") .. [=[
|| ]=] .. wordify(stem_1_n .. "छ") .. [=[
|| ]=] .. wordify(stem_1_n .. "छे") .. [=[
|| ]=] .. wordify(stem_1_n .. "छन्") .. [=[
|| ]=] .. wordify(stem_1_n .. "छिन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुन्छ") .. (class == 1 and ([=[

|-
! style="height:7em; background:#cdcdcd" | –
| colspan="2" | ]=] .. wordify(stem_1 .. "दिनँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "दैनौँ") .. [=[
|| ]=] .. wordify(stem_1 .. "दैनस्") .. [=[
|| ]=] .. wordify(stem_1 .. "दिनेस्") .. [=[
|| ]=] .. wordify(stem_1 .. "दैनौ") .. [=[
|| ]=] .. wordify(stem_1 .. "दिनौ") .. [=[
|| ]=] .. wordify(stem_1 .. "दैन") .. [=[
|| ]=] .. wordify(stem_1 .. "दिने") .. [=[
|| ]=] .. wordify(stem_1 .. "दैनन्") .. [=[
|| ]=] .. wordify(stem_1 .. "दिनन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुँदैन")) or ([=[

|-
! rowspan="2" style="background:#cdcdcd" | –
| style="height:7em" colspan="2" | ]=] .. wordify(stem_1_n_2 .. "दिनँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1_n_2 .. "दैनौँ") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनस्") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिनेस्") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनौ") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिनौ") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैन") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिने") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनन्") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिनन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुँदैन") .. [=[

|-
| style="height:7em" colspan="2" | ]=] .. wordify(stem_1 .. "न्नँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नौँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नौ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्न") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुन्न"))) .. [=[

|-
! rowspan="]=] .. (class == 1 and 6 or 7) .. [=[" style="background:#cdcdcd" | 過去時
! rowspan="2" style="background:#cdcdcd" | Simple
! style="height:7em; background:#cdcdcd" | +
| colspan="2" | ]=] .. wordify(stem_2 .. "एँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "यौँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "इस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "यौ") .. [=[
|| ]=] .. wordify(stem_2 .. "यो") .. [=[
|| ]=] .. wordify(stem_2 .. "ई") .. [=[
|| ]=] .. wordify(stem_2 .. "ए") .. [=[
|| ]=] .. wordify(stem_2 .. "इन्") .. [=[
|| ]=] .. wordify(denu .. "नुभयो") .. [=[

|-
! style="height:7em; background:#cdcdcd" | –
| colspan="2" | ]=] .. wordify(stem_2 .. "इनँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "एनौँ") .. [=[
|| ]=] .. wordify(stem_2 .. "एनस्") .. [=[
|| ]=] .. wordify(stem_2 .. "इनेस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "एनौ") .. [=[
|| ]=] .. wordify(stem_2 .. "एन") .. [=[
|| ]=] .. wordify(stem_2 .. "इने") .. [=[
|| ]=] .. wordify(stem_2 .. "एनन्") .. [=[
|| ]=] .. wordify(stem_2 .. "इनन्") .. [=[
|| ]=] .. wordify(denu .. "नुभएन") .. [=[

|-
! rowspan="]=] .. (class == 1 and 2 or 3) .. [=[" style="background:#cdcdcd" | Habitual
! style="height:7em; background:#cdcdcd" | +
| colspan="2" | ]=] .. wordify(stem_1_n .. "थेँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1_n .. "थ्यौँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1_n .. "थिस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1_n .. "थ्यौ") .. [=[
|| ]=] .. wordify(stem_1_n .. "थ्यो") .. [=[
|| ]=] .. wordify(stem_1_n .. "थी") .. [=[
|| ]=] .. wordify(stem_1_n .. "थे") .. [=[
|| ]=] .. wordify(stem_1_n .. "थिन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुन्थ्यो") .. [=[

|-
! rowspan="]=] .. (class == 1 and 1 or 2) .. [=[" style="height:7em; background:#cdcdcd" | –
| colspan="2" | ]=] .. wordify(stem_1_n_2 .. "दिनथेँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1_n_2 .. "दैनथ्यौँ") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनथिस्") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिनथिस्") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनथ्यौ") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिनथ्यौ") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनथ्यो") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनथी") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दैनथे") .. [=[
|| ]=] .. wordify(stem_1_n_2 .. "दिनथिन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुँदैनथ्यो") .. (class ~= 1 and [=[

|-
| colspan="2" | ]=] .. wordify(stem_1 .. "न्नथेँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नथ्यौँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नथिस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "न्नथ्यौ") .. [=[
|| ]=] .. wordify(stem_1 .. "न्नथ्यो") .. [=[
|| ]=] .. wordify(stem_1 .. "न्नथी") .. [=[
|| ]=] .. wordify(stem_1 .. "न्नथे") .. [=[
|| ]=] .. wordify(stem_1 .. "न्नथिन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुन्नथ्यो") or "") .. [=[

|-
! rowspan="2" style="background:#cdcdcd" | Unknown
! style="height:7em; background:#cdcdcd" | +
|| ]=] .. wordify(stem_2 .. "एछु") .. [=[
|| ]=] .. wordify(stem_2 .. "इछु") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "एछौँ") .. [=[
|| ]=] .. wordify(stem_2 .. "एछस्") .. [=[
|| ]=] .. wordify(stem_2 .. "इछेस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "एछौ") .. [=[
|| ]=] .. wordify(stem_2 .. "एछ") .. [=[
|| ]=] .. wordify(stem_2 .. "इछे") .. [=[
|| ]=] .. wordify(stem_2 .. "एछन्") .. [=[
|| ]=] .. wordify(stem_2 .. "इछिन्") .. [=[
|| ]=] .. wordify(denu .. "नुभएछ") .. [=[

|-
! style="height:7em; background:#cdcdcd" | –
|| ]=] .. wordify(stem_2 .. "एनछु") .. [=[
|| ]=] .. wordify(stem_2 .. "इनछु") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "एनछौँ") .. [=[
|| ]=] .. wordify(stem_2 .. "एनछस्") .. [=[
|| ]=] .. wordify(stem_2 .. "इनछेस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "एनछौ") .. [=[
|| ]=] .. wordify(stem_2 .. "एनछ") .. [=[
|| ]=] .. wordify(stem_2 .. "इनछे") .. [=[
|| ]=] .. wordify(stem_2 .. "एनछन्") .. [=[
|| ]=] .. wordify(stem_2 .. "इनछिन्") .. [=[
|| ]=] .. wordify(denu .. "नुभएनछ") .. [=[

|-
! rowspan="5" style="background:#cdcdcd" | Future
! rowspan="2" style="background:#cdcdcd" | Definite
! style="height:7em; background:#cdcdcd" | +
| colspan="2" | ]=] .. wordify(stem_1 .. "नेछु") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "नेछौँ") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछस्") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछेस्") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछौ") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछ्यौ") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछ") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछे") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछन्") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछिन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुनेछ")

	form = form .. [=[

|-
! style="height:7em; background:#cdcdcd" | –
| colspan="2" | ]=] .. wordify(stem_1 .. "नेछैनँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "नेछैनौँ") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछैनस्") .. [=[
|| ]=] .. wordify(stem_1 .. "नेछैनेस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "नेछैनौ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "नेछैन") .. [=[
|| colspan="2" | ]=] .. wordify(stem_1 .. "नेछैनन्") .. [=[
|| ]=] .. wordify(denu .. "नुहुनेछैन") .. [=[

|-
! rowspan="3" style="background:#cdcdcd" | Indefinite
! style="height:7em; background:#cdcdcd" | +
| ]=] .. wordify(fut_indef(stem_1, stem_2, "1sm", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "1sf", class)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef(stem_1, stem_2, "1p", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2sm", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2sf", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2pm", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2pf", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3sm", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3sf", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3pm", class)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3pf", class)) .. [=[
|| ]=] .. wordify(denu .. "नुहोला") .. [=[

|-
! rowspan="2" style="height:7em; background:#cdcdcd" | –
| colspan="2" | ]=] .. wordify(fut_indef_neg(stem_1, stem_2, "1s", class)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef_neg(stem_1, stem_2, "1p", class)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef_neg(stem_1, stem_2, "2s", class)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef_neg(stem_1, stem_2, "2p", class)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef_neg(stem_1, stem_2, "3s", class)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef_neg(stem_1, stem_2, "3p", class)) .. [=[
|| ]=] .. wordify(denu .. "नुहोओइन") .. [=[

|-
| ]=] .. wordify(fut_indef(stem_1, stem_2, "1sm", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "1sf", class, true)) .. [=[
|| colspan="2" | ]=] .. wordify(fut_indef(stem_1, stem_2, "1p", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2sm", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2sf", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2pm", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "2pf", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3sm", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3sf", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3pm", class, true)) .. [=[
|| ]=] .. wordify(fut_indef(stem_1, stem_2, "3pf", class, true)) .. [=[
|| ]=] .. wordify("न" .. denu .. "नुहोला") .. [=[

|-
! rowspan="2" colspan="2" style="background:#cdcdcd" | Injunctive
! style="height:7em; background:#cdcdcd" | +
| colspan="2" | ]=] .. wordify(stem_2 .. "ऊँ") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "औँ," .. stem_2 .. "ऊँ") .. [=[
|| colspan="2" | ]=] .. wordify(inj_2s(stem_2)) .. [=[
|| colspan="2" | ]=] .. wordify(inj_2p(stem_2, class)) .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "ओस्") .. [=[
|| colspan="2" | ]=] .. wordify(stem_2 .. "ऊन्") .. [=[
|| ]=] .. wordify(denu .. "नुहोओस्") .. [=[

|-
! style="height:7em; background:#cdcdcd" | –
| colspan="2" | ]=] .. wordify("न" .. stem_2 .. "ऊँ") .. [=[
|| colspan="2" | ]=] .. wordify("न" .. stem_2 .. "औँ,न" .. stem_2 .. "ऊँ") .. [=[
|| colspan="2" | ]=] .. wordify(inj_2s(stem_2, true)) .. [=[
|| colspan="2" | ]=] .. wordify(inj_2p(stem_2, class, true)) .. [=[
|| colspan="2" | ]=] .. wordify("न" .. stem_2 .. "ओस्") .. [=[
|| colspan="2" | ]=] .. wordify("न" .. stem_2 .. "ऊन्") .. [=[
|| ]=] .. wordify("न" .. denu .. "नुहोओस्") .. [=[

|-
! rowspan="2" colspan="2" style="background:#cdcdcd" | 不定式
! style="height:7em; background:#cdcdcd" | +
| colspan="2" | —
| colspan="2" | —
| colspan="2" | ]=] .. wordify(imp_2s(stem_2)) .. [=[
|| colspan="2" | ]=] .. wordify(imp_2p(stem_2, class)) .. [=[
|| colspan="2" | —
| colspan="2" | —
|| ]=] .. wordify(denu .. "नुहोस्," .. denu .. "नोस्") .. [=[

|-
! style="height:7em; background:#cdcdcd" | –
| colspan="2" | —
| colspan="2" | —
| colspan="2" | ]=] .. wordify(imp_2s(stem_2, true)) .. [=[
|| colspan="2" | ]=] .. wordify(imp_2p(stem_2, class, true)) .. [=[
|| colspan="2" | —
| colspan="2" | —
|| ]=] .. wordify("न" .. denu .. "नुहोस्,न" .. denu .. "नोस्") .. [=[

|}</div></div>]=]

	return form
end

return export