10,735
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit |
||
Line 16: | Line 16: | ||
return m_stem.getNounStem(shifted) | return m_stem.getNounStem(shifted) | ||
end | |||
function break_adj(adj) | |||
local C = "bcdðfghħjĵkķlmnņpqrsștvwxzþ°" | |||
local temp = adj | |||
temp = mw.ustring.gsub(temp, "([" .. C .. "])([" .. C .. "])íș$", "%1%2ieș") | |||
temp = mw.ustring.gsub(temp, "(°)", "") | |||
temp = mw..gsub(temp, "(íș)$", "jeș") | |||
temp = mw..gsub(temp, "(úș)$", "uoș") | |||
temp = mw..gsub(temp, "(ýș)$", "yeș") | |||
return temp | |||
end | end | ||
Line 22: | Line 35: | ||
local stems = get_stems(args) | local stems = get_stems(args) | ||
local adj = args['adj'] | local adj = args['adj'] | ||
local adj_broken = break_adj(adj) | |||
return adj | return adj |