Text this: Theory of partial coherence