rewrite 2026-09 and 2027 articles for reader-facing quality
Build and deploy / deploy (push) Successful in 18s
Build and deploy / deploy (push) Successful in 18s
This commit is contained in:
@@ -31,6 +31,20 @@ const genericPhrases = [
|
||||
'просто нужно',
|
||||
'нужно понимать, что',
|
||||
];
|
||||
const editorialMetaPatterns = [
|
||||
/synthetic-plan-hand-off/i,
|
||||
/productionEffect/i,
|
||||
/future-only/i,
|
||||
/plan\/scenario/i,
|
||||
/source cutoff/i,
|
||||
/editorial date/i,
|
||||
/planDate/i,
|
||||
/not-collected/i,
|
||||
/not-attempted/i,
|
||||
/future owner/i,
|
||||
/author trajectory/i,
|
||||
/развитие автора/i,
|
||||
];
|
||||
const MIN_BODY_CHARS = 5000;
|
||||
const MAX_BODY_CHARS = 15000;
|
||||
let failed = false;
|
||||
@@ -89,6 +103,8 @@ for (const slug of slugs) {
|
||||
if (proseWithoutCode.includes('undefined') || proseWithoutCode.includes('[object Object]')) {
|
||||
issues.push('в тексте есть след генерации');
|
||||
}
|
||||
const editorialMetaHit = editorialMetaPatterns.find((pattern) => pattern.test(body));
|
||||
if (editorialMetaHit) issues.push('в теле статьи есть внутренняя редакционная мета-лексика: ' + editorialMetaHit);
|
||||
if (!/(проблем|ошиб|симптом|сбой|задач)/i.test(body.slice(0, 800))) {
|
||||
issues.push('проблема не названа в начале текста');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user