def pretty_name(field):
    """
    Convert DOAP element name to pretty printable label
    Shorten some labels for formatting purposes

    @param field: Text to be formatted
    @type field: C{string}

    @return: formatted string
    @rtype: string
    """
    if field == 'programming_language':
        field = 'Prog. Lang.'
    elif field == 'created':
        field = 'DOAP Created'
    else:
        field = field.capitalize()
        field = field.replace('_', ' ')
        field = field.replace('-', ' ')
    return field
