Text this: Chemometrics for pattern recognition