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:
@@ -32,6 +32,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,
|
||||
];
|
||||
|
||||
function count(content, expression) {
|
||||
return (content.match(expression) || []).length;
|
||||
@@ -120,6 +134,8 @@ for (const revision of revisions) {
|
||||
if (proseWithoutCode.includes('undefined') || proseWithoutCode.includes('[object Object]')) {
|
||||
issues.push('в тексте есть след генерации');
|
||||
}
|
||||
const editorialMetaHit = editorialMetaPatterns.find((pattern) => pattern.test(body));
|
||||
if (editorialMetaHit) issues.push('в теле статьи есть внутренняя редакционная мета-лексика: ' + editorialMetaHit);
|
||||
|
||||
for (const phrase of genericPhrases) {
|
||||
if (content.includes(phrase)) issues.push('шаблонный оборот: «' + phrase + '»');
|
||||
|
||||
Reference in New Issue
Block a user