def auto_colourize(text):
    """
    Automatically convert text to suitable colour
    :param text:
    :return:
    """
    text = text.lower()
    if text == 'critical':
        return 'error'
    if text == 'high':
        return 'warning'
    if text == 'medium':
        return 'dark'
    if text == 'low':
        return 'success'
    return text
