The three rules of Ruby Q.:
Please do not post any solutions or spoiler discussion for this quiz
48 hours have passed from the time on this message.
Support Ruby Q. by submitting ideas as often as you can:
Suggestion: A [QUIZ] in the subject of emails about the problem helps
on Ruby T. follow the discussion. Please reply to the original quiz
if you can.
by elliot temple
sometimes i type in all or mostly lowercase. a friend of mine says it’s
read essays with no capital letters. so the problem is to write a method
takes a string (which could include many paragraphs), and capitalizes
should be capitalized. at minimum it should do the starts of sentences.
solutions could range from simple (a few regexes) to complex (lots of
cases are possible, like abbreviations that use a period). an addition
using a dictionary to find proper nouns and capitalize those. it could
the user about cases the program can’t figure out. or log them.
i can provide an example solution (regex based) and a list of reasons it
work very well, if you want.
this email itself works nicely
this one is hard. sometimes i might want to write about gsub vs. gsub!
the “.” or “!” causing any capitalization (or the punctuation in
one problem is maybe dealing with sentences that contain periods is too