A food diary or an elimination diet are the usual ways to figure it out. But if I were you, I'd start with the assumption that you DON'T have any allergies or intolerances, that it's just the IBS. If after a few months of following Heather's suggestions, you start noticing that certain foods that should be okay are causing you problems then you can start looking for allergies or intolerances.