Skip to content

Commit eb6761a

Browse files
Update title normalization test
1 parent d1d0cec commit eb6761a

3 files changed

Lines changed: 163 additions & 1 deletion

File tree

common/known-removable-phrases.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ const knownRemovablePhrases = [
796796
"Romford Horror Festival:",
797797
"Sapphic Cinema:",
798798
"Sapphic Cinema Valentine's Afternoon Screening",
799+
"Sapphic screening and social",
799800
"Sake, onigiri +",
800801
"Sanrizuka 5:",
801802
"Scared To Dance:",

common/normalize-title.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function normalizeTitle(title, options) {
3535
[" + The Gruffalo's Child", " and The Gruffalo's Child"],
3636
[" + 28YL: The Bone Temple", " "],
3737
[" + The Bone Temple (", " "],
38+
[" + Jackie", " & Jackie"],
3839
[/\s+[&|+] 28 Years Later: The Bone Temple [-|(]/i, " "],
3940
[" the bone temple double", " double"],
4041
[
@@ -578,7 +579,7 @@ function normalizeTitle(title, options) {
578579
["THE PRESENT HELP", "PRESENT HELP"],
579580
["Dress-up karaoke party + ", "Dress-up karaoke party & "],
580581
["Spicy cocktail hour + ", "Spicy cocktail hour & "],
581-
["Playdates with Friends Collection", "Playdates with Friends"],
582+
[/Playdates with Friends Collect?i?o?n?/i, "Playdates with Friends"],
582583
["BRING ME THE HORIZON - ", "BRING ME THE HORIZON: "],
583584
["EPiC - ", "EPiC: "],
584585
["Beats Rhymes & Life' - ", "Beats Rhymes & Life': "],

common/tests/test-titles.json

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61238,5 +61238,165 @@
6123861238
{
6123961239
"input": "The Perfect Number",
6124061240
"output": "perfect number"
61241+
},
61242+
{
61243+
"input": "RIPPLES OF PHYSIS + LIVE Q&A",
61244+
"output": "ripples of physis"
61245+
},
61246+
{
61247+
"input": "Deep Sky",
61248+
"output": "deep sky"
61249+
},
61250+
{
61251+
"input": "UK Premiere: The Featherweight + Q&A",
61252+
"output": "the featherweight"
61253+
},
61254+
{
61255+
"input": "TCC Film Quiz",
61256+
"output": "tcc film quiz"
61257+
},
61258+
{
61259+
"input": "Film Club: The Last Blossom",
61260+
"output": "last blossom"
61261+
},
61262+
{
61263+
"input": "Film Club: AKIRA (2026 Re-release)",
61264+
"output": "akira"
61265+
},
61266+
{
61267+
"input": "Kids Club: The Little Mermaid",
61268+
"output": "little mermaid"
61269+
},
61270+
{
61271+
"input": "Bluey at the Cinema: Playdates with Friends Collec",
61272+
"output": "bluey at the cinema playdates with friends"
61273+
},
61274+
{
61275+
"input": "FATHER MOTHER BROTHER SISTER",
61276+
"output": "father mother brother sister"
61277+
},
61278+
{
61279+
"input": "ROSE OF NEVADA",
61280+
"output": "rose of nevada"
61281+
},
61282+
{
61283+
"input": "THE BLUE TRAIL",
61284+
"output": "blue trail"
61285+
},
61286+
{
61287+
"input": "THE STRANGER",
61288+
"output": "the stranger"
61289+
},
61290+
{
61291+
"input": "Family Film Club: Jurassic Park",
61292+
"output": "jurassic park"
61293+
},
61294+
{
61295+
"input": "Family Film Club: Peter Rabbit",
61296+
"output": "peter rabbit"
61297+
},
61298+
{
61299+
"input": "Minute Shorts x Metis Films presents: Surviving Earth",
61300+
"output": "surviving earth"
61301+
},
61302+
{
61303+
"input": "PERFECT BLUE Film Screening",
61304+
"output": "perfect blue"
61305+
},
61306+
{
61307+
"input": "Closing Night: SLET 1988 & The Case Against Space + Q&A",
61308+
"output": "slet 1988 the case against space"
61309+
},
61310+
{
61311+
"input": "Laurel Halo performs Midnight Zone (Original Score to the Film by Julian Charrière) + Coby Sey (solo)",
61312+
"output": "midnight zone"
61313+
},
61314+
{
61315+
"input": "Thames Film + Q&A",
61316+
"output": "thames film"
61317+
},
61318+
{
61319+
"input": "The Ian White Lecture: Jordan Lord",
61320+
"output": "ian white lecture jordan lord"
61321+
},
61322+
{
61323+
"input": "Krol Dopalaczy (\"King of Legal Highs\") - in partnership with HOPEC",
61324+
"output": "krol dopalaczy"
61325+
},
61326+
{
61327+
"input": "Bridget Jones's Diary (25th Anniversary)",
61328+
"output": "bridget joness diary"
61329+
},
61330+
{
61331+
"input": "E.T. the Extra-Terrestrial",
61332+
"output": "e t the extraterrestrial"
61333+
},
61334+
{
61335+
"input": "Slither (20th Anniversary)",
61336+
"output": "slither"
61337+
},
61338+
{
61339+
"input": "The Lost World: Jurassic Park",
61340+
"output": "lost world jurassic park"
61341+
},
61342+
{
61343+
"input": "Bunny!!",
61344+
"output": "bunny"
61345+
},
61346+
{
61347+
"input": "The Last Blossom (Sub)",
61348+
"output": "last blossom"
61349+
},
61350+
{
61351+
"input": "Di'Anno - Iron Maiden's Lost Singer",
61352+
"output": "dianno"
61353+
},
61354+
{
61355+
"input": "Krol Dopalaczy (Poland)",
61356+
"output": "krol dopalaczy"
61357+
},
61358+
{
61359+
"input": "Days",
61360+
"output": "days"
61361+
},
61362+
{
61363+
"input": "Fitzcarraldo",
61364+
"output": "fitzcarraldo"
61365+
},
61366+
{
61367+
"input": "Mad God",
61368+
"output": "mad god"
61369+
},
61370+
{
61371+
"input": "The Muppet Movie",
61372+
"output": "muppet movie"
61373+
},
61374+
{
61375+
"input": "Tron",
61376+
"output": "tron"
61377+
},
61378+
{
61379+
"input": "Fanny and Alexander + Live performance, Swedish buns & Intro by Elin Norquist, Swedish Embassy",
61380+
"output": "fanny alexander"
61381+
},
61382+
{
61383+
"input": "Pink Palace: Please Baby Please + Short",
61384+
"output": "please baby please"
61385+
},
61386+
{
61387+
"input": "RIO FOREVER: OPENING NIGHT WITH JEREMY DELLER + SPORTSBANGER",
61388+
"output": "rio forever with jeremy deller"
61389+
},
61390+
{
61391+
"input": "Doctor Who: Projections in Time - Space and Nine",
61392+
"output": "doctor who space nine"
61393+
},
61394+
{
61395+
"input": "Sapphic screening and social – Two People Exchanging Saliva + Jackie",
61396+
"output": "two people exchanging saliva jackie"
61397+
},
61398+
{
61399+
"input": "DIAL: HELP (VHS SCREENING)",
61400+
"output": "dial help"
6124161401
}
6124261402
]

0 commit comments

Comments
 (0)