Text this: Generalized Distance Functions in the Theory of Computation.