Text this: Discrimination in a General Algebraic Setting