For the purposes of this Directive, the following definitions shall apply:
1. Fruit:
— fresh, sound fruit, free from deterioration, containing all its essential constituents and sufficiently ripe for use, after cleaning, removal of blemishes, topping and tailing,
— for the purposes of this Directive, tomatoes, the edible parts of rhubarb stalks, carrots, sweet potatoes, cucumbers, pumpkins, melons and water-melons are considered to be fruit,
[...]
EUROPEAN COUNCIL DIRECTIVE 2001/113/EC, ANNEX III
(via @Cataglyfilosofi)