bougyman / name_parse

A ruby name parser. Used to normalize Proper Human Names into a reusable object

This URL has Read+Write access

bougyman (author)
Thu May 07 09:58:05 -0700 2009
commit  820c68beef18812c11a60ce386a8888acfe11a40
tree    eb1efa23672ee67f14c2cbfef054674b56e63167
parent  49e0f4100fe4d3e404ff748b5dc6cf515b58b89a
README
=========================================================
Name Parse
Copyright (c) 2009 The Rubyists (Jayson Vaughn, Tj Vanderpoel, Michael Fellinger, Kevin Berry) 
Distributed under the terms of the MIT License.
==========================================================

About
-----
A ruby library for turning arbitrary name strings such as "Dr Helen Hunt", "Mr James T. Kirk" into a 
standardized object usable as 
  parsed = NameParse::Parser.new("Dr Helen Hunt")
  puts "%s %s" % [parsed.first, parsed.last]


Requirements
------------
- ruby (>= 1.8)

Usage
-----

Example of using on a list:

  bougyman@zero:~/git_checkouts/name_parse$ irb -r lib/name_parse
  irb(main):001:0> list = ["Jayson Vaughn", "Dr Helen Hunt",  "Mr James T. Kirk"]
  => ["Jayson Vaughn", "Dr Helen Hunt", "Mr James T. Kirk"]
  irb(main):002:0> list.map { |n| p = NameParse[n]; [p.first, p.last] }
  => [["Jayson", "Vaughn"], ["Helen", "Hunt"], ["James", "Kirk"]]
 

Support
-------
Home page at http://github.com/bougyman/name_parse
#rubyists on FreeNode