Text this: Modeling Phase Transitions in the Brain