harvester/utils/__init__.py
def normalize_case(text):
    """
    Normalize case of some (all-{upper|lower}case) text.
    Uses a wordlist to determine which words need capitalization.
    """

    # todo: figure out a smarter way :)
    SPECIAL_CASE_WORDS = [
        'Trento', 'Provincia',
    ]
    text = text.lower()
    for word in SPECIAL_CASE_WORDS:
        text.replace(word.lower(), word)
    return text.capitalize()

    Normalize case of some (all-{upper|lower}case) text.
    Uses a wordlist to determine which words need capitalization.
    
Normalize case of some (all-{upper|lower}case) text.
Uses a wordlist to determine which words need capitalization.
Normalize case of some ( all - { upper|lower } case ) text . Uses a wordlist to determine which words need capitalization .
def normalize_case(text):
    SPECIAL_CASE_WORDS = [
        'Trento', 'Provincia',
    ]
    text = text.lower()
    for word in SPECIAL_CASE_WORDS:
        text.replace(word.lower(), word)
    return text.capitalize()
def normalize_case ( text ) : SPECIAL_CASE_WORDS = [ 'Trento' , 'Provincia' , ] text = text . lower ( ) for word in SPECIAL_CASE_WORDS : text . replace ( word . lower ( ) , word ) return text . capitalize ( )
Normalize case of some (all-{upper|lower}case) text.
Normalize case of some ( all - { upper|lower } case ) text .
"""
    Normalize case of some (all-{upper|lower}case) text.
    Uses a wordlist to determine which words need capitalization.
    """ # todo: figure out a smarter way :)
text