returning json of words and synonyms