get_definition: Get English definitions of individual words from nltk

View source: R/get_translations.R

get_definitionR Documentation

Get English definitions of individual words from nltk

Description

This will match up to 3 meanings where the requested word and part of speech match. For more information on synsets, see the Open Multilingual Wordnet documentation.

Usage

get_definition(token, part_of_speech)

Arguments

token

an English word to pass to nltk's synset search

part_of_speech

one of "v" -verb, "a" - adjective, "n" - noun, or "r" - adverb

Value

a character vector of length one, with definitions separated by ";\n"


antdurrant/word.lists documentation built on July 20, 2023, 3:57 p.m.