Various functions to make bag-of-words approaches to text analysis more user-friendly