Text this: Fundamentals of pattern recognition