dobutokO-poetry-0.7.0.0: Helps to order the 7 or less Ukrainian words to obtain somewhat suitable for poetry or music text

Copyright(c) OleksandrZhabenko 2020
LicenseMIT
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

DobutokO.Poetry.PrependAppend

Contents

Description

Maintainer : olexandr543@yahoo.com

Helps to order the 7 or less Ukrainian words (or their concatenations) to obtain (to some extent) suitable for poetry or music text. In contrast to the the same named functions from the Poetry module each its function uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

Synopsis

Main functions

uniq10Poetical4 :: String -> String -> String -> IO () Source #

A variant of uniq10PoeticalG with the norm4 applied. The list is (according to some model, not universal, but a reasonable one in the most cases) the most suitable for intonation changing and, therefore, for the accompaniment of the highly changable or variative melody. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniq10Poetical5 :: String -> String -> String -> IO () Source #

A variant of uniq10PoeticalG with the norm5 applied. The list is (according to some model, not universal, but a reasonable one in the most cases) the most suitable for rhythmic speech and two-syllabilistic-based poetry. Therefore, it can be used to create a poetic composition or to emphasize some thoughts. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniq10PoeticalG :: String -> String -> ([Int] -> Int) -> String -> IO () Source #

A variant of the uniqNPoeticalG function with the n equal to 10. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalG :: String -> String -> Int -> ([Int] -> Int) -> String -> IO () Source #

A variant of the uniqNPoeticalGN with only one norm. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalGN :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO () Source #

A variant of the uniqNPoetical2GN with the conversion ("uniquenessPeriods" function) function uniquenessPeriods. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalN :: Int -> Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO () Source #

Prints n (given as the first argument) maximum elements with respect to the several norms (their quantity is the second argument) starting from the right to the left. The last norm is the first element in the Vector of norms ([Int] -> Int).

uniqNPoeticalVN :: Int -> Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO (Vector Uniqueness) Source #

Prints n (given as the first argument) maximum elements with respect to the several norms (their quantity is the second argument) starting from the right to the left. The last norm is the first element in the Vector of norms ([Int] -> Int). Contrary to its pair function uniqNPoeticalN returns then the rest of the given Vector Uniqueness after filtering the printed elements String.

uniqNPoeticalVGN :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness) Source #

Generalized variant of the uniqNPoeticalVG with usage of several norms. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

Additional functions

uniquenessVariantsGN :: String -> String -> Vector ([Int] -> Int) -> String -> Vector Uniqueness Source #

Generalization of the uniquenessVariantsG with usage of several norms (instead of one). They constitute a Vector of functions norm :: [Int] -> Int. So the inner vector in the each resulting Uniqueness has the same length as the vector of norms. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqMaxPoeticalGN :: String -> String -> Int -> Vector ([Int] -> Int) -> String -> Uniqueness Source #

Generalized variant of the uniqMaxPoeticalG with the several norms given as a Vector of functions and an Int parameter. The function evaluates the generated Vector of Uniqueness elements to retrieve the possibly maximum element in it with respect to the order and significance (principality) of the norms being evaluated. The most significant and principal is the norm, which index in the Vector of them is the Int argument of the function minus 1, then less significant is the next to the left norm and so on. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqMaxPoeticalGNV :: Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> Uniqueness Source #

The function evaluates the Vector of Uniqueness elements to retrieve the possibly maximum element in it with respect to the order and significance (principality) of the norms being evaluated. The most significant and principal is the norm, which index in the Vector of them is the Int argument of the function minus 1, then less significant is the next to the left norm and so on. Is similar to uniqMaxPoeticalGN function.

uniqInMaxPoeticalN :: Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO (Vector Uniqueness) Source #

Prints the maximum element with respect of the k norms (the most significant of which is the rightest one, then to the left less significant etc.), which is given as the first argument. The last norm is the first element in the Vector of norms ([Int] -> Int).

Generalized variants

Main ones

uniqNPoetical2GN :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO () Source #

Prints n (given as the first Int argument) maximum elements with respect to the several norms (their quantity is the second Int argument) starting from the right to the left. The last norm is the first element in the Vector of norms ([Int] -> Int). In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoetical2VGN :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO (Vector Uniqueness) Source #

