Copyright | (c) OleksandrZhabenko 2020-2022 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Generalization and extension of the functionality of the DobutokO.Poetry.Norms
and DobutokO.Poetry.Norms.Extended modules
from the dobutokO-poetry
package and more recent package phonetic-languages-simplified-properties-array
.
Uses syllables information.
Instead of the vector-related, uses arrays.
If you use the functionality of the Phonetic.Languages.Array.Ukrainian.PropertiesSyllablesG2 module,
then import it qualified (or this module) because they have many common data. Is provided as a standalone one
to reduce dependencies list in general case.
Synopsis
- data CoeffTwo a
- type Coeffs2 = CoeffTwo Double
- isEmpty :: CoeffTwo a -> Bool
- isPair :: CoeffTwo a -> Bool
- fstCF :: CoeffTwo a -> Maybe a
- sndCF :: CoeffTwo a -> Maybe a
- readCF :: String -> Coeffs2
- rhythmicity0i :: ([[[PRS]]] -> [[Double]]) -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> String -> Double
- rhythmicity0Fi :: ([[[PRS]]] -> [[Double]]) -> Double -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> String -> Double
- rhythmicityKi :: ([[[PRS]]] -> [[Double]]) -> Double -> Double -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> String -> Double
- rhythmicityKFi :: ([[[PRS]]] -> [[Double]]) -> Double -> Double -> Double -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> String -> Double
- rhythmicityG :: ([[[PRS]]] -> [[Double]]) -> ([[Double]] -> Double) -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> String -> Double
- rhythmicity :: Double -> String -> (Double -> String -> [[[PRS]]] -> [[Double]]) -> Coeffs2 -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> String -> Double
Newtype to work with
type Coeffs2 = CoeffTwo Double Source #
A data type that is used to represent the coefficients of the rhythmicity functions as a one argument value.
Rhythmicity properties (semi-empirical)
Simple one
:: ([[[PRS]]] -> [[Double]]) | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> String | |
-> Double |
:: ([[[PRS]]] -> [[Double]]) | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> Double | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> String | |
-> Double |
With weight coefficients
:: ([[[PRS]]] -> [[Double]]) | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> Double | |
-> Double | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> String | |
-> Double |
:: ([[[PRS]]] -> [[Double]]) | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> Double | |
-> Double | |
-> Double | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> String | |
-> Double |
General
:: ([[[PRS]]] -> [[Double]]) | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> ([[Double]] -> Double) | Usually some kind of flattening of the double list into a single value. |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> String | |
-> Double |
:: Double | |
-> String | Is intended to be one of the following strings: "02y", "02z", "03y", "03z", "04y", "04z", "0y", "0z", "y", "y0", "y2", "y3", "y4", "yy", "yy2", "yy3", "z", "z2", "z3", "z4", "zz", "zz2", "zz3", "zz4" or some other one (that is the default one). Since the version 0.3.0.0 you can also use "w" or "x"-based lines. Specifies the applied properties to get the result. The "z"-line uses 'F' functions. |
-> (Double -> String -> [[[PRS]]] -> [[Double]]) | The function that is needed in the |
-> Coeffs2 | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | |
-> String | |
-> String | |
-> Double |