Text this: On the theory and practice of anomaly detection in time series