Module nameparser
[hide private]
[frames] | no frames]

Module nameparser

source code

Various routines that deal with names

Functions [hide private]
 
formatfullname(name)
Returns a string of the name, including all fields that are present
source code
 
formatsimplename(name)
like formatname, except we use the first matching component
source code
 
formatsimplefirstlast(name)
Returns the name formatted as First Middle Last
source code
 
formatsimplelastfirst(name)
Returns the name formatted as Last, First Middle
source code
 
getfullname(name)
Gets the full name, joining the first/middle/last if necessary
source code
 
_getparts_FML(name) source code
 
_getparts_LFM(name) source code
 
getparts(name)
Returns (first, middle, last) for name.
source code
 
getfirst(name) source code
 
getmiddle(name) source code
 
getlast(name) source code
Variables [hide private]
  lastparts = ['van', 'von', 'de', 'di']
Function Details [hide private]

getparts(name)

source code 

Returns (first, middle, last) for name. If the part doesn't exist then a blank string is returned