def deduce_language(words_list, lexi_file_name):
    '\n    This function will deduce language between French and English.\n    Using the lexical words found on the text.\n    '
    with open(lexi_file_name, 'r', encoding=DEFAULT_CODEC) as fp:
        lexical_words = fp.read()
    lexical_words = lexical_words.split(',')
    for word in words_list:
        if (word in lexical_words):
            if (lexical_words.index(word) <= FRENCH_LIST_LENGTH):
                return 'French'
            else:
                return 'English'
    return 'Not found'
This function will deduce language between French and English.
Using the lexical words found on the text.
def deduce_language(words_list, lexi_file_name):
    '\n    This function will deduce language between French and English.\n    Using the lexical words found on the text.\n    '
    with open(lexi_file_name, 'r', encoding=DEFAULT_CODEC) as fp:
        lexical_words = fp.read()
    lexical_words = lexical_words.split(',')
    for word in words_list:
        if (word in lexical_words):
            if (lexical_words.index(word) <= FRENCH_LIST_LENGTH):
                return 'French'
            else:
                return 'English'
    return 'Not found'