rhyme_scheme: Get rhyme scheme for a given hymn

View source: R/rhyme_scheme.R

rhyme_schemeR Documentation

Get rhyme scheme for a given hymn

Description

Get rhyme scheme for a given hymn

Usage

rhyme_scheme(ref_id = 1, df, pron)

Arguments

ref_id

An integer number, refering to a hymn number

df

tibble based on output from udpipe::udpipe_annotate() similar to the annotated_hymns dataset.

pron

A tibble assumed to contain a token, a stress_vowel and a remainder column, all coded in the phonetic alphabet. Passed on to get_rhymes().

Value

a tibble with rhyme structure in new column, scheme. The number, x, in that column indicates that the word must rhyme with the x- previous word. I.e "2" means that this must rhyme with the word two lines above.


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