Prints n (given as the first Int argument) maximum elements with respect to the several norms (their quantity is the second Int argument) starting from the right to the left. The last norm is the first element in the Vector of norms ([Int] -> Int). Contrary to its pair function uniqNPoetical2GN returns then the rest of the given Vector Uniqueness after filtering the printed elements String. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalUGN_ :: String -> String -> Int -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO () Source #

Variant of the uniqNPoetical2GN, which uses as a function uniquenessPeriods2 with the first argument equal to the first Int argument. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalUGN :: String -> String -> Int -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness) Source #

Variant of the uniqNPoetical2VGN, which uses as a function uniquenessPeriods2 with the first argument equal to the first Int argument. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalUGN51_ :: String -> String -> Int -> Int -> String -> IO () Source #

Variant of the uniqNPoeticalUGN_, which uses as a single norm norm51. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalUGN51 :: String -> String -> Int -> Int -> String -> IO (Vector Uniqueness) Source #

Variant of the uniqNPoeticalUGN, which uses as a single norm norm51. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

Additional functions

uniqMaxPoetical2GN :: String -> String -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> Uniqueness Source #

The function evaluates the generated Vector of Uniqueness elements to retrieve the possibly maximum element in it with respect to the order and significance (principality) of the norms being evaluated. The most significant and principal is the norm, which index in the Vector of them is the Int argument of the function minus 1, then less significant is the next to the left norm and so on. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

On one line output

uniqInMaxPoeticalNLine :: Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO (Vector Uniqueness) Source #

Generalized variant of the uniqInMaxPoeticalN with usage of the several norms and all the information is printed on the same line.

uniqNPoeticalNLine :: Int -> Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO () Source #

Variant of the uniqNPoeticalN with its output being printed on the same line.

uniqNPoetical2GNLine :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO () Source #

Generalized variant of the uniqNPoeticalG with usage of the several norms, but prints its output on the same line. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

With all the norms used

uniqMaxPoeticalGNL :: String -> String -> Vector ([Int] -> Int) -> String -> Uniqueness Source #

Variant of uniqMaxPoeticalGN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqInMaxPoeticalNL :: Vector ([Int] -> Int) -> Vector Uniqueness -> IO (Vector Uniqueness) Source #

Variant of uniqInMaxPoticalN where all the elements in the norms Vector are used as norms from right to left.

uniqInMaxPoeticalNLineL :: Vector ([Int] -> Int) -> Vector Uniqueness -> IO (Vector Uniqueness) Source #

Variant of uniqInMaxPoticalNLine where all the elements in the norms Vector are used as norms from right to left.

uniqNPoeticalNL :: Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO () Source #

Variant of uniqNPoeticalN where all the elements in the norms Vector are used as norms from right to left.

uniqNPoeticalNLineL :: Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO () Source #

Variant of uniqNPoeticalNLine where all the elements in the norms Vector are used as norms from right to left.

uniqNPoeticalVNL :: Int -> Vector ([Int] -> Int) -> Vector Uniqueness -> IO (Vector Uniqueness) Source #

Variant of uniqNPoeticalVN where all the elements in the norms Vector are used as norms from right to left.

uniqNPoeticalGNL :: String -> String -> Int -> Vector ([Int] -> Int) -> String -> IO () Source #

Variant of uniqNPoeticalGN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalVGNL :: String -> String -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness) Source #

Variant of uniqNPoeticalVGN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqMaxPoetical2GNL :: String -> String -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> Uniqueness Source #

Variant of uniqMaxPoetical2GN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqMaxPoeticalGNVL :: Vector ([Int] -> Int) -> Vector Uniqueness -> Uniqueness Source #

Variant of uniqMaxPoeticalGNV where all the elements in the norms Vector are used as norms from right to left.

uniqNPoetical2GNL :: String -> String -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO () Source #

Variant of uniqNPoetical2GN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoetical2GNLineL :: String -> String -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO () Source #

Variant of uniqNPoetical2GNLine where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoetical2VGNL :: String -> String -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO (Vector Uniqueness) Source #

Variant of uniqNPoetical2VGN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalUGNL_ :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO () Source #

Variant of uniqNPoeticalUGN_ where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.

uniqNPoeticalUGNL :: String -> String -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness) Source #

Variant of uniqNPoeticalUGN where all the elements in the norms Vector are used as norms from right to left. In contrast to the the same named function from the Poetry module uses in the processment prepending and appending String given as the first two arguments. The first one is prepended and the second one is appended to the processed String to be processed with it. This allows to create more connection with the previous and postpending text.