Modify ALERT's details_to_criteria function to match intent