module Nomener::Titles

Module for title information

Constants

TITLES

Internal: Regex for matching name prefixes such as honorifics

and other formalities

Public Class Methods

parse_title!(nm) click to toggle source

Internal: pull off a title if we can

Modifies given string in place.

nm - string of the name to parse

Returns string of the title found or and empty string

# File lib/nomener/titles.rb, line 123
def self.parse_title!(nm)
  return '' if nm.to_s.empty?
  dustoff gut!(nm, TITLES)
end