Xanthan gum also helps to keep spices and other solid bits of food evenly distributed in a liquid . Xanthan gum , guar gum and locust bean gum help to give ice cream and other frozen foods a creamy texture . As such , persons with known sensitivities or allergies to food products are advised to avoid foods including generic xanthan gum or first determine the source for the xanthan gum before consuming the food .