def process_logical(text):
    """
    Turn text into the corresponding logical.

    Arguments:
    text - text to be coerced to a logical, if a corresponding logical exists
    """
    text = str(text)
    if (text == 'true' or text == 'True' or text == 'TRUE' or text == 'T' or
        text == 't' or text == '1' or text.lower() == 'yes'):
        return True
    elif text == 'false' or text == 'False' or text == 'FALSE' or text == 'F' or text == 'f' or text == '0' or text.lower(
        ) == 'no':
        return False
    else:
        print('Input has no logical analogue.')
        return text
