import re


def alias_tpl(data):
    """Generates Mantle alias
    Output:
        @"postTime": @"post_time",
    """
    name = data['original_name']
    candidates = re.findall(r'(_\w)', name)
    if not candidates:
        new_name = data['name']
    else:
        new_name = re.sub(r'_(\w)', lambda x: x.group(1).upper(), name)
    return '@"{}": @"{}",'.format(new_name, name)