def readable_bool(b):
    """Takes a boolean variable and returns "yes" for true and "no" for false
    as a string object.

    :param b: boolean variable to use
    """
    if b:
        return "yes"
    else:
        return "no"