Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Function return 1 if the word starts with upper case letter                       
Input=word               Output=flag(0 if no upper case or 1 if upper case)        

        def find_cap_lettre(word):
    """
    Function return 1 if the word starts with upper case letter                       
    Input=word               Output=flag(0 if no upper case or 1 if upper case)        
    """
    if word[0] in ResourcePool().capital_letters:
        return 1
    return 0
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/preprocessing.py   Dialogs(Download)
 
    #Using flag is for the ending of this function
    if other_functions.find_cap_lettre(sentence[0]) == 1:
        flg = 1
        sentence[0] = sentence[0][0].lower() + sentence[0][1:]
 
    #If the sentence begins with upper case
    if other_functions.find_cap_lettre(sentence[0]):
 
        #We convert upper case to lower case if it is not 'I'
 
            #In the case of a propre name
            while nominal_group != [] and begin_pos != 0 and other_functions.find_cap_lettre(nominal_group[0]) == 1:
                begin_pos -= 1
 

src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_nominal_group.py   Dialogs(Download)
    #If it is a proper name
    counter = begin_pos
    while counter < len(sentence) and other_functions.find_cap_lettre(sentence[counter]) == 1:
        counter += 1
 
        #If there is a proper name
        counter = sentence.index(x)
        while counter < len(sentence) and other_functions.find_cap_lettre(sentence[counter]) == 1:
            counter += 1
            #Not equal => there is a proper name