add function to search for if a speech belongs to a subgroup