Пример #1
0
def synonyms():
    ret = str(request.args['query'])
    html = ""
    synonyms = Dictionary.find_synonyms(ret)
    for syn in synonyms:
        html = html + "<li class='list-group-item'>" + str(syn) + "</li>"
        print(syn)
    return html
Пример #2
0
def synonyms():
    ret = str(request.args['query'])
    return Dictionary.find_synonyms(ret)