phladiprelio-ukrainian-simple-0.16.0.0: A PhLADiPreLiO implementation for Ukrainian that uses hashes and asynchronous concurrency.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Phladiprelio.Ukrainian.IO

Synopsis

Documentation

generalF Source #

Arguments

:: Int

A power of 10. 10 in this power is then multiplied the value of distance if the next [Double] argument is not empty. The default one is 4. The right values are in the range [2..6].

-> Int

A length of the next argument here.

-> [Double]

A list of non-negative values normed by 1.0 (the greatest of which is 1.0) that the line options are compared with. If null, then the program works as for version 0.12.1.0 without this newly-introduced argument since the version 0.13.0.0. The length of it must be a least common multiplier of the (number of syllables plus number of '_digits' groups) to work correctly. Is not used when the next FilePath and String arguments are not null.

-> Bool

If True then adds "br" to line endings for double column output

-> FilePath

A path to the file to save double columns output to. If empty then just prints to stdout.

-> String

If not null than instead of rhythmicity evaluation using hashes and and feets, there is computed a diversity property for the specified String here using the selectSounds function. For more information, see: 'https://oleksandr-zhabenko.github.io/uk/rhythmicity/PhLADiPreLiO.Eng.21.html#types'

-> (String, String)

If the next element is not equal to -1, then the prepending and appending lines to be displayed. Used basically for working with the multiline textual input data.

-> Int

The number of the line in the file to be read the lines from. If equal to -1 then neither reading from the file is done nor the first argument influences the processment results.

-> FilePath

The file to read the sound representation durations from.

-> Int 
-> HashCorrections 
-> (Int8, [Int8]) 
-> Int 
-> Bool 
-> Int 
-> Bool 
-> Int8 
-> (FilePath, Int) 
-> Bool

Whether to run tests concurrently or not. True corresponds to concurrent execution that can speed up the getting results but use more resources.

-> String

An initial string to be analysed.

-> [String] 
-> IO [String] 

stat1 :: Int -> (Int8, [Int8]) -> Int Source #

selectSounds :: String -> FlowSound Source #

selectSounds converts the argument after "+ul" command line argument into a list of Ukrainian sound representations that is used for evaluation of 'uniqueness periods' properties of the line. Is a modified Phonetic.Languages.Simplified.Array.Ukrainian.FuncRep2RelatedG2.parsey0Choice from the phonetic-languages-simplified-examples-array-0.21.0.0 package.

testsOutput Source #

Arguments

:: (Show a1, Integral a1) 
=> Bool

Whether to run tests concurrently or not. True corresponds to concurrent execution that can speed up the getting results but use more resources.

-> Int 
-> (p1 -> [a2] -> p2 -> Int8 -> [Int8] -> String -> a1) 
-> p1 
-> p2 
-> Int 
-> [String] 
-> IO [String] 

Part of the generalF for processment in case of using tests mode.

outputWithFile Source #

Arguments

:: (Eq a1, Num a1) 
=> String

If not null than instead of rhythmicity evaluation using hashes and and feets, there is computed a diversity property for the specified String here using the selectSounds function. For more information, see: 'https://oleksandr-zhabenko.github.io/uk/rhythmicity/PhLADiPreLiO.Eng.21.html#types'

-> [Double]

A list of non-negative values normed by 1.0 (the greatest of which is 1.0) that the line options are compared with. If null, then the program works as for version 0.12.1.0 without this newly-introduced argument since the version 0.13.0.0. The length of it must be a least common multiplier of the (number of syllables plus number of '_digits' groups) to work correctly. Is not used when the next FilePath and String arguments are not null.

-> [PhladiprelioUkr] 
-> FilePath

The file to read the sound representation durations from.

-> [[[[Sound8]]] -> [[Double]]] 
-> Int 
-> a1 
-> Int 
-> FilePath

A file to be probably added output parts to.

-> Int 
-> IO () 

Part of generalF for processment with a file.