Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Maintainer : olexandr543@yahoo.com
Can be used to produce the uniquenessPeriods
function and related
functionality for the Ukrainian text.
Auxiliary functions
show7s''' :: [String] -> ([String], String) Source #
The same as show7s''
from MMSyn7s module (mmsyn7s
package), but the second element in the resulting tuple is again the Ukrainian text
with whitespaces (whitespaces are substituted instead of punctuation symbols, too) and some phonetical conversions.
show7s5 :: String -> ([String], String) Source #
Function show7s5
takes a Ukrainian text being a String
and returns a tuple, the first element of which is a list of Strings that correspond to the Ukrainian
sounds representations that (except pauses) are unique and are not repeated starting from the beginning of the given text (this list is filtered from
the representations for the silence), and the second one is a String
obtained from the remainder
list of Strings starting from the first duplicated non-silent Ukrainian sound representation with whitespaces (whitespaces are substituted
instead of punctiuation symbols, too) and some phonetical conversions.
show7s6 :: String -> [[String]] Source #
Function show7s6
takes a Ukrainian text being a String
and returns a list of lists of Strings, each latter one of which is obtained for the unique parts of
the text from the Ukrainian sounds representations point of view. It can show how many and what sound representations are needed to be created to completely cover
the given text providing all the needed sound parameters.
show7sn4' :: [String] -> ([String], [String]) Source #
The same as show7sn'''
from the MMSyn7s module from the mmsyn7s
package, but does not concatenate the list of String
as the second tuple's element.
Inner predicate (auxiliary)
eqSnds :: String -> String -> Bool Source #
Function eqSnds
compares two non-silent Strings representations for Ukrainian sounds by equality. If one of them is a representation for silence (e. g. pause),
then the predicate is False
.
Inner backward conversion function
listToString :: [String] -> String Source #
Function listToString
converts the list of Strings being the sequential Ukrainian sounds representations into the Ukrainian text with whitespaces
(whitespaces are substituted instead of punctuation symbols, too) and some phonetical conversions.
uniquenessPeriods function
uniquenessPeriods :: String -> [Int] Source #
Function uniquenessPeriods
takes a Ukrainian text being a String
and returns a list of Ints. Each Int value is a number of
the Ukrainian sounds representations (non-silent ones) being unique and not duplicated alongside the given text starting from the beginning to the end.
This function provides some important information about the phonetic and in some cases semantical structures of the text.