mirror of https://github.com/goraph/17rooms.git
2.2.2
This commit is contained in:
parent
66ed98e146
commit
bd274293aa
|
@ -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,
|
|||
"деревьях/пр";
|
||||
"деревьям/дт";
|
||||
};
|
||||
["листья/мр,но,мн,С"] = {
|
||||
"листья/им";
|
||||
"листья/вн";
|
||||
"листьев/рд";
|
||||
"листьями/тв";
|
||||
"листьях/пр";
|
||||
"листьям/дт";
|
||||
};
|
||||
["дерево/ср,но,С"] = {
|
||||
"дерево/им", "деревья/им,мн";
|
||||
"дерево/вн", "деревья/вн,мн";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue