From 2987959ed97c00ca276b167142101dab749ec404 Mon Sep 17 00:00:00 2001 From: alistairjcbrown <635903+alistairjcbrown@users.noreply.github.com> Date: Sat, 17 Jan 2026 02:10:04 +0000 Subject: [PATCH] Update title normalization test --- common/known-removable-phrases.js | 6 +- common/tests/test-titles.json | 152 ++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+), 1 deletion(-) diff --git a/common/known-removable-phrases.js b/common/known-removable-phrases.js index 5d31e42..3fe73d7 100644 --- a/common/known-removable-phrases.js +++ b/common/known-removable-phrases.js @@ -57,6 +57,7 @@ const knownRemovablePhrases = [ ": english language version", ": Everyman In Therapy", ": Director's Definitive Edition", + ": Dance-Along", ", The (Extended Edition)", ": Extended Editions", ": Extended Edition", @@ -66,7 +67,7 @@ const knownRemovablePhrases = [ ": BNW", ": black & neurodiverse movie club launch", ": ANI DiFRANCO", - ": Watch Party", + " Watch Party", ": Live Q&A with Director Kevin Macdonald", ": Chicken Jockey Screening", ": The Block Party", @@ -83,6 +84,7 @@ const knownRemovablePhrases = [ ": Film with Q&A", ": Porridge Radio", ": David Lynch Retrospective", + ": John Schlesinger Season", "– Music by Pet Shop Boys", " Q&A with Director Richard Loncraine", " Q&A with Richard Gere", @@ -176,6 +178,7 @@ const knownRemovablePhrases = [ "Film Screening in Tottenham", "screening in Tottenham", "Film Screening and Maker's Market", + "Film Screening & After Party", "Fan First Premiere exclusively in IMAX", "Dog-Friendly Screening", "Dog-Friendly:", @@ -433,6 +436,7 @@ const knownRemovablePhrases = [ "Girlguiding Screening:", "Good Vibrations:", "gff:", + "Ghibliotheque presents...", "Goethe Annual Lecture 2025:", "Grab your ticket to ", "green screen:", diff --git a/common/tests/test-titles.json b/common/tests/test-titles.json index fd10301..e72c22a 100644 --- a/common/tests/test-titles.json +++ b/common/tests/test-titles.json @@ -49086,5 +49086,157 @@ { "input": "TWIN CHEEKS ", "output": "twin cheeks who killed the homecoming king" + }, + { + "input": "Marathon Man: John Schlesinger Season", + "output": "marathon man" + }, + { + "input": "Midnight Cowboy: John Schlesinger Season", + "output": "midnight cowboy" + }, + { + "input": "Sunday Bloody Sunday: John Schlesinger Season", + "output": "sunday bloody sunday" + }, + { + "input": "June 10 TBA", + "output": "june 10 tba" + }, + { + "input": "Secret Screening (2nd Feb)", + "output": "mystery movie" + }, + { + "input": "The Best Man Film Screening & After Party - AfterFrame: Valentine's Edition", + "output": "best man" + }, + { + "input": "The Princess Bride (1987)", + "output": "princess bride (1987)" + }, + { + "input": "DocHouse: André is an Idiot", + "output": "andre is an idiot" + }, + { + "input": "DocHouse: Guardian Doc: Jan 2026 Showcase", + "output": "guardian doc jan 2026 showcase" + }, + { + "input": "DocHouse: In Memoriam: Marcel Lozinski", + "output": "in memoriam marcel lozinski" + }, + { + "input": "DocHouse: Letters From Wolf Street", + "output": "letters from wolf street" + }, + { + "input": "DocHouse: Situated Testimonies of Grenfell", + "output": "situated testimonies of grenfell" + }, + { + "input": "SOLD OUT*Кинопремиера на \"Един грам живот\" в Лондон 31.01.2026", + "output": "един грам живот" + }, + { + "input": "Betty Blue: Director's Cut", + "output": "betty blue" + }, + { + "input": "Cinema Line: Hands On in the Sony Penthouse", + "output": "cinema line hands on in the sony penthouse" + }, + { + "input": "Intermediate: Technical Training, Sony Cinema Line", + "output": "intermediate technical training sony cinema line" + }, + { + "input": "Introduction to Video: Sony Cinema Line for Beginners", + "output": "introduction to video sony cinema line for beginners" + }, + { + "input": "Mystery Horror Film Screening (2 February 2026)", + "output": "mystery movie" + }, + { + "input": "Mystery Film Screening (26 January 2026)", + "output": "mystery movie" + }, + { + "input": "Scream Unseen (2 February)", + "output": "mystery movie" + }, + { + "input": "A Very Dirty Christmas", + "output": "a very dirty christmas" + }, + { + "input": "Valentine Special Film Quiz - When Rom Met Com", + "output": "valentine special film quiz" + }, + { + "input": "Stop Making Sense: Dance-Along", + "output": "stop making sense" + }, + { + "input": "The Traitors Finale Watch Party", + "output": "traitors finale" + }, + { + "input": "Alice Doesn't Live Here Anymore", + "output": "alice doesnt live here anymore" + }, + { + "input": "Chicago", + "output": "chicago" + }, + { + "input": "Ghibliotheque presents...THE ANIMATRIX", + "output": "animatrix" + }, + { + "input": "Lenny", + "output": "lenny" + }, + { + "input": "Roman Holiday", + "output": "roman holiday" + }, + { + "input": "Romeo + Juliet", + "output": "romeo+juliet" + }, + { + "input": "Sleepers", + "output": "sleepers" + }, + { + "input": "The Human Condition - Part 2 - Road to Eternity", + "output": "human condition 2" + }, + { + "input": "War of the Worlds (2005)", + "output": "war of the worlds (2005)" + }, + { + "input": "Leyton Benta's Where are the children? Short film Premier Screening", + "output": "leyton bentas where are the children? short film premier" + }, + { + "input": "FILM CLUB | Bringing Up Baby (1936)", + "output": "bringing up baby (1936)" + }, + { + "input": "FILM CLUB | The Night of the Hunter (1955)", + "output": "night of the hunter (1955)" + }, + { + "input": "Galentine's Day: Bottoms", + "output": "bottoms" + }, + { + "input": "THE HEIRLOOM presented by Jellied Reels", + "output": "heirloom" } ]