def shape_tag(child):
    if LOWER_COLON.findall(child['k']):
        key = child['k'].split(':', 1)[1]
        if key == 'Street' or key == 'street':
            value = cleanStreeZip.clean_street_name(child['v'])
        elif key == 'postcode':
            value = cleanStreeZip.clean_zip(child['v'])
        else:
            value = child['v']

        type1 = child['k'].split(':', 1)[0]

    else:
        key = child['k']
        if key == 'Street' or key == 'street':
            value = cleanStreeZip.clean_street_name(child['v'])
        elif key == 'postcode':
            value = cleanStreeZip.clean_zip(child['v'])
        else:
            value = child['v']

        type1 = 'regular'

    return key, value, type1