module WolfCore::Barton::Parsing
def split_name(full_name)
def split_name(full_name) words = full_name.split(' ') if words.length == 2 return { firstname: words[0], lastname: words[1] } end name = words[0..-2].join(' ') lastname = words[-1] return { firstname: name, lastname: lastname } end