import string


def deriveArtistFromName(name):
    """
    Ensure that the given name doesnt have usual suspects like "Featuring" or "Ft" or " with" to attempt to return just
    the artist name

    :param name: str
    :return: str
    """
    if not name:
        return name
    removeParts = [" ft. ", " ft ", " feat ", " feat. "]
    for removePart in removeParts:
        i = name.lower().find(removePart)
        if i > -1:
            name = name[:i]
    return string.capwords(name)