Text this: Probability maximization via Minkowski functionals