How to determine the level of a piece of text?

I think the using of word frequency is a mandatory part of technology.
But idea to calculate words per sentence and syllables per sentence is great! This calculation might become an important part too. Can we combine both of these parts?