Thread:User talk:CodeCat/boa/reply (12)

I guess I have a working solution, albeit a bit patch-like. I think you should rewrite the lines 180 to 193 in the nominals module such that they are only applied to those declension classes in which the i>j -change actually takes place. That would mean the classes kala, katiska, laatikko, nalle, palvelu, paperi, risti, solakka and valo. In other classes (koira in the case of "boa") there's never such change. I mean these lines:

if not stems["par_pl"] and stems["pl"] then stems["par_pl"] = {} for _, stem in ipairs(stems["pl"]) do			-- If the plural stem ends in a vowel + i, then replace the i with j			if mw.ustring.find(stem, "[aeiouyäö]i$") then require("Module:debug").track("fi-nominals/i-j") table.insert(stems["par_pl"], (mw.ustring.gsub(stem, "i$", "j"))) else table.insert(stems["par_pl"], stem) end end end