01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, and nutmeg until well combined.
03 - In a large bowl, cream the butter, brown sugar, and granulated sugar until light and fluffy, about 2-3 minutes.
04 - Beat in the egg and vanilla extract until well combined and smooth.
05 - Gradually add the dry ingredients to the wet mixture, mixing just until incorporated. Do not overmix.
06 - Gently fold in the diced pear and nuts, if using, until evenly distributed throughout the dough.
07 - Drop tablespoonfuls of dough onto the prepared baking sheets, spacing them 2 inches apart to allow for spreading.
08 - Bake for 13-15 minutes, until the edges are golden and the centers are set.
09 - Cool on the baking sheets for 5 minutes before transferring to a wire rack to cool completely.