Description Usage Arguments Value Examples
Retrieve the dictionary definition of an English word
1 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.