Stage D: horror-comedy rule keeps tone and audience in play; gore is After Dark's

Paul, 5 November 2026: a family-friendly or mainstream-rated horror-comedy
(Family genre, children's ratings, PG-13/12A/15) keeps its usual channels;
an unknown rating isn't held against it. 'Gore' joins After Dark's themes.
No placements change on the current 392 titles beyond Deathgasm 2 scoring
higher; samples hold; Kotlin matches the Python reference.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-05 11:31:44 +00:00
co-authored by Claude Opus 5.5
parent c4d0060d22
commit 652139a5ee
5 changed files with 6934 additions and 3 deletions
@@ -53,7 +53,7 @@ internal val Briefs: List<Brief> = listOf(
Brief(303, "Orbit Sci-Fi", setOf("Movie"), setOf("Science Fiction"), setOf("Science Fiction"), w("alien", "space", "future", "robot", "planet", "time", "dystopia", "android", "galaxy"), w("documentary"), 1950 to 2026, current = true),
Brief(304, "Orbit Horror", setOf("Movie"), setOf("Horror"), setOf("Horror"), w("haunt", "demon", "possess", "killer", "evil", "terror", "ghost", "curse", "slasher", "nightmare"), w("documentary"), 1960 to 2026, current = true),
Brief(305, "After Dark", setOf("Movie"), setOf("Horror", "Thriller", "Science Fiction"),
themes = w("cult", "bizarre", "strange", "exploitation", "b-movie", "grindhouse", "creature", "mutant", "zombie", "cannibal", "obscure", "surreal", "underground"),
themes = w("cult", "bizarre", "strange", "exploitation", "b-movie", "grindhouse", "creature", "mutant", "zombie", "cannibal", "obscure", "surreal", "underground", "gore"),
against = w("documentary", "romcom", "family"), era = 1955 to 2018),
Brief(306, "Orbit VHS", setOf("Movie"), setOf("Comedy", "Adventure", "Fantasy", "Family", "Science Fiction"), themes = w("kids", "teen", "adventure", "summer", "gang", "treasure"),
against = w("documentary"), era = 1980 to 1995),
@@ -89,6 +89,9 @@ private val Uk = Regex("United Kingdom|England|Scotland|Wales|\\bUK\\b")
private val UkStudio = Regex("\\bBBC\\b|\\bITV\\b|Channel 4|Film4|Sky\\b|Working Title|Ealing|Hammer|Aardman", RegexOption.IGNORE_CASE)
private val EnglishCountries = Regex("United States|United Kingdom|Canada|Australia|Ireland|New Zealand|England|Scotland|Wales")
private val ForeignBoard = Regex("^(SG|BR|PL|KR|JP|DE|FR|IT|ES|NL|TR|IN|MX|CN|HK|TW|TH|PH|MY|ID|RU|SE|NO|DK|FI|AR|CL|CO|PT|CZ|HU|RO|GR|IL|EG|SA|AE|VN)-", RegexOption.IGNORE_CASE)
/** Mainstream audience ratings: a horror-comedy rated these (or for children) keeps its usual channels. */
private val MainstreamRatings = setOf("PG-13", "12", "12A", "TV-14", "GB-12", "GB-12A", "GB-15", "15")
private val HorrorComedy = Regex("\\b(body horror|body-horror|gross-out|splatter|horror-comedy|horror comedy)", RegexOption.IGNORE_CASE)
private val LiveSpecial = Regex("\\b(stand-up|standup|comedian|comedy special|unruly set|in this set|live from|in concert|tour film|takes aim at)\\b", RegexOption.IGNORE_CASE)
private val EventFilmWords = Regex("superhero|epic|franchise|saga|blockbuster", RegexOption.IGNORE_CASE)
private val International = setOf(305, 601, 401)
@@ -198,7 +201,12 @@ internal fun channelScore(e: TitleEvidence, b: Brief, text: ChannelText, links:
s += .4 * maxOf(minOf(1.0, sim / .25), .6); ev += "short description, matched on genre (%.2f)".format(sim)
} else { s += .4 * minOf(1.0, sim / .25); ev += "description like its titles (%.2f)".format(sim) }
} else { s += .15; ev += "no description (not held against it)" }
e.year?.let { year ->
// Paul, 5 November 2026: context over category. Horror played for laughs (a horror-comedy, body horror, gross-out) is After
// Dark's cult territory, whatever its year, rather than mainstream Horror or Sci-Fi.
// Paul, the same day: not every horror-comedy. A family-friendly or mainstream-rated one (PG-13, 12A and under) keeps its usual
// channels; tone and audience still count. An unknown rating isn't held against it.
val horrorComedy = "Horror" in g && ("Comedy" in g || HorrorComedy.containsMatchIn(all)) && "Family" !in g && rating !in KidsOk && rating !in MainstreamRatings
if (!(horrorComedy && ch == 305)) e.year?.let { year ->
val (lo, hi) = b.era
if (year < lo - 3 || year > hi + 3) { if (!b.current) { s *= .3; ev += "$year outside its era $lo-$hi" } }
}
@@ -129,6 +129,22 @@ class DirectorChairTest {
assertThrows(IllegalArgumentException::class.java) { placeFromChair(store, user, "5000003", "A Season", "Season", null, 201, 201) }
}
@Test fun aHorrorComedyIsAfterDarksWhateverItsYear() {
// Paul, 5 November 2026, on Mum, I'm Alien Pregnant: context over category.
val alien = TitleEvidence.of(line("hc", "Mum, I'm Alien Pregnant", "Movie", listOf("Horror", "Science Fiction", "Comedy"),
"When a messy underachiever accidentally gets alien-pregnant, she must overcome skeptical doctors and her oversharing mum to survive.", countries = listOf("New Zealand")))
val straight = TitleEvidence.of(line("sh", "The Haunting Below", "Movie", listOf("Horror"), "A demon haunts a family; a curse and a killer in the night."))
val text = ChannelText(emptyMap(), mapOf("hc" to alien, "sh" to straight))
val placed = placeTitle(alien, text)
assertEquals(305, placed.top.number)
assertTrue(placed.why.any { "horror-comedy" in it })
assertNotEquals(305, placeTitle(straight, text).top.number) // straight horror isn't moved
// A family-friendly or mainstream-rated horror-comedy keeps its usual channels.
val family = TitleEvidence.of(line("fh", "Spooky Sleepover", "Movie", listOf("Horror", "Comedy", "Family"), "Kids at a sleepover meet a friendly ghost.", rating = "PG"))
val pg13 = TitleEvidence.of(line("p13", "Haunted Mansion Party", "Movie", listOf("Horror", "Comedy"), "A family moves into a haunted mansion full of ghosts.", rating = "PG-13"))
listOf(family, pg13).forEach { t -> assertTrue(channelScore(t, Briefs.first { it.number == 305 }, text).second.none { "horror-comedy" in it }) }
}
@Test fun aReportReadsBackAsItWasSaved() {
val r = DeskReport(10, 2, 9, 1, listOf("Terra" to 1), 1, listOf(DeskPick("A", "Terra", "STRONG MATCH", "Line")), listOf(DeskAsk("B", "Sci-Fi", "Horror")), 0, false, 0, 5, 6)
val back = DeskReport.of(r.toJson())