phonetic-languages-simplified-generalized-properties-array-0.13.1.0: Some 'properties' of the phonetic languages approach text.
Copyright(c) Oleksandr Zhabenko 2020-2023
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010
Extensions
  • BangPatterns
  • MultiWayIf

Phladiprelio.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 Phladiprelio.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

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 100 delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the 101 delimiter in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

rhythmicity0Fi Source #

Arguments

:: Factors 
-> 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 100 delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the 101 delimiter 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 100 delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the 101 delimiter in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

rhythmicityKFi Source #

Arguments

:: Factors 
-> 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 100 delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the 101 delimiter 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 100 delimiter in the ukrainian-phonetics-basic-array package.

-> String

Corresponds to the 101 delimiter in the ukrainian-phonetics-basic-array package.

-> ReadyForConstructionPL 
-> Double 

rhythmicity Source #

Arguments

:: Factors 
-> Double 
-> String

The "f"-line uses 'F' functions since the version 0.13.0.0.

-> (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]]). The "z"-line uses 'F' functions.