Text this: Multigrammatical modelling of neural networks