Well, you cannot have a single list and two categories namely fruit and words starting with 'a’. If you had more features you could use ML models like I’ve use RFC here. But for a simpler case like yours you could maintain lists and take the intersection.