unslop-channel 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel.d.ts +2 -0
- package/dist/channel.js +6 -1
- package/dist/checks/production.js +4 -1
- package/dist/checks/titles.d.ts +7 -0
- package/dist/checks/titles.js +27 -5
- package/dist/explain.js +2 -2
- package/dist/judgments.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/policy-map.md +1 -1
- package/package.json +1 -1
- package/skills/channel-check/references/judgment-rubric.md +8 -0
package/dist/channel.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export declare function rankFixes(signals: SignalResult[], judgments: JudgmentIt
|
|
|
5
5
|
* Score a channel snapshot. Pure and deterministic: the same snapshot and
|
|
6
6
|
* config always give the same report.
|
|
7
7
|
*/
|
|
8
|
+
/** Wording that promises a revelation. Used only to point the reviewer at the title-promise question. */
|
|
9
|
+
export declare const STRONG_PROMISE: RegExp;
|
|
8
10
|
export declare function auditChannel(snapshot: ChannelSnapshot, config?: Config, verdicts?: JudgmentVerdict[]): ChannelReport;
|
package/dist/channel.js
CHANGED
|
@@ -30,6 +30,8 @@ export function rankFixes(signals, judgments) {
|
|
|
30
30
|
* Score a channel snapshot. Pure and deterministic: the same snapshot and
|
|
31
31
|
* config always give the same report.
|
|
32
32
|
*/
|
|
33
|
+
/** Wording that promises a revelation. Used only to point the reviewer at the title-promise question. */
|
|
34
|
+
export const STRONG_PROMISE = /\b(banned|made illegal|is now illegal|outlawed|censored|exposed|cover[- ]?up|they (don'?t|do not|didn'?t) want you to (know|see)|want(s)? this (banned|deleted|hidden)|before (it'?s|this is|they) delete[ds]?|the truth (they|about what they)|what they('re| are) hiding|doctors hate|won'?t believe|will shock you)\b/i;
|
|
33
35
|
export function auditChannel(snapshot, config = DEFAULT_CONFIG, verdicts = []) {
|
|
34
36
|
const byDate = [...snapshot.videos].sort((a, b) => (Date.parse(b.publishedAt ?? "") || 0) - (Date.parse(a.publishedAt ?? "") || 0));
|
|
35
37
|
// YouTube says its reviewers may focus on a channel's newest and most viewed videos, so sample both.
|
|
@@ -45,7 +47,10 @@ export function auditChannel(snapshot, config = DEFAULT_CONFIG, verdicts = []) {
|
|
|
45
47
|
const titles = checkTitles(recent, config, scripts.level === "skipped" ? undefined : scripts.level, snapshot.channel.title);
|
|
46
48
|
const signals = [titles, scripts, checkProduction(recent, config), checkPersona(recent, config), checkHumanSignals(scoped)].map((s) => ({ ...s, verdict: verdictOf(s.level) }));
|
|
47
49
|
const personaHit = signals.find((s) => s.id === "sensitive-persona" && (s.level === "review" || s.level === "fail"));
|
|
48
|
-
|
|
50
|
+
// A hint for the reviewer, never a score: code cannot tell whether a video keeps its promise.
|
|
51
|
+
const promises = recent.filter((v) => STRONG_PROMISE.test(v.title));
|
|
52
|
+
const promiseHint = promises.length ? `${promises.length} of ${recent.length} recent titles make a strong promise, for example "${promises[0].title}".` : undefined;
|
|
53
|
+
const judgments = attachVerdicts(CHANNEL_JUDGMENTS.map((j) => (j.id === "persona-authenticity" && personaHit ? { ...j, trigger: personaHit.summary } : j.id === "title-promise" && promiseHint ? { ...j, trigger: promiseHint } : j)), verdicts, new Set(recent.map((v) => v.id)));
|
|
49
54
|
const scored = signals.filter((s) => s.score !== null && (s.level === "pass" || s.level === "review" || s.level === "fail"));
|
|
50
55
|
const worst = [...scored].sort((a, b) => a.score - b.score || a.id.localeCompare(b.id))[0];
|
|
51
56
|
let level = worst ? worst.level : "skipped";
|
|
@@ -79,6 +79,9 @@ export function checkProduction(videos, config) {
|
|
|
79
79
|
notes.push(`${Math.round(boilerShare * 100)}% of descriptions say nothing specific to their video`);
|
|
80
80
|
}
|
|
81
81
|
const level = levelFromScore(score);
|
|
82
|
+
// Daily bursts, many uploads in a day and boilerplate descriptions each cap the score at 60.
|
|
83
|
+
// Two or three of them together do not lower it further, so say so instead of leaving it unexplained.
|
|
84
|
+
const capped = notes.length >= 2 && score === 60;
|
|
82
85
|
const durations = videos.map((v) => v.durationSeconds).filter((d) => typeof d === "number" && d > 0);
|
|
83
86
|
const metrics = { videos: dated.length, burstShare: round(burstShare), dayBurstShare: round(dayBurstShare), maxUploadsPerDay: maxPerDay, boilerplateDescriptionShare: round(boilerShare) };
|
|
84
87
|
if (durations.length >= 5) {
|
|
@@ -90,7 +93,7 @@ export function checkProduction(videos, config) {
|
|
|
90
93
|
...base,
|
|
91
94
|
level,
|
|
92
95
|
score,
|
|
93
|
-
summary: notes.length ? `${notes.join("; ")}
|
|
96
|
+
summary: notes.length ? `${notes.join("; ")}.${capped ? " These signs do not add up: together they still count as one flag." : ""}` : "Upload timing and descriptions do not look batch-produced.",
|
|
94
97
|
fix: level === "pass"
|
|
95
98
|
? undefined
|
|
96
99
|
: "Space uploads out and publish only what has been reviewed. Write a description for each video that says what this video covers and where its facts come from.",
|
package/dist/checks/titles.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ export declare function repeatedPhrase(titles: string[], channelTitle?: string):
|
|
|
22
22
|
phrase: string;
|
|
23
23
|
indices: number[];
|
|
24
24
|
} | null;
|
|
25
|
+
/**
|
|
26
|
+
* Several small templates that each stay under the three-video threshold but together cover a
|
|
27
|
+
* large part of the channel: three pairs in fifteen titles, for example. A group whose titles
|
|
28
|
+
* are the same apart from a number ("..., Part 1" and "..., Part 2") is a multi-part video,
|
|
29
|
+
* not a template, and is left out.
|
|
30
|
+
*/
|
|
31
|
+
export declare function smallTemplates(titles: string[], cfg: Config["thresholds"]["titleTemplate"]): number[][];
|
|
25
32
|
/** Indices of videos whose title is exactly the same as another video's (case and spacing ignored). */
|
|
26
33
|
export declare function duplicateTitles(titles: string[]): number[];
|
|
27
34
|
/**
|
package/dist/checks/titles.js
CHANGED
|
@@ -66,11 +66,22 @@ export function repeatedPhrase(titles, channelTitle = "") {
|
|
|
66
66
|
}
|
|
67
67
|
return best;
|
|
68
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Several small templates that each stay under the three-video threshold but together cover a
|
|
71
|
+
* large part of the channel: three pairs in fifteen titles, for example. A group whose titles
|
|
72
|
+
* are the same apart from a number ("..., Part 1" and "..., Part 2") is a multi-part video,
|
|
73
|
+
* not a template, and is left out.
|
|
74
|
+
*/
|
|
75
|
+
export function smallTemplates(titles, cfg) {
|
|
76
|
+
const multiPart = (g) => new Set(g.map((i) => titleTokens(titles[i]).join(" "))).size === 1;
|
|
77
|
+
return titleClusters(titles, cfg).filter((g) => g.length >= 2 && !multiPart(g));
|
|
78
|
+
}
|
|
69
79
|
/** Indices of videos whose title is exactly the same as another video's (case and spacing ignored). */
|
|
70
80
|
export function duplicateTitles(titles) {
|
|
71
81
|
const groups = new Map();
|
|
72
82
|
titles.forEach((t, i) => {
|
|
73
|
-
|
|
83
|
+
// Numbers are kept: "Part 1" and "Part 2" are not duplicates.
|
|
84
|
+
const key = words(t).join(" ").toLowerCase();
|
|
74
85
|
if (key)
|
|
75
86
|
groups.set(key, [...(groups.get(key) ?? []), i]);
|
|
76
87
|
});
|
|
@@ -96,7 +107,14 @@ export function checkTitles(videos, config, scriptRepetitionLevel, channelTitle
|
|
|
96
107
|
const cluster = titleClusters(titles, cfg)[0] ?? [];
|
|
97
108
|
const phrase = repeatedPhrase(titles, channelTitle);
|
|
98
109
|
const byPhrase = phrase !== null && phrase.indices.length > cluster.length;
|
|
99
|
-
|
|
110
|
+
let top = byPhrase ? phrase.indices : cluster;
|
|
111
|
+
// No single template is big enough: look at several small ones together. The threshold of
|
|
112
|
+
// three videos per template still applies to a single template.
|
|
113
|
+
const small = smallTemplates(titles, cfg);
|
|
114
|
+
const smallCount = small.reduce((s, g) => s + g.length, 0);
|
|
115
|
+
const bySmall = small.length >= 2 && smallCount > top.length && smallCount / titles.length >= cfg.reviewShare;
|
|
116
|
+
if (bySmall)
|
|
117
|
+
top = small.flat().sort((a, b) => a - b);
|
|
100
118
|
const share = top.length >= 3 ? top.length / titles.length : 0;
|
|
101
119
|
const dupes = duplicateTitles(titles);
|
|
102
120
|
const corroborated = scriptRepetitionLevel === "fail" || scriptRepetitionLevel === "review";
|
|
@@ -104,14 +122,18 @@ export function checkTitles(videos, config, scriptRepetitionLevel, channelTitle
|
|
|
104
122
|
// Two videos with the very same title are worth a look however small their share is.
|
|
105
123
|
if (dupes.length)
|
|
106
124
|
score = Math.min(score, 60);
|
|
125
|
+
// Small templates added together are weaker evidence than one big template: a flag at most.
|
|
126
|
+
if (bySmall)
|
|
127
|
+
score = Math.max(score, 41);
|
|
107
128
|
if (!corroborated)
|
|
108
129
|
score = Math.max(score, 41);
|
|
109
130
|
const level = levelFromScore(score);
|
|
110
|
-
const
|
|
131
|
+
const shown = bySmall ? small.flatMap((g) => g.slice(0, 2)).slice(0, 6) : top.slice(0, 5);
|
|
132
|
+
const evidence = share > 0 ? shown.map((i) => ({ ref: videos[i].id, label: videos[i].title })) : [];
|
|
111
133
|
for (const i of dupes.slice(0, 4))
|
|
112
134
|
if (!evidence.some((e) => e.ref === videos[i].id))
|
|
113
135
|
evidence.push({ ref: videos[i].id, label: videos[i].title, detail: "same title as another video" });
|
|
114
|
-
const what = byPhrase ? `repeat the phrase "${phrase.phrase}"` : "share one template";
|
|
136
|
+
const what = bySmall ? `fall into ${small.length} small title templates` : byPhrase ? `repeat the phrase "${phrase.phrase}"` : "share one template";
|
|
115
137
|
const pct = `${top.length} of ${titles.length}`;
|
|
116
138
|
const dupeNote = dupes.length ? ` ${dupes.length} videos have exactly the same title as another one.` : "";
|
|
117
139
|
let summary;
|
|
@@ -138,6 +160,6 @@ export function checkTitles(videos, config, scriptRepetitionLevel, channelTitle
|
|
|
138
160
|
? undefined
|
|
139
161
|
: "Give each video its own question or claim in the title, and make sure the script is not the same outline with the subject swapped. Run the check again with transcripts to confirm.",
|
|
140
162
|
evidence,
|
|
141
|
-
metrics: { titles: titles.length, topClusterSize: top.length >= 3 ? top.length : 0, topClusterShare: round(share), duplicateTitles: dupes.length, corroboratedByScripts: corroborated },
|
|
163
|
+
metrics: { titles: titles.length, topClusterSize: top.length >= 3 ? top.length : 0, topClusterShare: round(share), smallTemplates: bySmall ? small.length : 0, duplicateTitles: dupes.length, corroboratedByScripts: corroborated },
|
|
142
164
|
};
|
|
143
165
|
}
|
package/dist/explain.js
CHANGED
|
@@ -19,7 +19,7 @@ export function explanations(config) {
|
|
|
19
19
|
title: "Title templating",
|
|
20
20
|
kind: "measured",
|
|
21
21
|
policyArea: "Generic or Repetitive Content",
|
|
22
|
-
how: "Titles are lowercased and numbers become '#'. Two titles are a template pair when their longest common word sequence covers at least pairSimilarity of the longer title AND contains at least minSharedContentTokens content words (not function words). Pairs are grouped; the score comes from the share of recent titles in the largest group of 3 or more. On its own this signal never drops below REVIEW: it only becomes a FAIL when script repetition confirms it, and it is cleared when scripts are shown to differ. A second pass finds the phrase of three to six words (at least two content words, the channel's own name ignored) repeated in the most titles, wherever it sits: a suffix, a segment after '|', or the same hashtags. The larger of the two groups is reported. Two videos with exactly the same title are flagged whatever their share.",
|
|
22
|
+
how: "Titles are lowercased and numbers become '#'. Two titles are a template pair when their longest common word sequence covers at least pairSimilarity of the longer title AND contains at least minSharedContentTokens content words (not function words). Pairs are grouped; the score comes from the share of recent titles in the largest group of 3 or more. On its own this signal never drops below REVIEW: it only becomes a FAIL when script repetition confirms it, and it is cleared when scripts are shown to differ. A second pass finds the phrase of three to six words (at least two content words, the channel's own name ignored) repeated in the most titles, wherever it sits: a suffix, a segment after '|', or the same hashtags. The larger of the two groups is reported. When no single template reaches three videos, small templates of two or more videos are added together: if two or more of them cover reviewShare of the titles, that is a flag (never more than a flag). Titles that differ only by a number, such as Part 1 and Part 2, are a multi-part video and are left out. Two videos with exactly the same title are flagged whatever their share.",
|
|
23
23
|
thresholds: t.titleTemplate,
|
|
24
24
|
knownFalsePositives: "A question series such as 'Why do we ...?' is not a template here, because the shared frame is only function words. A branded series prefix ('Deep Dive: ...') can still be flagged; supply transcripts to clear it.",
|
|
25
25
|
basis: "Weak. The policy page says reviewers may look at titles, thumbnails and descriptions, and that content should not look template-made, but no official example names title patterns. Creators who lost monetization often guess titles were the cause; YouTube has not confirmed it. That is why this signal is only a flag.",
|
|
@@ -39,7 +39,7 @@ export function explanations(config) {
|
|
|
39
39
|
title: "Mass-production patterns",
|
|
40
40
|
kind: "measured",
|
|
41
41
|
policyArea: "Generic or Repetitive Content",
|
|
42
|
-
how: "Counts uploads published less than burstMinutes after the previous one, the most uploads in a single day, and descriptions with fewer than minUniqueChars characters that are not boilerplate shared with most other videos. Also counts videos that went up perDayBurst or more within any 24 hours (flagged at perDayShareReview of the videos). Bursts drive the score; many uploads per day or boilerplate descriptions cap it at REVIEW. Uniform video length is reported but not scored.",
|
|
42
|
+
how: "Counts uploads published less than burstMinutes after the previous one, the most uploads in a single day, and descriptions with fewer than minUniqueChars characters that are not boilerplate shared with most other videos. Also counts videos that went up perDayBurst or more within any 24 hours (flagged at perDayShareReview of the videos). Daily bursts, many uploads in a day and boilerplate descriptions each cap the score at 60, and two or three of them together do not lower it further: they are weak signs of the same thing, so they count as one flag. Bursts drive the score; many uploads per day or boilerplate descriptions cap it at REVIEW. Uniform video length is reported but not scored.",
|
|
43
43
|
thresholds: { ...t.massProduction, ...t.boilerplateDescriptions },
|
|
44
44
|
knownFalsePositives: "A channel that uploads a back catalogue in one sitting will show bursts once. News and live-clip channels legitimately post several times a day; the daily rule only raises a flag, never a Stop.",
|
|
45
45
|
basis: "Medium. The Spam policy gives the example of channels churning out high volumes of similar AI content with minimal changes. No official number exists for upload frequency.",
|
package/dist/judgments.js
CHANGED
|
@@ -28,6 +28,12 @@ export const CHANNEL_JUDGMENTS = [
|
|
|
28
28
|
policyArea: "Unsatisfying or Off-putting Content",
|
|
29
29
|
question: "Do most recent videos hook on the same distress scenario (loss, humiliation, peril and rescue), copy an existing format or story so closely that they feel interchangeable with other channels, or use deceptive imagery of events that did not happen?",
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
id: "title-promise",
|
|
33
|
+
title: "Do the titles promise what the videos deliver?",
|
|
34
|
+
policyArea: "Spam policy (misleading metadata); Unsatisfying or Off-putting Content",
|
|
35
|
+
question: "Look for titles that promise something dramatic: a thing 'they want banned', 'made illegal', 'exposed', 'the truth they hide'. For each, does the video show evidence that the claim is true, or is the promise only there to get the click?",
|
|
36
|
+
},
|
|
31
37
|
{
|
|
32
38
|
id: "persona-authenticity",
|
|
33
39
|
title: "Is the presenter who they claim to be?",
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.2";
|
package/docs/policy-map.md
CHANGED
|
@@ -16,7 +16,7 @@ YouTube's published policies do not ban faceless channels, AI voices, AI visuals
|
|
|
16
16
|
| [Reused content](https://support.google.com/youtube/answer/1311392) | Repurposes existing content without significant original commentary, substantive modification, or educational or entertainment value. Applies even with permission; separate from copyright | Channel as a whole | script gate `script.verbatim`; cut gate `cut.reuse`, `cut.rights`; judgment `reused-content` |
|
|
17
17
|
| [Unsatisfying or Off-putting Content](https://support.google.com/youtube/answer/1311392) | Emotionally manipulative formulas, mimicking existing formats until videos feel interchangeable, shock for views, deceptive imagery | Channel | pitch gate; judgments `shock-formula`, `information-novelty`, `pitch-no-deception`, `script-promise-payoff` |
|
|
18
18
|
| [AI Personas Related to Sensitive Topics](https://support.google.com/youtube/answer/1311392) | AI persona presenting as a human expert giving health, legal, financial or political advice | Channel | `sensitive-persona`; script gate `script.fake-expert` |
|
|
19
|
-
| [Spam policy](https://support.google.com/youtube/answer/2801973) | Includes automated or synthetic mass-production, scraped content, detection evasion and malicious clickbait. Can lead to suspension of monetization or termination | Video and channel | `mass-production`; judgments `script-packaging-delivers`, `cut-own-voice-and-look` |
|
|
19
|
+
| [Spam policy](https://support.google.com/youtube/answer/2801973) | Includes automated or synthetic mass-production, scraped content, detection evasion and malicious clickbait. Can lead to suspension of monetization or termination | Video and channel | `mass-production`; judgments `title-promise`, `script-packaging-delivers`, `cut-own-voice-and-look` |
|
|
20
20
|
| [Disclosing use of GenAI content](https://support.google.com/youtube/answer/14328491) | Realistic AI-generated or altered content must be disclosed at upload | Video | cut gate `cut.disclosure`, `cut.likeness`, `cut.avatar`, `cut.voice-clone`; judgment `ai-disclosure` |
|
|
21
21
|
|
|
22
22
|
"Inauthentic content" was the name of the first policy between July 2025 and mid-2026. The page now uses the headings above.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unslop-channel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Unslop: AI Channel Check. A pre-publish originality gate and channel check for faceless and AI-assisted YouTube channels. Scores are computed by code, run locally, and need no paid data provider.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -36,6 +36,14 @@ The test on the policy page is whether viewers can tell there is a meaningful di
|
|
|
36
36
|
- **review**: several recent videos hook on the same distress premise (loss, humiliation, peril and rescue).
|
|
37
37
|
- **fail**: disturbing themes repeated with no cohesive narrative; unrelated AI clips stitched together to shock; realistic imagery of an event that did not happen, such as a fake celebrity death or disaster.
|
|
38
38
|
|
|
39
|
+
## title-promise: do the titles promise what the videos deliver?
|
|
40
|
+
|
|
41
|
+
The engine may point at titles with a strong promise ("...Want This BANNED", "Made Illegal", "Exposed"). That is only a hint. Strong wording is allowed when the video backs it up; the Spam policy is about titles and thumbnails that mislead viewers about what they will see. Open the videos behind those titles.
|
|
42
|
+
|
|
43
|
+
- **pass**: no such titles, or each one is backed by the video: it names who banned or hid the thing, when, and shows a source.
|
|
44
|
+
- **review**: the promise is exaggerated. The video covers the topic but never shows that anything was banned, hidden or exposed.
|
|
45
|
+
- **fail**: several titles promise an event or revelation that the video does not contain at all.
|
|
46
|
+
|
|
39
47
|
## persona-authenticity: is the presenter who they claim to be?
|
|
40
48
|
|
|
41
49
|
Only applies when a video gives advice on health, legal, financial or political topics. An AI avatar or synthetic presenter is not a problem by itself: a channel hosted by an avatar that teaches cooking or history passes this item.
|