phonetic-languages-simplified-generalized-examples-array-0.18.2.0: Helps to create texts with the given phonetic properties (e. g. poetic).
Copyright(c) OleksandrZhabenko 2020-2022
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010
Extensions
  • BangPatterns
  • TypeSynonymInstances
  • FlexibleContexts
  • FlexibleInstances

Phonetic.Languages.General.Simple

Description

Library module that contains functions earlier used by the lineVariantsG3 executable for the Ukrainian language (see: https://hackage.haskell.org/package/phonetic-languages-simplified-examples-array). Is rewritten from the Phonetic.Languages.Simple module from the phonetic-languages-simplified-examples-array package.

Synopsis

Documentation

generalProc3G Source #

Arguments

:: PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> (String -> Bool)

The predicate that checks whether the given argument is not a phonetic language word in the representation.

-> [String] 
-> String

If empty, the function is just generalProc2G with the arguments starting from the first Bool here.

-> Int 
-> 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> Concatenations

Data used to concatenate (prepend) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> Concatenations

Data used to concatenate (append) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> String 
-> FilePath 
-> Bool

Whether to run in the recursive mode.

-> Bool 
-> Bool 
-> [String] 
-> Coeffs2

This value is used when property choice is NOT from the "w" or "x" lines.

-> Coeffs2

This value is used when property choice is from the "w" or "x" lines.

-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int

Whether to print more verbose information in the output with sorting in some way

-> IO () 

Is used to organize the most complex processment -- for multiple sources and probably recursively.

generalProc2G Source #

Arguments

:: PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> Concatenations

Data used to concatenate (prepend) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> Concatenations

Data used to concatenate (append) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> String 
-> FilePath 
-> Bool

Whether to run in the recursive mode.

-> Bool 
-> Bool 
-> [String] 
-> Coeffs2

This value is used when property choice is NOT from the "w" or "x" lines.

-> Coeffs2

This value is used when property choice is from the "w" or "x" lines.

-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO () 

Is used to do general processment.

generalProc2 Source #

Arguments

:: PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> [MappingFunctionPL] 
-> Concatenations

Data used to concatenate (prepend) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> Concatenations

Data used to concatenate (append) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> String 
-> Bool

Whether to run in the recursive mode.

-> Bool 
-> Bool 
-> [String] 
-> Coeffs2

This value is used when property choice is NOT from the "w" or "x" lines.

-> Coeffs2

This value is used when property choice is from the "w" or "x" lines.

-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionPL, String) 
 

messageInfo :: Int -> String Source #

Function provides message information.

interactivePrintResultRecursive Source #

Arguments

:: PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> [MappingFunctionPL] 
-> Concatenations

Data used to concatenate (prepend) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> Concatenations

Data used to concatenate (append) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> String 
-> Bool

Whether to run in the recursive mode.

-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> (a -> String) 
-> [a] 
-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionPL, String) 

show2 :: (Show a1, Show a2, Num a3, Ord a1, Ord a2, Eq a3) => a3 -> [Result2 ReadyForConstructionPL a1 a2] -> String Source #

print2 :: (Show a1, Show a2, Num a3, Ord a1, Ord a2, Eq a3) => a3 -> [Result2 ReadyForConstructionPL a1 a2] -> IO () Source #

generalProcMs Source #

Arguments

:: 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> [MappingFunctionPL] 
-> Coeffs2

This value is used when property choice is NOT from the "w" or "x" lines.

-> Coeffs2

This value is used when property choice is from the "w" or "x" lines.

-> [Array Int Int]

Permutations data.

-> [String] 
-> ([Int], String, Int, String)

The 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 0.5.0.0 version can also process "w" and "x"-based lines properties. Specifies the applied properties to get the result. The "z"-line uses 'F' functions. @ since 0.6.0.0 Changed the arguments signing so that capital letters changed to the small ones, double ++ changed to just singular +.

-> IO [Result2 ReadyForConstructionPL Double Double] 

generalProcMMs Source #

Arguments

:: PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> [MappingFunctionPL] 
-> Concatenations

Data used to concatenate (prepend) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> Concatenations

Data used to concatenate (append) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> String 
-> Bool

Whether to run in the recursive mode.

-> Bool 
-> Bool 
-> [String] 
-> Coeffs2

This value is used when property choice is NOT from the "w" or "x" lines.

-> Coeffs2

This value is used when property choice is from the "w" or "x" lines.

-> [([Int], String, Int, String)]

The 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 0.5.0.0 version can also process "w" and "x"-based lines properties. Specifies the applied properties to get the result. The "z"-line uses 'F' functions. @ since 0.6.0.0 Changed the arguments signing so that capital letters changed to the small ones, double ++ changed to just singular +.

-> [Array Int Int]

Permutations data.

-> [String] 
-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionPL, String) 
 

finalProc Source #

Arguments

:: PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> 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 
-> (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. Is specific for every phonetic language and every representation, so must be provided by the user in every case. The example of the function can be found in the package phonetic-languages-simplified-properties-array.

-> [MappingFunctionPL]

A list of PhoPaaW-based different functions that specifies the syllables durations in the PhoPaaW mode, analogues of the syllableDurationsD functions from the ukrainian-phonetics-basics-array package. The first one must be probably the most exact one and, therefore, the default one.

-> [MappingFunctionPL] 
-> Concatenations

Data used to concatenate (prepend) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> Concatenations

Data used to concatenate (append) the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to.

-> String 
-> Bool

Whether to run in the recursive mode.

-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> (a -> String) 
-> [a] 
-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionPL, String)