some variations on readPatns... including TF-IDF add-on