Title Case
20 May 2008 · development
Gruber has whipped up a tool he calls Title Case:
It’s pretty easy to write a non-clever title-casing function. The simplest way is to just capitalize the first letter of every word. That’s not right, though, because it’ll leave you with capitalized small words like if, in, of, on, etc. What you want is something that not only knows not to capitalize such words, but will un-capitalize them if they’re erroneously capitalized in the input.
Now if somebody has the time, we need this rewritten in Ruby so it’s useful to the rest of us.

Sorry, comments have been disabled.