charCategorizer

Return a function that can categorize strings into one of: Word, Space, or Other.