Module:User:Njardarlogar/nn-noun-common-irreg

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


local export = {}

local m_headword = require("Module:headword")
local lang = require("Module:languages").getByCode("nn")

function export.main(frame)
    args = frame:getParent().args
    PAGENAME = mw.title.getCurrentTitle().text
    length = PAGENAME:len()
    
    t5 = PAGENAME:sub(length-4, length)
    t4 = PAGENAME:sub(length-3, length)
    t3 = PAGENAME:sub(length-2, length)
    t2 = PAGENAME:sub(length-1, length)
             
    if t4 == 'mann' then
    	p1 = PAGENAME:gsub(t4, '')
    	gender = 'm'
    	definite_singular = p1 .. 'mannen'
    	indefinite_plural = p1 .. 'menn'
        definite_plural = p1 .. 'mennene'        
    else
        return "<span style=\"color:Red\">'''The noun ''" .. PAGENAME .. "'' is not supported by this template.'''</span> Use {{]|<gender>|<definite singular>|etc.}} instead" 
    end

    local inflections = { {label = 'definite singular', definite_singular},
    					{label = 'indefinite plural', indefinite_plural}, 
    					{label = 'definite plural', definite_plural}}    
    return
        m_headword.full_headword(lang, nil, nil, nil, {gender}, inflections)
end

return export