a constructor version of textAnalysis :smile: