Assuming you're not some sort of AI program and are, in fact, a human that eats you'll already know how.
1) By experience. You'll have eaten food. You'll know what you can eat and have no issues with and what you can't and which 'rot your guts' or which give you a rash.
2) By having an allergy test.
3) By searching online. Look up 'easily digestible'.