Nomen
Simple library for formatting (and maybe later, parsing) human names.
Description
The name is latin for "name"; no misandry intended. For now I'm only handling my current use case, which is very basic formatting of American-style names.
I am aware of the complexity of human names.
Synopsis
require 'nomen'
n = Nomen.new(first: 'John', middle: 'Jacob', last: 'Smith', suffix: 'M.D.')
n.format # => "John Jacob Smith M.D."
n.format(:inverted) # => "Smith, John Jacob M.D."
n.middle = nil
n.format # => "John Smith M.D."
n.format(:inverted) # => "Smith, John M.D."Copyright
Copyright (c) 2013 Abe Voelker. Released under the terms of the MIT license. See LICENSE for details.