nameofnames.write("\n----------------------------------------------") nameofnames.write("\nNeutral/Mixed Comments") c.namethatname(nameofnames, letter, text, 3, filename) overallSecondarys = c.nonTrivial(positive,numline, results, ignoreWords, filename) for overallSecondary in overallSecondarys: overall = c.topicList(overallSecondary, filename, ignoreWords) results.write("\n************************************************") results.write("\nSecondary Analysis of " + overallSecondary + ": ") c.nonTrivialSecondary(overallSecondary, positive, c.wordCount(filename, overallSecondary), results, ignoreWords, filename) #Checked Words c.checkedWords(filename, specificLocation, numline, words, checkWords, results) #WordCloud c.wordcloud(overallresult,negativeresult,positiveresult, testy, font) #Big Brother counts = counts + 1 else: counter = counter +1 if category == "Y": categories = c.categoryBreakdown(filename) for cat in categories: print(cat) f = open(filename, "rb") numline = len(f.readlines())-4 f.close()