Project

nomen

0.0
No commit activity in last 3 years
No release in over 3 years
Simple human name formatter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
~> 10.1
~> 2.14
 Project Readme

Nomen

Gem Version Build Status Dependency Status Code Climate

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.