The description of the weapon gives its damage type. A short sword will list the damage as 'slashing: 6-15', while a bow is 'piercing: 3-15', etc.