Модул:Tg: Тафовут байни таҳрирҳо
Content deleted Content added
No edit summary |
No edit summary |
||
Сатри 4:
local M={}
function M.
end
function M.
local w = mw.ustring.match(phr,"[%p%s%c]*(.-)[%p%s%c]") or mw.ustring.match(phr,"[%p%s%c]*(.-)$")
Сатри 114:
end
function M.locative(p) -- Возможно, будет когда-то заменено на функционал mw.language('
local word=p.args[1];
local locend={['а']='е', ['я']='е', ['й']='е', ['ы']="ах", ['ь']='и'}; --the last one is disputed: most Russian cities ending with -ь are 3rd declesion, but some foreign ones are 2nd decl., so -е should be returned
Сатри 123:
elseif ec=='я' then return mw.ustring.sub(word,1,-2)..'е'
elseif mw.ustring.match(ec,'['..cons..']') then return word..'е'
elseif ec=='
if mw.ustring.match(word,'[оеё]во$') then return mw.ustring.sub(word,1,-2)..'е'
else return word
|