Module:User:BajookThug/pa-noun-f-ii

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


local p = {}

function p.declension(frame)
    local title = mw.title.getCurrentTitle().text
    local base = title:gsub("ੀ$", "")  -- Remove trailing ੀ if exists
    
    -- Handle case where title doesn't end with ੀ
    if base == title then
        return '<strong class="error">Error: Page name must end with \'\'</strong>'
    end
    
    return frame:expandTemplate{
        title = "pa-decl-noun",
        args = {
            title,         -- direct singular
            base .. "ੀਆਂ", -- direct plural
            title,         -- oblique singular
            base .. "ੀਆਂ", -- oblique plural
            base .. "ੀਏ",  -- vocative singular
            base .. "ੀਓ",  -- vocative plural
            base .. "ੀਓਂ", -- ablative singular
            base .. "ੀਆਂ", -- ablative plural
            "—", "—", "—", "—"  -- other cases
        }
    }
end

return p