Title: | Prosodic analysis of poetry |
---|---|
Description: | More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description. |
Authors: | Matthew Henderson [aut, cre] |
Maintainer: | Matthew Henderson <[email protected]> |
License: | What license is it under? |
Version: | 0.1.0.9000 |
Built: | 2024-11-22 03:20:43 UTC |
Source: | https://github.com/MHenderson/poetrytools |
Title
guess_form(tokenized_poem, verbose = FALSE)
guess_form(tokenized_poem, verbose = FALSE)
verbose |
Guess a poem's metre via Levenshtein distance from candidates
guess_metre(tokenized_poem)
guess_metre(tokenized_poem)
tokenized_poem |
Guess a poem's rhyme via Levenshtein distance from candidates
guess_rhyme_type(tokenized_poem)
guess_rhyme_type(tokenized_poem)
tokenized_poem |
Guess stanza type
guess_stanza_type(tokenized_poem)
guess_stanza_type(tokenized_poem)
tokenized_poem |
For each line, lookahead to the future lines of the poem and see whether last words rhyme.
rhyme_scheme(tokenized_poem)
rhyme_scheme(tokenized_poem)
tokenized_poem |
Then check whether the last level number of syllables is pronounced the same. If so, the words probably rhyme
rhymes(word1, word2, level = 2)
rhymes(word1, word2, level = 2)
level |
Get stress notation for every line in the poem.
scanscion(tokenized_poem)
scanscion(tokenized_poem)
tokenized_poem |
Returns a comma-delimited string of stanza lengths
stanza_lengths(tokenized_poem)
stanza_lengths(tokenized_poem)
tokenized_poem |