Description Usage Arguments Value See Also
View source: R/lyric_functions.R
For a provided text, this function will: - convert the sentence to a vector of words - convert each word to lower case - replace <e2><80><99> with ' - remove all punctuation other that ' - replace -in' with -ing - remove snowball stop words (using tidy_text stopwords) - stem the words with SnowballC::wordStem - convert to a unique vector
1 | get_word_stems(sentence)
|
sentence |
a space separated string of words, or a list of the same |
a vector of unique stems found in sentence
Other lyric_functions: find_bd_lyrics
,
find_line_matches
,
find_stems
, get_stem_match
,
match_all_stems
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.