Sift together flour, baking powder, baking soda and salt.
Beat butter and sugar until light and fluffy.
Add eggs, one at a time, beating well after each addition, then beat in vanilla an coffee liqueur.
Add half the flour mixture and mix until well blended.
Add the sour cream and mix just until combined.
Add the second half of the flour mixture and beat at low speed until batter is smooth.
Divide batter among paper cupcake liners, filling about 2/3 full.
Bake until toothpick comes out clean, about 15-17 minutes depending on the size of your cupcake liners.
Cool comletely before frosting.