Sha256: 85570e331496c90b153e55871dd525c3ab27c6c334f01b79ab47ee4b70a18091

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

A person's name is trivial when you validate the input at data entry
time.  That is not always possible, and for my enterprise it is almost
never possible.

References: http://www.onlineaspect.com/2009/08/17/splitting-names/

require "nameable"

n = Nameable::Latin.new.parse("Mr. Chris K Horn Esquire")

puts n.prefix
puts n.first
puts n.middle
puts n.last
puts n.suffix

puts n.to_fullname


-chorn

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nameable-0.1.1 README