Since it eats both plant and animal material, the earthworm is classified as an omnivore.
(it; eats; both plant and animal material) (the earthworm; is classified; as an omnivore)
it the earthworm
eats is classified
both plant and animal material
as an omnivore