f"\nThis sentence contained mentioned {transitionWordCount} TRANSITION words in it, and {Mcount} CONJUNCTION words \n")
retVal.append(f"\n This sentence contained mentioned {transitionWordCount} TRANSITION words in it, and {Mcount} CONJUNCTION words \n")
print(" Sentence is too long! You shoud not use more than 20 words in a single sentence!\n")
retVal.append("\n Sentence is too long! You shoud not use more than 20 words in a single sentence!\n")
ifword_count>=20:
print("\n This sentence contained mentioned {transitionWordCount} transition words in it.\n")
retVal.append(f"\n This sentence contained mentioned {transitionWordCount} transition words in it.\n")
print(" Sentence is too long! You should not use more than 20 words in a single sentence!\n")
retVal.append("Sentence is too long! You shoud not use more than 20 words in a single sentence!\n")
iftransitionWordCount==1andword_count>20:
print("Try to split senetce to two sesentences from transition word!\n")
retVal.append("Try to split senetce to two sesentences from transition word!\n")
iftransitionWordCount>=2andword_count>20:
print(
" To make your English perfect make sure you don't use two transition words in a single sentence. Try to split senetce to two sesentences from transition words or conjunction!\n\n")
retVal.append(" To make your English perfect make sure you don't use two transition words in a single sentence. Try to split senetce to two sesentences from transition words or conjunction!\n\n")
return{
"message":retVal,
"score":scoreForLengthySentences
}
print(processGrammar("I'll be there in time, but I also have to do my homhomework too,although I should finish them,so I may be late. And one more thing, can I use your car ?. Anyway after today I also need to work hard because my exam is in the next month."))