This commit is contained in:
vvollo 2021-10-04 22:52:10 +03:00 committed by GitHub
parent 66ed98e146
commit bd274293aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -338,6 +338,7 @@ local function gram_score(an, g)
g = gram_norm(g)
if an["фам"] then score = score - 0.1 end
if an["арх"] then score = score - 0.1 end
if not g["од"] and not g["но"] and an["од"] and not an["но"] then score = score - 0.1 end
for _, vv in ipairs(g or {}) do
if vv:sub(1, 1) == '~' then
vv = vv:sub(2)
@ -400,6 +401,14 @@ lang = { yo = false,
"деревьях/пр";
"деревьям/дт";
};
["листья/мр,но,мн,С"] = {
"листья/им";
"листья/вн";
"листьев/рд";
"листьями/тв";
"листьях/пр";
"листьям/дт";
};
["дерево/ср,но,С"] = {
"дерево/им", "деревья/им,мн";
"дерево/вн", "деревья/вн,мн";

View File

@ -605,9 +605,9 @@ end
function mrd:dict(dict, word)
if not dict then return end
local tab = {}
local w, hints = str_hint(word)
local wrd, hints = str_hint(word)
hints = str_split(hints, ",")
local tt = dict[w]
local tt = dict[wrd]
if not tt then
return