Identifying Boolean operators in a list