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. This module provides a functionality to define more complex uniquenessPeriods functions.
Synopsis
- uniquenessPeriods2 :: Int -> String -> [Int]
- uniqueness2 :: (String -> [[String]]) -> ([[String]] -> [[String]]) -> String -> ([[String]], [String])
- uniqueness2n :: ([String] -> [Int]) -> ([String] -> Int) -> Int -> ([[String]], [String]) -> [Int]
- uniqueness2nG :: Int -> ([String] -> [Int]) -> ([String] -> Int) -> Int -> ([[String]], [String]) -> [Int]
- uniquenessPeriodsN :: Int -> Int -> String -> [Int]
- uniquenessP2 :: [[String]] -> [[String]]
Documentation
uniquenessPeriods2 :: Int -> String -> [Int] Source #
More complicated and longer variant of the uniquenessPeriods
that takes into account the second order structure of uniqueness with uniquenessP2
and
can be therefore more fruitful (probably, it is a hypothesis itself that is needed to be tested). Is provided here as an example of the more complex
"uniqueness function". Uses both uniqueness2
and uniqueness2n
inside and is actually their composition with some (hopefully, natural) parameter functions.
uniqueness2 :: (String -> [[String]]) -> ([[String]] -> [[String]]) -> String -> ([[String]], [String]) Source #
Parameterized way to prepare the result that can be used with uniqueness2n
.
uniqueness2n :: ([String] -> [Int]) -> ([String] -> Int) -> Int -> ([[String]], [String]) -> [Int] Source #
uniqueness2nG :: Int -> ([String] -> [Int]) -> ([String] -> Int) -> Int -> ([[String]], [String]) -> [Int] Source #
Approximates the higher order computational scheme of the uniqueness2n
function considering the latter one as the second order computational scheme. Because
of the possible concatenation and other not phonetic coversions it cannot be considered the exact one, but in some cases can give more information about phonetic
"uniqueness periods" structure, so is provided here for exploration.
uniquenessPeriodsN :: Int -> Int -> String -> [Int] Source #
Approximates the higher order computational scheme of the uniquenessPeriods2
function considering the latter one as the second order computational
scheme. Because of the possible concatenation and other not phonetic coversions it cannot be considered the exact one, but in some cases can give more
information about phonetic "uniqueness periods" structure, so is provided here for exploration.
uniquenessP2 :: [[String]] -> [[String]] Source #
Filters a given arguments so that each element String
in the result is filtered from the element, which is doubled the first in the next String
(usually, it equals to the head of it, if used as expected). Can be interpreted as a preparation to the second application of the uniquenessPeriods
function because it removes the elements that splitted the input into lists and can be seen as a second deeper (so, probably less significant) factor
of the uniqueness phonetical structure.