Package 'poetrytools'

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

Help Index


Title

Description

Title

Usage

guess_form(tokenized_poem, verbose = FALSE)

Arguments

verbose

Guess a poem's metre via Levenshtein distance from candidates

Description

Guess a poem's metre via Levenshtein distance from candidates

Usage

guess_metre(tokenized_poem)

Arguments

tokenized_poem

Guess a poem's rhyme via Levenshtein distance from candidates

Description

Guess a poem's rhyme via Levenshtein distance from candidates

Usage

guess_rhyme_type(tokenized_poem)

Arguments

tokenized_poem

Guess stanza type

Description

Guess stanza type

Usage

guess_stanza_type(tokenized_poem)

Arguments

tokenized_poem

poetrytools for R

Description

poetrytools for R


Get a rhyme scheme for the poem.

Description

For each line, lookahead to the future lines of the poem and see whether last words rhyme.

Usage

rhyme_scheme(tokenized_poem)

Arguments

tokenized_poem

For each word, get a list of various syllabic pronunications.

Description

Then check whether the last level number of syllables is pronounced the same. If so, the words probably rhyme

Usage

rhymes(word1, word2, level = 2)

Arguments

level

Get stress notation for every line in the poem.

Description

Get stress notation for every line in the poem.

Usage

scanscion(tokenized_poem)

Arguments

tokenized_poem

Returns a comma-delimited string of stanza lengths

Description

Returns a comma-delimited string of stanza lengths

Usage

stanza_lengths(tokenized_poem)

Arguments

tokenized_poem

Title

Description

Title

Usage

tokenize(poem)

Arguments

poem