From: Martin DeMello Date: 2003-06-11T18:10:33+09:00 Subject: Re: custom capitalization Steven Ketcham wrote: > > Is there a ruby way to enforce specific capitalization style? > > i.e. > change "JOHN DOE" to "John Doe" I've put a version of capitalize that takes punctuation into account up at http://www.rubygarden.org/ruby?StringCapitalize . You might also find the following interesting: http://zem.novylen.net/ruby/titlecase.rb - titlecase should cover proper names in most cases (no pun intended). martin