Ejemplo n.º 1
0
def find_words_with(characters):
    f = open(word_file)

    lines = f.read().splitlines()

    f.close()

    finder = Finder()

    matching_words = finder.words_that_contain_any(lines, characters)

    return jsonify(total_words = len(lines), matching_words = len(matching_words), words = matching_words)