From d8fa14009ceba3987966c2fe5d6bbec628309b0c Mon Sep 17 00:00:00 2001 From: alistairjcbrown <635903+alistairjcbrown@users.noreply.github.com> Date: Wed, 11 Nov 2026 17:59:57 +0000 Subject: [PATCH 1/2] Update title normalization test --- common/tests/test-titles.json | 108 ++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/common/tests/test-titles.json b/common/tests/test-titles.json index a742467b..21e978dd 100644 --- a/common/tests/test-titles.json +++ b/common/tests/test-titles.json @@ -108470,5 +108470,113 @@ { "input": "The Sword in the Stone", "output": "sword in the stone" + }, + { + "input": "Fad’Jal", + "output": "fadjal" + }, + { + "input": "I, Your Mother + Selbé: One Among Many", + "output": "i your mother" + }, + { + "input": "Letter from My Village (Kaddu Beykat) + La Passante", + "output": "letter from my village" + }, + { + "input": "Minotaur + ScreenTalk with director Andrey Zvyagintsev", + "output": "minotaur" + }, + { + "input": "Mossane", + "output": "mossane" + }, + { + "input": "Preview: Once Upon A Time In Harlem", + "output": "once upon a time in harlem" + }, + { + "input": "ScreenTalk: I See Buildings Fall Like Lightning", + "output": "i see buildings fall like lightning" + }, + { + "input": "Power Trip", + "output": "power trip" + }, + { + "input": "Richmond Film Society presents ‘Blow-up' (UK)", + "output": "blowup" + }, + { + "input": "Richmond Film Society presents ‘On Becoming a Guinea Fowl' (Zambia/Ireland)", + "output": "on becoming a guinea fowl" + }, + { + "input": "Richmond Film Society presents 'Sentimental Value' (Norway)", + "output": "sentimental value" + }, + { + "input": "Richmond Film Society presents ‘The Secret Agent' (Brazil)", + "output": "secret agent" + }, + { + "input": "Richmond Film Society presents ‘The Tasters’ (Italy/Belgium/Switzerland)", + "output": "the tasters" + }, + { + "input": "Richmond Film Society presents ‘Two Prosecutors' (Ukraine/Romania)", + "output": "two prosecutors" + }, + { + "input": "EMPORIUM PRO WRESTLING PRESENTS : CHRISTMAS SHOW - £16 UPPER SECTION SEATS", + "output": "christmas show" + }, + { + "input": "EMPORIUM PRO WRESTLING PRESENTS : CHRISTMAS SHOW - £21 LOWER SECTION SEATS (BEST VIEW IN THE HOUSE)", + "output": "christmas show" + }, + { + "input": "Switches Screening + Director Conversation | Lumière Noire", + "output": "switches" + }, + { + "input": "Turang", + "output": "turang" + }, + { + "input": "Barking Community Cinema presents... London Orbital + Q&A with Chris Petit and Iain Sinclair", + "output": "barking community cinema presents london orbital" + }, + { + "input": "Barking Community Cinema TALK with Chris Petit and Iain Sinclair on post-cinema", + "output": "barking community cinema talk with chris petit iain sinclair on postcinema" + }, + { + "input": "Secretary 2002 Screening", + "output": "secretary 2002" + }, + { + "input": "70th Anniversary London Screening of \"The Girl Can't Help It\"", + "output": "girl cant help it" + }, + { + "input": "DOUBLE BILL: Fantastic Mr. Fox (2009) and The Royal Tenenbaums (2001)", + "output": "double bill fantastic mr fox (2009) the royal tenenbaums (2001)" + }, + { + "input": "GHOST IN THE MACHINE (2026): Screening, Panel, Q&A and Free Drink", + "output": "ghost in the machine (2026) screening panel q&a free drink" + }, + { + "input": "Jbloc Chanukah Party", + "output": "jbloc chanukah party" + }, + { + "input": "Black History Studies: Barrell Children: The Families Windrush Left Behind", + "output": "barrell children the families windrush left behind" + }, + { + "input": "Leaving Las Vegas + Recorded Introduction", + "output": "leaving las vegas" } ] From 8000f10f9721a175609b1fa683c545ad1c3785d3 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 19:16:06 +0000 Subject: [PATCH 2/2] Apply review feedback on title normalisation test update - Correct "I, Your Mother +", "Secretary 2002" and "Barrell Children" - Strip "Barking Community Cinema presents..." and "Screening, Panel, Q&A and Free Drink" - Treat Emporium Pro Wrestling and the Jbloc Chanukah Party as non-film events and drop their test titles Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GBhsxT4FUNYsih57KARaQh --- common/is-non-film-event.js | 2 ++ common/known-removable-phrases.js | 2 ++ common/normalize-title.js | 3 +++ common/tests/test-titles.json | 30 +++++------------------------- 4 files changed, 12 insertions(+), 25 deletions(-) diff --git a/common/is-non-film-event.js b/common/is-non-film-event.js index f6b677d2..4e30afa3 100644 --- a/common/is-non-film-event.js +++ b/common/is-non-film-event.js @@ -395,6 +395,8 @@ const nonFilmEvents = [ /^Reflections Issue 5 Launch \[panel\]$/i, /^Seeing in your own lense and expanding the story \[workshop\]$/i, /^v=d\/t \(me\/here\) \[performance\]$/i, + /^EMPORIUM PRO WRESTLING PRESENTS\b/i, + /^Jbloc Chanukah Party$/i, ]; const isNonFilmEvent = ({ title }) => diff --git a/common/known-removable-phrases.js b/common/known-removable-phrases.js index efef5277..515a68be 100644 --- a/common/known-removable-phrases.js +++ b/common/known-removable-phrases.js @@ -307,6 +307,7 @@ const knownRemovablePhrases = [ ": screening and discussion", "Screening, Director Q&A, and Meet and Greet", "Screening, Panel Discussion and Q&A", + "Screening, Panel, Q&A and Free Drink", "Q&A and Networking", "Screening Without Ads or Trailers", "screening @ Rivoli Ballroom", @@ -989,6 +990,7 @@ const knownRemovablePhrases = [ "Gothic Victorian Film ", "gff:", "Ghibliotheque presents...", + "Barking Community Cinema presents...", "Ghost stories, cocktails &", "Goethe Annual Lecture 2025:", "Goethe-Kino & Mascha Schilinski:", diff --git a/common/normalize-title.js b/common/normalize-title.js index 34e3be3a..d8cf692f 100644 --- a/common/normalize-title.js +++ b/common/normalize-title.js @@ -144,6 +144,7 @@ function normalizeTitle(title, options) { [" + Superworm", " and Superworm"], ["Superworm + ", "Superworm & "], ["Before Sunset (2004) + ", "Before Sunset (2004) & "], + ["I, Your Mother + ", "I, Your Mother & "], // TheMovieDB has no entry for the pair, so it matches the sequel on its // own. Name it as the double bill it is, which one venue already does. [ @@ -2133,6 +2134,8 @@ function normalizeTitle(title, options) { ["LBN at The Cinema", "La Bola Negra"], [/THE THREE DUMAS$/i, "The Three Dumas (2007)"], ["Two Gentleman Sharing", "Two Gentlemen Sharing"], + ["Secretary 2002", "Secretary (2002)"], + ["Barrell Children", "Barrel Children"], ]; corrections.forEach(([phrase, replacement]) => { diff --git a/common/tests/test-titles.json b/common/tests/test-titles.json index 21e978dd..9320a987 100644 --- a/common/tests/test-titles.json +++ b/common/tests/test-titles.json @@ -97179,14 +97179,6 @@ "input": "Colette & Justin + Q&A", "output": "colette justin" }, - { - "input": "EMPORIUM PRO WRESTLING PRESENTS: SLASHERAMA - £16 UPPER SECTION SEATS", - "output": "slasherama" - }, - { - "input": "EMPORIUM PRO WRESTLING PRESENTS: SLASHERAMA - £21 LOWER SECTION SEATS (BEST VIEW IN THE HOUSE)", - "output": "slasherama" - }, { "input": "Cinema Film Screening - Stoffwechsel. Das drachenprächtige Ungeheuer", "output": "stoffwechsel" @@ -108477,7 +108469,7 @@ }, { "input": "I, Your Mother + Selbé: One Among Many", - "output": "i your mother" + "output": "i your mother selbe one among many" }, { "input": "Letter from My Village (Kaddu Beykat) + La Passante", @@ -108527,14 +108519,6 @@ "input": "Richmond Film Society presents ‘Two Prosecutors' (Ukraine/Romania)", "output": "two prosecutors" }, - { - "input": "EMPORIUM PRO WRESTLING PRESENTS : CHRISTMAS SHOW - £16 UPPER SECTION SEATS", - "output": "christmas show" - }, - { - "input": "EMPORIUM PRO WRESTLING PRESENTS : CHRISTMAS SHOW - £21 LOWER SECTION SEATS (BEST VIEW IN THE HOUSE)", - "output": "christmas show" - }, { "input": "Switches Screening + Director Conversation | Lumière Noire", "output": "switches" @@ -108545,7 +108529,7 @@ }, { "input": "Barking Community Cinema presents... London Orbital + Q&A with Chris Petit and Iain Sinclair", - "output": "barking community cinema presents london orbital" + "output": "london orbital" }, { "input": "Barking Community Cinema TALK with Chris Petit and Iain Sinclair on post-cinema", @@ -108553,7 +108537,7 @@ }, { "input": "Secretary 2002 Screening", - "output": "secretary 2002" + "output": "secretary (2002)" }, { "input": "70th Anniversary London Screening of \"The Girl Can't Help It\"", @@ -108565,15 +108549,11 @@ }, { "input": "GHOST IN THE MACHINE (2026): Screening, Panel, Q&A and Free Drink", - "output": "ghost in the machine (2026) screening panel q&a free drink" - }, - { - "input": "Jbloc Chanukah Party", - "output": "jbloc chanukah party" + "output": "ghost in the machine (2026)" }, { "input": "Black History Studies: Barrell Children: The Families Windrush Left Behind", - "output": "barrell children the families windrush left behind" + "output": "barrel children the families windrush left behind" }, { "input": "Leaving Las Vegas + Recorded Introduction",