They're eaten, unless after sweet (4)
I believe the answer is:
peas
If this is the answer I cannot explain how the clue works.
Can you help me to learn more?
(Other definitions for peas that I've seen before include "Seeded vegetables" , "Pulses" , "Leguminous seeds" , "Edible seeds" , "Green vegetable seeds" .)