Tekstiviesti: Fundamentals of pattern recognition