Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if a word exists in dictionary javascript

function check_if_word_exists(word) {
    const url = "https://api.wordnik.com/v4/word.json/" + word + "/definitions?limit=200&includeRelated=false&useCanonical=false&includeTags=false&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5";

    $.ajax({
        type: "GET",
        url: url
    }).done(function (result) {
        console.log("word exists");
    }).fail(function () {
        console.log("word does not exist");
    });
}
 
PREVIOUS NEXT
Tagged: #check #word #exists #dictionary #javascript
ADD COMMENT
Topic
Name
9+6 =