WARNING: DO NOT USE! UNDER CONSTRUCTION!
This library is a long and arduous journey towards achieving automated detection of a wide variety of sentence patterns in Chinese text. Chinese text is turned into dependency grammar graphs using datalinguist. The Semgrex DSL is then used to locate instances of known sentence patterns within these graphs.
While the student of the Chinese language can look up individual words in a dictionary, various common patterns found in Chinese sentences will at times make this a more difficult endeavour than it should be. That is because many sentence patterns slightly shift the meaning of certain key words in the sentence, unbeknownst to the student.
What the student seemingly needs is another dictionary, this one to look up Chinese sentence patterns (these books do exist). However, sentence patterns are much more dynamic than the blocks of Chinese characters that we typically call "words" and their entries unfortunately can't be found as easily. Luckily, these days we can use NLP to automate much of the grammatical analysis required to locate sentence patterns; that is the point of this library.