module Nomener::Suffixes

Module for suffix information

Constants

SUFFIXES

Internal: Regex to match suffixes or honorifics after names

Public Class Methods

parse_suffix!(nm) click to toggle source

Internal: pull off what suffixes we can

Modifies given string in place.

nm - string of the name to parse

Returns string of the suffixes found or and empty string

# File lib/nomener/suffixes.rb, line 49
def self.parse_suffix!(nm)
  return '' if nm.to_s.empty?

  suffix = dustoff gut!(nm, SUFFIXES)
  Cleaner.cleanup! nm
  suffix
end