The ability to detect chemicals through gustatory receptors in the mouth, including those on the tongue; the palate; the pharynx; and the epiglottis.