Text this: Similarity-Based Pattern Analysis and Recognition