Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Function convert the determinant to digit                    
Input=word                          Output=digit (string form)   

        def convert_to_digit(det):
    """
    Function convert the determinant to digit                    
    Input=word                          Output=digit (string form)   
    """

    #init
    num = k = 0

    for n in ResourcePool().numbers:
        if det.startswith(n[1]):
            return det

    while k < len(det):
        if det[k] != '+':
            k += 1
        else:

            num = word_to_digit(det[:k], num)
            det = det[k + 1:]
            k = 0

    num = word_to_digit(det, num)
    return str(num)
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_nominal_structure.py   Dialogs(Download)
        if other_functions.number(nom_gr.det[0]) == 1:
            nom_gr._quantifier = 'DIGIT'
            nom_gr.det = [other_functions.convert_to_digit(nom_gr.det[0])]
 
        #Here we will use the quantifier list

src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_nominal_group.py   Dialogs(Download)
    for i in adj_list:
        if i.endswith('th') and other_functions.number(i) == 2:
            adj_list[adj_list.index(i)] = other_functions.convert_to_digit(i) + 'th'
 
    return adj_list