Subject: why you can eat tomatoes
They are nightshades, which are generally deadly to humans.

https://www.sciencealert.com/t...

They also mention potatoes. I read a while back that if you potatoes have a green hue, don't eat them. I may have to research that a bit more, but based on this article, I'm betting it has something to do with a similar mechanism.