define {dictionaRy} | R Documentation |
Retrieve the dictionary definition of an English word
Description
Retrieve the dictionary definition of an English word
Usage
define(word)
Arguments
word |
The word you wish to define |
Value
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.
Examples
## 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)