Factors influencing vocabulary in a text