Text this: Introduction to nonparametric detection with applications