system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How does your stomach know when the food is bad and decides to stop processing and starting pushing it back where it came from?

After a night of hurling (non alcohol induced) I had plenty of time to wonder about it...
gpt
Our stomach doesn’t know the food is bad. Instead, the cause of the food spoilage is bacteria. When the bacteria contact the environment in the stomach the organisms break open and spill their cellular contents into the stomach. Those contents act as an irritant to the GI system, leading to nausea and contractions of the stomach and esophagus that lead to vomiting.