This is called an "index", or a "proxy". This is because word length is correlated with word frequency, and word frequency is correlated with word difficulty. "Longer words are, "on average", harder than short words". 