def inner(name_or_names): names = name_or_names if isinstance(name_or_names, list) else [name_or_names] words = [] for name in names: if name: words.extend(tokenize_name(name)) return f(words)
def join_names(*names): """Given a list of names, join them into a single space-separated name.""" result = [] for name in names: result.extend(tokenize_name(name)) return ' '.join(result)
def tokenize(name): return name_style_converter.tokenize_name(name)