Module:User:Wikitiki89/ru-pre-reform-gen

Hello, you have come here looking for the meaning of the word Module:User:Wikitiki89/ru-pre-reform-gen. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Wikitiki89/ru-pre-reform-gen, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Wikitiki89/ru-pre-reform-gen in singular and plural. Everything you need to know about the word Module:User:Wikitiki89/ru-pre-reform-gen you have here. The definition of the word Module:User:Wikitiki89/ru-pre-reform-gen will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Wikitiki89/ru-pre-reform-gen, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This is a private module sandbox of Wikitiki89, for his own experimentation. Items in this module may be added and removed at Wikitiki89's discretion; do not rely on this module's stability.


local export = {}
local temp = {}
local temp_d = nil
local extra = {}
local extra_d = nil

local single_subs = {
     = "и",
     = "и",
     = "и",
     = "и",
     = "И",
     = "И",
     = "И",
     = "И",
     = "е",
     = "Е",
     = "ф",
     = "Ф",
}

local old_to_new = function(s)
    s = mw.ustring.gsub(s, ".", single_subs)
    s = mw.ustring.gsub(s, "ъи", "ы")
    s = mw.ustring.gsub(s, "", "Ы")
    s = mw.ustring.gsub(s, "$", "")
    s = mw.ustring.gsub(s, "%f", "")
    return s
end

function export.gen(frame)
    local args = frame:getParent().args
    local realword = (args ~= "" and args) or mw.title.getCurrentTitle().subpageText
    args = args or realword
    args = args or (args ~= "" and args) or "noun"
    args = mw.ustring.gsub(args, "^.", mw.ustring.upper, 1)
    args = args or old_to_new(realword)
    args = mw.ustring.gsub(args or "", "!", "|")
    args = mw.ustring.gsub(args or "", "!", "|")
    args = mw.ustring.gsub(args or "", "!", "|")
    -- local f = extra] or extra_d; f(args)
    return require("Module:string utilities").format(temp] or temp_d, args)
end

temp = [===[==Russian==

===Adjective===
{\op}{\op}ru-adj|{word}{h}{\cl}{\cl}

# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}

====Declension====
{\op}{\op}ru-adj-old|{word}{d}{\cl}{\cl}]===]

temp = [===[==Russian==

===Adverb===
{\op}{\op}ru-adv|{word}{h}{\cl}{\cl}

# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}]===]

temp = [===[==Russian==

===Proper noun===
{\op}{\op}ru-proper noun+|old=1{p}|{word}{d}{h}{\cl}{\cl}

# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}

====Declension====
{\op}{\op}ru-noun-table|old=1{p}|{word}{d}|n=sg{\cl}{\cl}]===]

temp = [===[==Russian==

===Noun===
{\op}{\op}ru-noun+|old=1{p}|{word}{d}{h}{\cl}{\cl}

# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}

====Declension====
{\op}{\op}ru-noun-table|old=1{p}|{word}{d}{\cl}{\cl}]===]

temp = [===[==Russian==

===Verb===
{\op}{\op}ru-verb|{word}{h}{\cl}{\cl}

# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}]===]

temp_d = [===[==Russian==

==={Pos}===
{\op}{\op}head|ru|{pos}|head={word}{h}{\cl}{\cl}

# {\op}{\op}ru-pre-reform|{new}{\cl}{\cl}]===]

extra = function(args)
    _, _, args, args = mw.ustring.find(args, "^(.*)(.)$")
    if args then
        args = args
        args = "|" .. args .. args
    end
    if args then
        args = args
    end
    args = args or (args ~= "" and args) or ""
end

extra = extra

extra = function(args)
    _, _, args, args = mw.ustring.find(args, "^(.-)(?)$")
    args = args or (args ~= "" and args) or ""
    if args ~= "" and args ~= "Ь" then
        args = "ь"
    end
end

extra_d = function(args)
end

return export