Skip to content

Simple proper name capitalization that handles edge cases

License

Notifications You must be signed in to change notification settings

bionomia/capitalize-names

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Simple proper name capitalization that handles edge cases

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%