Preheat oven to 350 degrees. Line a baking sheet with parchment paper; set aside.
In a large bowl, sift together flour, baking soda, baking powder and salt. Set aside.
In a medium bowl combine sugar, cinnamon, ginger, cardamom, allspice and black pepper. Remove 1/4 cup of the sugar-spice mixture, set aside to reserve for rolling the cookies.
In the bowl of a stand mixer fitted with the paddle attachment or in a large bowl with an electric mixer, beat the butter and sugar-spice mixture until light and fluffy, about 3 minutes.
Beat in egg and vanilla extract, combine until fully incorporated.
Slowly blend in dry ingredients mixing until just combined.
Using a small scoop (2 teaspoons) roll dough into balls and then into the reserved sugar-spice mixture. Place dough balls on prepared baking sheet about 1 1/2 inches apart.
Bake in preheated oven for 8 to 10 minutes.
Let stand on baking sheet two minutes before removing to cool on wire racks.
Notes
Store cookies in an airtight container at room temperature for up to 3 days.