@hawari wrote:
Thanks RW9 for your reply!
What I want to do is : Make only letter capital in each sentence. So, I want to have as OUTPUT for variable "X";
I have an exercise, I have to find a solution? I am tired !" ;
Do any of your sentences contain numeric values such as 23.4 or $123.45? Or URLs such as www.somesite.com? or emails? or acronyms or abbreviations (I.B.M. Mr. Dr. Mrs. Jr. )?
These are instances of "period" not ending a sentence.
Also note that your example text contains exactly 0 periods: comma, question mark and exclamation but no period. Depending on exact content you can't rely on ! or ? to end sentences either.
If you can provide a rule that always works for your data to identify a sentence that can likely be programmed but be prepared for exceptions to cause unexpected output. OR to find things incorrectly capitalized because someone did that on data entry.
Identifying "sentence" from text is not a trivial exercise which is one reason text analytics systems exist and are somewhat pricey.
... View more