showing results for - "check if a word exists in dictionary javascript"
Lyle
10 Jan 2019
1function check_if_word_exists(word) {
2    const url = "https://api.wordnik.com/v4/word.json/" + word + "/definitions?limit=200&includeRelated=false&useCanonical=false&includeTags=false&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5";
3
4    $.ajax({
5        type: "GET",
6        url: url
7    }).done(function (result) {
8        console.log("word exists");
9    }).fail(function () {
10        console.log("word does not exist");
11    });
12}