new_rhymes: Find rhymes for a hymn (or something else)

View source: R/new_rhymes.R

new_rhymesR Documentation

Find rhymes for a hymn (or something else)

Description

Similar to cut_up(), new_rhymes() takes a piece of tokenized text input, and replaces words in rhyme scheme with words that rhyme.

Usage

new_rhymes(hymn, df)

Arguments

hymn

A tokenized hymn that needs new rhymes, possible output from salmer::cut_up() in the same format as annotated_hymns

df

A tibble based on output from udpipe::udpipe_annotate()

Value

A tibble with new column token_new with a suggested replacement for column token.


lassehjorthmadsen/salmer documentation built on April 15, 2022, 3:38 a.m.