Question: How is diversity measured?
Answer: diversity score as the ratio of observed number versus optimal number
Alternative answer:  we look at language constructions used and compute the corresponding diversity score as the ratio of observed number versus optimal number