Extract words from MS Word files, transform counts to JSON format, and organize documents into groups