birdnik_get: Extract components from word metadata

Description Usage Arguments Value Examples

Description

these functions allow you to extract particular components from wordnik definitions; get_pos the unique parts-of-speech, get_text the unique definitions for each word, and get_score the unique word scores.

Usage

1
2
3
4
5
get_pos(results)

get_text(results)

get_score(results)

Arguments

results

the results of a call to word_definitions.

Value

a data.frame of two columns - word (containing the word) and a second column of score, text or part_of_speech depending on the function you called.

Examples

1
2
3
4
5
6
## Not run: 
# Retrieve the unique parts-of-speech for 'no' and 'kings'
no_kings <- word_definitions(key = "madeupkey", words = c("no", "kings"))
get_pos(no_kings)

## End(Not run)

Ironholds/birdnik documentation built on Feb. 6, 2022, 2:25 p.m.