Module:av-noun/data
Appearance
- This module lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local decl = {}
local lang = require("Module:languages").getByCode("av")
local m_links = require("Module:links")
local m_utilities = require("Module:utilities")
local rsplit = mw.text.split
local rfind = mw.ustring.find
local rmatch = mw.ustring.match
local rsubn = mw.ustring.gsub
-- version of rsubn() that discards all but the first return value
local function rsub(term, foo, bar)
local retval = rsubn(term, foo, bar)
return retval
end
local function glossary_link(anchor, text)
text = text or anchor
return "[[Appendix:Glossary#" .. anchor .. "|" .. text .. "]]"
end
local current_title = mw.title.getCurrentTitle().nsText
local NAMESPACE = current_title.nsText
local PAGENAME = current_title.text
decl["1"] = function(data, args)
local stem1 = args[1]
local stem2 = args[2]
-- normal 1st
data.forms["abs_sg"] = stem1 .. "ав"
data.forms["erg_sg"] = stem1 .. "ас"
data.forms["gen_sg"] = stem1 .. "асул"
data.forms["dat_sg"] = stem1 .. "асие"
data.forms["ins_sg"] = stem1 .. "асдалъун"
data.forms["abs_pl"] = stem1 .. "ал"
data.forms["erg_pl"] = stem1 .. "аз"
data.forms["gen_pl"] = stem1 .. "азул"
data.forms["dat_pl"] = stem1 .. "азе"
data.forms["ins_pl"] = stem1 .. "аздалъун"
end
return decl
-- For Vim, so we get 4-space tabs
-- vim: set ts=4 sw=4 noet: