Example:
Pico de gallo:
onion, tomato, and cilantro
or
onions, tomatoes, and cilantro
when one or less onion and one or less tomato has been chopped for use in the recipe.
Example:
Pico de gallo:
onion, tomato, and cilantro
or
onions, tomatoes, and cilantro
when one or less onion and one or less tomato has been chopped for use in the recipe.
That isn't an easy question to answer without more context. Either is fine in the very contextually free manner you have specified. But it very much depends on the nature of the sentence. For example:
Add half a chopped onion and stir.
Is correct, since you are talking about one onion which has been chopped, and then adding half of the result.
Add a half onion, chopped, and stir.
Is also correct, since you are adding one of the thing, the thing being a half onion.
Add 0.5 onions, chopped, and stir.
Here we are using a numeric unit of a mass quantity -- onion -- and so we need a plural, since 0.5 is not "one". However, that is a kind of odd thing to say.
Add 2 pounds of chopped onions and stir.
This is fine just fine, however, this:
Add 2 pounds of chopped onion and stir.
Is also fine. In the first case you are using onions as discrete things, and so since you chopped a bunch of them to get to 2 pounds, you need a plural. However, in the second case you are using onion as a mass quantity, that is to say, you are not talking about individual onions, but onion material, then you can use a singular.
Which is a long roundabout way of saying "it depends."