phonetic-languages-simplified-generalized-properties-array-0.11.0.0: Some 'properties' of the phonetic languages approach text.
Copyright(c) OleksandrZhabenko 2020-2022
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • BangPatterns
  • MultiWayIf

Phonetic.Languages.Array.General.PropertiesSyllablesG2

Description

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

Newtype to work with

data CoeffTwo a Source #

Constructors

CF0 
CF2 (Maybe a) (Maybe a) 

Instances

Instances details
Eq a => Eq (CoeffTwo a) Source # 
Instance details

Defined in Phonetic.Languages.Array.General.PropertiesSyllablesG2

Methods

(==) :: CoeffTwo a -> CoeffTwo a -> Bool #

(/=) :: CoeffTwo a -> CoeffTwo a -> Bool #

type Coeffs2 = CoeffTwo Double Source #

A data type that is used to represent the coefficients of the rhythmicity functions as a one argument value.

Mapping function data type

data MappingFunctionPL Source #

Constructors

PhoPaaW ([[[PRS]]] -> [[Double]]) 
SaaW ([[[Int8]]] -> [[Double]]) 

Rhythmicity properties (semi-empirical)

Simple one

rhythmicity0i Source #

Arguments

:: MappingFunctionPL

A function that specifies the syllables durations, analogue of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package.

-> String 
-> GWritingSystemPRPLX

Data used to obtain the phonetic language representation of the text.

-> [(Char, Char)]

The pairs of the Char that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly.

-> CharPhoneticClassification

The Array Int PRS must be sorted in the ascending order to be used in the module correctly.

-> SegmentRulesG 
-> String

Corresponds to the '0' symbol delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the '1' and '-' symbol delimiters in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

rhythmicity0Fi Source #

Arguments

:: MappingFunctionPL

A function that specifies the syllables durations, analogue of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package.

-> Double 
-> String 
-> GWritingSystemPRPLX

Data used to obtain the phonetic language representation of the text.

-> [(Char, Char)]

The pairs of the Char that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly.

-> CharPhoneticClassification

The Array Int PRS must be sorted in the ascending order to be used in the module correctly.

-> SegmentRulesG 
-> String

Corresponds to the '0' symbol delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the '1' and '-' symbol delimiters in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

With weight coefficients

rhythmicityKi Source #

Arguments

:: MappingFunctionPL

A function that specifies the syllables durations, analogue of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package.

-> Double 
-> Double 
-> String 
-> GWritingSystemPRPLX

Data used to obtain the phonetic language representation of the text.

-> [(Char, Char)]

The pairs of the Char that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly.

-> CharPhoneticClassification

The Array Int PRS must be sorted in the ascending order to be used in the module correctly.

-> SegmentRulesG 
-> String

Corresponds to the '0' symbol delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the '1' and '-' symbol delimiters in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

rhythmicityKFi Source #

Arguments

:: MappingFunctionPL

A function that specifies the syllables durations, analogue of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package.

-> Double 
-> Double 
-> Double 
-> String 
-> GWritingSystemPRPLX

Data used to obtain the phonetic language representation of the text.

-> [(Char, Char)]

The pairs of the Char that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly.

-> CharPhoneticClassification

The Array Int PRS must be sorted in the ascending order to be used in the module correctly.

-> SegmentRulesG 
-> String

Corresponds to the '0' symbol delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the '1' and '-' symbol delimiters in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

General

rhythmicityG Source #

Arguments

:: MappingFunctionPL

A function that specifies the syllables durations, analogue of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package.

-> ([[Double]] -> Double)

Usually some kind of flattening of the double list into a single value.

-> String

The starting String which creates the order for the FSLG representation

-> GWritingSystemPRPLX

Data used to obtain the phonetic language representation of the text.

-> [(Char, Char)]

The pairs of the Char that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly.

-> CharPhoneticClassification

The Array Int PRS must be sorted in the ascending order to be used in the module correctly.

-> SegmentRulesG 
-> String

Corresponds to the '0' symbol delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the '1' and '-' symbol delimiters in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

rhythmicity Source #

Arguments

:: 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 -> MappingFunctionPL)

The function that is needed in the procRhythmicity23F function. Specifies a way how the syllables represented in the phonetic language approach transforms into their durations and depends on two parameters.

-> Coeffs2 
-> String 
-> GWritingSystemPRPLX

Data used to obtain the phonetic language representation of the text.

-> [(Char, Char)]

The pairs of the Char that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly.

-> CharPhoneticClassification

The Array Int PRS must be sorted in the ascending order to be used in the module correctly.

-> SegmentRulesG 
-> String 
-> String 
-> ReadyForConstructionPL 
-> Double 

It is intended to provide different functions :: Double -> String -> ([[[PRS]]] -> [[Double]]) for at least the following values: "0z", "02z", "03z", "04z", "0y", "02y", "03y" and the default one for other variants. The "z"-line uses 'F' functions.