get_keywords: Retrieve keywords for a chapter

View source: R/get_keywords.R

get_keywordsR Documentation

Retrieve keywords for a chapter

Description

Given an URL to a bookdown chapter, extract the keywords

Usage

get_keywords(url, min_occurrence = 4, udmodel = NULL)

Arguments

url

a url to a bookdown chapter e.g. "https://jhudatascience.org/Documentation_and_Usability/what-does-good-documentation-look-like.html"

min_occurrence

A numeric number specifying the minimum number of times a keyword should appear for it to stay in the list. Default is 4.

udmodel

A udmodel passed in for keyword determination. Will be obtained using udpipe::udpipe_download_model(language = "english") if its not given.

Value

a data frame of keywords

Examples


# Declare chapter URL
url <- "https://jhudatascience.org/Documentation_and_Usability/other-helpful-features.html"

keywords_df <- get_keywords(url)

jhudsl/cow documentation built on April 17, 2025, 3:14 p.m.