Digestive system The gut of the earthworm is a straight tube which extends from the worm's mouth to its anus. It is differentiated into a buccal cavity (generally running through the first one or two segments of the earthworm), pharynx (running generally about four segments in length), esophagus, crop, gizzard (usually) and intestine.