Charge regulation enables anionic hydroxypropyl guar-borate adsorption onto anionic and cationic polystyrene latex.