def process_comment(comment, colors):
    """
    Helper function that scans a text comment for any mention of a color. Returns a list containing
    lists, where each sublist contains comment metadata if a color was in the comment. If no color was in the comment, empty list is returned
    """
    color_info = []
    for color in colors:
        if ' ' + color + ' ' in comment.body.lower():
            if color == 'purple':
                color_info.append({'comment_id': comment.id,
                                   'created_utc': comment.created_utc,
                                   'color': 'violet',
                                   'subreddit_display_name': comment.subreddit.display_name,
                                   'body': comment.body,
                                   'score': comment.score})
            else:
                color_info.append({'comment_id': comment.id,
                                   'created_utc': comment.created_utc,
                                   'color': color,
                                   'subreddit_display_name': comment.subreddit.display_name,
                                   'body': comment.body,
                                   'score': comment.score})

    return color_info