def rated_as_bool(text):
    """
    Returns true if param = "rated" and false otherwise
    (usually if param = "unrated"). Used inside different parsing context.
    :param text: "rated" or "unrated"
    """
    if text == 'rated':
        return True
    else:
        return False
