Commit ed538e53 authored by Chalika Mihiran's avatar Chalika Mihiran

Delete FillerWords.py

parent 40af23b7
def wordcount(filename, listwords):
try:
file = open(filename, "r")
read = file.readlines()
file.close()
for word in listwords:
lower = word.lower()
count = 0
for sentance in read:
line = sentance.split()
for each in line:
line2 = each.lower()
line2 = line2.strip("!@#$%^&*(()_+=")
if lower == line2:
count += 1
print(lower, ":", count)
except FileExistsError:
print("Have not filler word")
print("********Analyze Filler Word in your Speech********");
wordcount("momo.txt", ["Like","okay" ,"so", "actually" ,"basically","right"])
ScoreforFillerwords = 60/100
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment