Text this: Invariants in partition classes