The grammar of (micro)biological diversity