# How can I compare the grammatical complexity between two texts using their sentences dependency length?

This is a continuation to the following thread.

I have two texts, common English texts such as news articles and informative texts versus a technical textbook. I want to compare the grammatical complexity between those texts using their sentences dependency length in order to conclude whether they both have the same level of complexity or not. I was thinking about using the p-value as an evidence against the null hypothesis. Here is how the data would look like:

Text 1

ID  Dependency Length   Sentence Length
0   13                  7
1   5                   3
2   20                  8


Text 2

ID  Dependency Length   Sentence Length
0   8                   5
1   10                  7
2   14                  7


By the way, I am using python.