Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
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.
Synopsis
- uniq10Poetical4 :: String -> IO ()
- uniq10Poetical5 :: String -> IO ()
- uniq10PoeticalG :: ([Int] -> Int) -> String -> IO ()
- uniqNPoeticalG :: Int -> ([Int] -> Int) -> String -> IO ()
- uniqNPoeticalGN :: Int -> Int -> Vector ([Int] -> Int) -> String -> IO ()
- uniqNPoeticalVGN :: Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness)
- uniquenessVariantsGN :: Vector ([Int] -> Int) -> String -> Vector Uniqueness
- uniqMaxPoeticalGN :: Int -> Vector ([Int] -> Int) -> String -> Uniqueness
- uniqNPoetical2GN :: Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO ()
- uniqNPoetical2VGN :: Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO (Vector Uniqueness)
- uniqNPoeticalUGN_ :: Int -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO ()
- uniqNPoeticalUGN :: Int -> Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness)
- uniqNPoeticalUGN51_ :: Int -> Int -> String -> IO ()
- uniqNPoeticalUGN51 :: Int -> Int -> String -> IO (Vector Uniqueness)
- uniqMaxPoetical2GN :: Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> Uniqueness
- uniqNPoetical2GNLine :: Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO ()
- uniqMaxPoeticalGNL :: Vector ([Int] -> Int) -> String -> Uniqueness
- uniqNPoeticalGNL :: Int -> Vector ([Int] -> Int) -> String -> IO ()
- uniqNPoeticalVGNL :: Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness)
- uniqMaxPoetical2GNL :: Vector ([Int] -> Int) -> (String -> [Int]) -> String -> Uniqueness
- uniqNPoetical2GNL :: Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO ()
- uniqNPoetical2GNLineL :: Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO ()
- uniqNPoetical2VGNL :: Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO (Vector Uniqueness)
- uniqNPoeticalUGNL_ :: Int -> Int -> Vector ([Int] -> Int) -> String -> IO ()
- uniqNPoeticalUGNL :: Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness)
Main functions
uniq10Poetical4 :: 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.
uniq10Poetical5 :: 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.
uniq10PoeticalG :: ([Int] -> Int) -> String -> IO () Source #
A variant of the uniqNPoeticalG
function with the n
equal to 10.
uniqNPoeticalG :: Int -> ([Int] -> Int) -> String -> IO () Source #
A variant of the uniqNPoeticalGN
with only one norm.
uniqNPoeticalGN :: Int -> Int -> Vector ([Int] -> Int) -> String -> IO () Source #
A variant of the uniqNPoetical2GN
with the conversion ("uniquenessPeriods" function) function uniquenessPeriods
.
uniqNPoeticalVGN :: Int -> Int -> Vector ([Int] -> Int) -> String -> IO (Vector Uniqueness) Source #
Generalized variant of the uniqNPoeticalVG
with usage of several norms.
Additional functions
uniquenessVariantsGN :: Vector ([Int] -> Int) -> String -> Vector Uniqueness Source #
Returns the Vector
of all possible permutations of the String
that represent the Ukrainian text and the linked information with them for
analysis 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.
uniqMaxPoeticalGN :: Int -> Vector ([Int] -> Int) -> String -> Uniqueness Source #
A variant of the uniqMaxPoetical2GN
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.
Generalized variants
Main ones
uniqNPoetical2GN :: Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO () Source #
uniqNPoetical2VGN :: 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
.
uniqNPoeticalUGN_ :: 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.
uniqNPoeticalUGN :: 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.
uniqNPoeticalUGN51_ :: Int -> Int -> String -> IO () Source #
Variant of the uniqNPoeticalUGN_
, which uses as a single norm norm51
.
uniqNPoeticalUGN51 :: Int -> Int -> String -> IO (Vector Uniqueness) Source #
Variant of the uniqNPoeticalUGN
, which uses as a single norm norm51
.
Additional functions
uniqMaxPoetical2GN :: 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.
On one line output
uniqNPoetical2GNLine :: Int -> Int -> Vector ([Int] -> Int) -> (String -> [Int]) -> String -> IO () Source #
A variant of the uniqNPoetical2GN
, but prints its output on the same line.
With all the norms used
uniqMaxPoeticalGNL :: 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.
uniqNPoeticalGNL :: 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.
uniqNPoeticalVGNL :: 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.
uniqMaxPoetical2GNL :: 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.
uniqNPoetical2GNL :: 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.
uniqNPoetical2GNLineL :: 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.
uniqNPoetical2VGNL :: 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.
uniqNPoeticalUGNL_ :: 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.
uniqNPoeticalUGNL :: 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.