Classification of tannins