Files
OmniRoute/open-sse/services/compression/rules/ru/context.json
vinogradovnet 8cb51b7922 feat(compression): add Russian language pack (#9581)
Merge-train validated (tip 6ce4effef8). Vitest failures confirmed as base-red (#9679).
2026-08-07 20:54:20 -03:00

39 lines
1.1 KiB
JSON

{
"language": "ru",
"category": "context",
"rules": [
{
"name": "subject_omission",
"pattern": "^(?:Я |Мы |Вы )(?:можем|должны|будем|хотим|нужно)\\b\\s*",
"replacement": "",
"context": "all",
"category": "context",
"minIntensity": "full"
},
{
"name": "known_fact_hedging",
"pattern": "(?<=\\.)\\s*(?:Возможно|Наверное|Может быть),\\s+",
"replacement": "",
"context": "assistant",
"category": "context",
"minIntensity": "full"
},
{
"name": "redundant_clarification",
"pattern": "\\b(?:как я уже говорил|как уже упоминалось|как было сказано)\\b[,.!?\\s]*",
"replacement": "",
"context": "all",
"category": "context",
"minIntensity": "full"
},
{
"name": "obvious_continuation",
"pattern": "\\b(?:далее|затем|после этого|в итоге)\\b[,.!?\\s]*",
"replacement": "",
"context": "all",
"category": "context",
"minIntensity": "ultra"
}
]
}