Tekstiviesti: The mathematics of syntactic structure