Hi, I am writing a program that counts the number of sentences in a string.
I count the number of '.' '?' '!'. However, there are Mr. Mrs. PhD. Dr. ..... situations. Any help please?
if I use ispunct, the program will count all the punctuation. The text I have to read is more than 3000 characters. I cannot eliminate all other punctuations that I dont need to count.