ukrainian-phonetics-basic-array-bytestring-0.1.0.0: A library to work with the basic Ukrainian phonetics and syllable segmentation.
Copyright(c) OleksandrZhabenko 2020-2021
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010
Extensions
  • DeriveDataTypeable
  • TypeSynonymInstances
  • FlexibleInstances

Languages.Phonetic.Ukrainian.Syllable.Arr

Description

This module works with syllable segmentation in Ukrainian. It is rewritten module MMSyn7.Syllable from the mmsyn7s package : https://hackage.haskell.org/package/mmsyn7s

Synopsis

Documentation

data UZPP a b Source #

Constructors

UZ a b 

Instances

Instances details
(Eq a, Eq b) => Eq (UZPP a b) Source # 
Instance details

Defined in Languages.Phonetic.Ukrainian.Syllable.Arr

Methods

(==) :: UZPP a b -> UZPP a b -> Bool #

(/=) :: UZPP a b -> UZPP a b -> Bool #

(Ord a, Ord b) => Ord (UZPP a b) Source # 
Instance details

Defined in Languages.Phonetic.Ukrainian.Syllable.Arr

Methods

compare :: UZPP a b -> UZPP a b -> Ordering #

(<) :: UZPP a b -> UZPP a b -> Bool #

(<=) :: UZPP a b -> UZPP a b -> Bool #

(>) :: UZPP a b -> UZPP a b -> Bool #

(>=) :: UZPP a b -> UZPP a b -> Bool #

max :: UZPP a b -> UZPP a b -> UZPP a b #

min :: UZPP a b -> UZPP a b -> UZPP a b #

Show (UZPP Char PhoneticType) Source # 
Instance details

Defined in Languages.Phonetic.Ukrainian.Syllable.Arr

isVowel1 :: UZPP2 -> Bool Source #

Function-predicate isVowel1 checks whether its argument is a vowel representation in the UZPP2 format.

isVwl :: Char -> Bool Source #

Function-predicate isVwl checks whether its argument is a vowel representation in the Char format.

isSonorous1 :: UZPP2 -> Bool Source #

Function-predicate isSonorous1 checks whether its argument is a sonorous consonant representation in the UZPP2 format.

isVoicedC1 :: UZPP2 -> Bool Source #

Function-predicate isVoicedC1 checks whether its argument is a voiced consonant representation in the UZPP2 format.

isVoicelessC1 :: UZPP2 -> Bool Source #

Function-predicate isVoiceless1 checks whether its argument is a voiceless consonant representation in the UZPP2 format.

isNotVowel2 :: UZPP2 -> UZPP2 -> Bool Source #

Binary function-predicate isNotVowel2 checks whether its arguments are both consonant representations in the UZPP2 format.

notEqC :: UZPP2 -> UZPP2 -> Bool Source #

Binary function-predicate notEqC checks whether its arguments are not the same consonant sound representations (not taking palatalization into account).

sndGroups :: [UZPP2] -> [[UZPP2]] Source #

Function sndGroups converts a Ukrainian word being a list of UZPP2 to the list of phonetically similar (consonants grouped with consonants and each vowel separately) sounds representations in UZPP2 format.

divCnsnts :: [UZPP2] -> ([UZPP2] -> [UZPP2], [UZPP2] -> [UZPP2]) Source #

Function divCnsnts is used to divide groups of Ukrainian consonants into two-elements lists that later are made belonging to different neighbour syllables if the group is between two vowels in a word. The group must be not empty, but this is not checked. The phonetical information for the proper performance is taken from the: https://msn.khnu.km.ua/pluginfile.php/302375/mod_resource/content/1/%D0%9B.3.%D0%86%D0%86.%20%D0%A1%D0%BA%D0%BB%D0%B0%D0%B4.%D0%9D%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D1%81.pdf

divVwls :: [[UZPP2]] -> [[UZPP2]] Source #

representProlonged :: [UZPP2] -> [UZPP2] Source #

Function representProlonged converts duplicated consequent in the syllable consonants so that they are represented by just one UZPP2. After applying the function to the list of UZPP2 being a syllable all groups of duplicated consequent consonants in every syllable are represented with only one UZPP2 respectively.

str2Durat1 :: String -> Float Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

Is inspired by the DobutokO.Sound.DIS5G6G module from dobutokO2 package. See: 'https://hackage.haskell.org/package/dobutokO2-0.43.0.0/docs/DobutokO-Sound-DIS5G6G.html'. The Float data are gotten from there.

uzpp2Durat2 :: UZPP2 -> Float Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

Just another possible duration approximation obtained by usage of the r-glpk-phonetic-languages-ukrainian-durations package https://hackage.haskell.org/package/r-glpk-phonetic-languages-ukrainian-durations. It is generated for the set of the words-durations pairs that the words contents (Char) converts to the elements of the "ABCEFXYabcdefghijklmnopqrstuvxyz" (for more information, pleas, refer to the https://hackage.haskell.org/package/r-glpk-phonetic-languages-ukrainian-durations).

uzpp2Durat1 :: UZPP2 -> Float Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

uzpp2Durat3 :: UZPP2 -> Float Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

uzpp2Durat4 :: UZPP2 -> Float Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

syllableDurationsG :: (UZPP2 -> Float) -> [[[UZPP2]]] -> [[Float]] Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

General variant of the syllableDurations function with the arbitrary uzpp2Durat1-like function.

syllableDurations :: [[[UZPP2]]] -> [[Float]] Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

Returns list of lists, every inner one of which contains approximate durations of the Ukrainian syllables.

syllableDurations2 :: [[[UZPP2]]] -> [[Float]] Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

Likewise syllableDurations, but uses uzpp2Durat2 instead of uzpp2Durat1.

syllableDurations3 :: [[[UZPP2]]] -> [[Float]] Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

Likewise syllableDurations, but uses uzpp2Durat3 instead of uzpp2Durat1.

syllableDurations4 :: [[[UZPP2]]] -> [[Float]] Source #

Deprecated: Please, if possible, use the corresponding functions from the Languages.Phonetic.Ukrainian.Syllable.Double.Arr module.

Likewise syllableDurations, but uses uzpp2Durat4 instead of uzpp2Durat1.