Skip to content

Parser fullname into pieces: prefix, firstname, middlename, lastname, suffix

Notifications You must be signed in to change notification settings

nijikon/fullname-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullname_parser

There are two ways to use this function:

require 'fullname/parser' Fullname::Parser.parse_fullname("Xiaohui Zhang")

=> {:last=>"Zhang", :middle=>nil, :first=>"Xiaohui", :prefix=>nil, :suffix=>nil}

or

require 'fullname/parser' include Fullname::Parser parse_fullname("Xiaohui Zhang")

=> {:last=>"Zhang", :middle=>nil, :first=>"Xiaohui", :prefix=>nil, :suffix=>nil}

About

Parser fullname into pieces: prefix, firstname, middlename, lastname, suffix

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%