ABSTRACT In linguistics and natural language processing, measuring text features is crucial for representing and revealing the properties of texts in terms of topics, genres, sentiment and more. Current methods predominantly rely on the frequency of linguistic units and rarely consider the syntagmatic properties of these units, which can reflect deeper linguistic characteristics (e.g. syntax and pragmatics). This paper proposes a general method for calculating the sequence complexity of text. By combining the features of word length and word frequency, two specific implementations of this method are provided. Using these two formulas, word sequence complexity of text based on the Brown Corpus and the Gutenberg Corpus is calculated. The results show that word sequence complexity of text indicates a characteristic of gradual stabilization. By comparing random texts with natural texts, it is found that word sequence complexity is influenced by syntactic rules rather than sentence order, and natural texts tend to alternate between words of varying lengths and frequencies. Classification experiment results indicate that the proposed word sequence complexity outperforms commonly used quantitative indicators for representing the genre of text, such as TTR, information entropy, Zipf’s law parameters and motifs.
Read full abstract