I just have a wonder…
Is there a way in Ruby that can help us figure out capitalizing every first letter in each independent sentence if at some point we wanted the user to type a paragraph so that we will be sure that the program will take care of it in case the user messed something up?
I mean, is there some method like
capitalize but capitalizes every letter at the beginning of each new sentence not just the very first one? If yes, how could Ruby know when the sentence begins and when it ends?
I am thinking of writing a snippet manually to do it, like:
“Hey, Ruby! If you see any (., ! or ?), please capitalize the following letter.”
This idea came to me just while writing this inquiry, but don’t know clearly how I am gonna do it.
I’m gonna give it a shot!