Analysis of gums and mucilages