Title: | Retrieve the Dictionary Definitions of English Words |
---|---|
Description: | An R interface to the 'Free Dictionary API' <https://dictionaryapi.dev/>, <https://github.com/meetDeveloper/freeDictionaryAPI>. Retrieve dictionary definitions for English words, as well as additional information including phonetics, part of speech, origins, audio pronunciation, example usage, synonyms and antonyms, returned in 'tidy' format for ease of use. |
Authors: | Steve Condylios [aut, cre] , Zane Dax [ctb] |
Maintainer: | Steve Condylios <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.2 |
Built: | 2024-11-20 03:19:32 UTC |
Source: | https://github.com/stevecondylios/dictionary |
Retrieve the dictionary definition of an English word
define(word)
define(word)
word |
The word you wish to define |
A tibble with a row for each unique combination of word, meaning, part of speech, and definition. And a column for:
"original" The original word input.
"word" The word found in the dictionary (may have alternative spelling to the original word input).
"meaning_number" Integer column; each meaning is numbered.
"part_of_speech" The word's part of speech.
"phonetic" The pronunciation of the word as expressed in the International Phonetic Alphabet.
"audio" A link to an mp3 audio file providing the word's pronunciation.
"origin" The word's origin.
"definition" The word's definition.
"example" An example of the word's usage.
"synonyms" A list of synonyms, if available.
"antonyms" A list of antonyms, if available.
## Not run: # Get the definition of "hello" define("hello") # Returns a 3 row data.frame # Homonyms (words with >1 meaning) define("bark") # Returns a 9 row data.frame # Unknown words will return a 0 row data.frame and message define("sdfsdfsdfsdfsdf") # No definition found for sdfsdfsdfsdfsdf ## End(Not run)
## Not run: # Get the definition of "hello" define("hello") # Returns a 3 row data.frame # Homonyms (words with >1 meaning) define("bark") # Returns a 9 row data.frame # Unknown words will return a 0 row data.frame and message define("sdfsdfsdfsdfsdf") # No definition found for sdfsdfsdfsdfsdf ## End(Not run)