A species that can serve as both a proton donor and a proton acceptor is called amphiprotic.
Whether an amphiprotic species behaves as an acid or as a base depends
on the equilibrium constants for the two competing reactions. For bicarbonate, the
acid dissociation constant for reaction 6.8