Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 688 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 688 Bytes

Circle CI

capitalize-names

Simple proper name capitalization that handles edge cases. Based off of http://dzone.com/snippets/capitalize-proper-names

Installation

gem install capitalize-names

Quick Start

require 'capitalize_names'

CapitalizeNames.capitalize("TATE") # => "Tate"
CapitalizeNames.capitalize("JoHn O'NEILL") # => "John O'Neill"
CapitalizeNames.capitalize("macarthur") # => "MacArthur"
CapitalizeNames.capitalize("rick johnson-smith") # => "Rick Johnson-Smith"
CapitalizeNames.capitalize("bob jones, iii") # => "Bob Jones, III"