It depends on the recipe and how it's written. For these cookies, my recipe says 1/2 cup pecans, chopped. Since "chopped" comes after the ingredient, you measure the nuts first then chop them. If the recipe states "chopped" in front of the nut, then you would chop the nuts first then measure them.