src/bbc_meet_spotify/songs.py
def clean_string(string):
        """
        Converts any accented character to the base type, leaves alphanumeric and apostrophes
        All other characters are replaced with whitespace, finally split at feat. and the first part taken
        :param string: input string to be cleaned
        :return: cleaned string
        """
        new_string = "".join(
            [char for char in unicodedata.normalize("NFD", string) if unicodedata.category(char) != "Mn"]
        )
        new_string = re.sub("[^A-Za-z0-9.'’]+", " ", new_string)
        return new_string.split(" feat.")[0].split(" ft.")[0]

        Converts any accented character to the base type, leaves alphanumeric and apostrophes
        All other characters are replaced with whitespace, finally split at feat. and the first part taken
        :param string: input string to be cleaned
        :return: cleaned string
        
Converts any accented character to the base type, leaves alphanumeric and apostrophes
All other characters are replaced with whitespace, finally split at feat. and the first part taken
Converts any accented character to the base type leaves alphanumeric and apostrophes All other characters are replaced with whitespace finally split at feat . and the first part taken
def clean_string(string):
        new_string = "".join(
            [char for char in unicodedata.normalize("NFD", string) if unicodedata.category(char) != "Mn"]
        )
        new_string = re.sub("[^A-Za-z0-9.'’]+", " ", new_string)
        return new_string.split(" feat.")[0].split(" ft.")[0]
def clean_string ( string ) : new_string = "" . join ( [ char for char in unicodedata . normalize ( "NFD" , string ) if unicodedata . category ( char ) != "Mn" ] ) new_string = re . sub ( "[^A-Za-z0-9.'’]+",  " ",  n w_string) return new_string . split ( " feat." ) [ 0 ] . split ( " ft." ) [ 0 ]
Converts any accented character to the base type, leaves alphanumeric and apostrophes
All other characters are replaced with whitespace, finally split at feat.
Converts any accented character to the base type leaves alphanumeric and apostrophes All other characters are replaced with whitespace finally split at feat .
"""
        Converts any accented character to the base type, leaves alphanumeric and apostrophes
        All other characters are replaced with whitespace, finally split at feat. and the first part taken
        :param string: input string to be cleaned
        :return: cleaned string
        """
None
string
input string to be cleaned
input string to be cleaned