Copyright | (c) OleksandrZhabenko 2020-2021 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
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
- data UZPP a b = UZ a b
- data PhoneticType
- type UZPP2 = UZPP Char PhoneticType
- phoneType :: UZPP2 -> PhoneticType
- charUkr :: UZPP2 -> Char
- str2UZPP2s :: String -> [UZPP2]
- isVowel1 :: UZPP2 -> Bool
- isVwl :: Char -> Bool
- isSonorous1 :: UZPP2 -> Bool
- isVoicedC1 :: UZPP2 -> Bool
- isVoicelessC1 :: UZPP2 -> Bool
- isNotVowel2 :: UZPP2 -> UZPP2 -> Bool
- notEqC :: UZPP2 -> UZPP2 -> Bool
- sndGroups :: [UZPP2] -> [[UZPP2]]
- groupSnds :: [UZPP2] -> [[UZPP2]]
- divCnsnts :: [UZPP2] -> ([UZPP2] -> [UZPP2], [UZPP2] -> [UZPP2])
- reSyllableCntnts :: [[UZPP2]] -> [[UZPP2]]
- divVwls :: [[UZPP2]] -> [[UZPP2]]
- createSyllablesUkrS :: String -> [[[UZPP2]]]
- representProlonged :: [UZPP2] -> [UZPP2]
- str2Durat1 :: String -> Float
- uzpp2Durat2 :: UZPP2 -> Float
- uzpp2Durat1 :: UZPP2 -> Float
- uzpp2Durat3 :: UZPP2 -> Float
- uzpp2Durat4 :: UZPP2 -> Float
- syllableDurationsG :: (UZPP2 -> Float) -> [[[UZPP2]]] -> [[Float]]
- syllableDurations :: [[[UZPP2]]] -> [[Float]]
- syllableDurations2 :: [[[UZPP2]]] -> [[Float]]
- syllableDurations3 :: [[[UZPP2]]] -> [[Float]]
- syllableDurations4 :: [[[UZPP2]]] -> [[Float]]
Documentation
UZ a b |
data PhoneticType Source #
Instances
Eq PhoneticType Source # | |
Defined in Languages.Phonetic.Ukrainian.Syllable.Arr (==) :: PhoneticType -> PhoneticType -> Bool # (/=) :: PhoneticType -> PhoneticType -> Bool # | |
Ord PhoneticType Source # | |
Defined in Languages.Phonetic.Ukrainian.Syllable.Arr compare :: PhoneticType -> PhoneticType -> Ordering # (<) :: PhoneticType -> PhoneticType -> Bool # (<=) :: PhoneticType -> PhoneticType -> Bool # (>) :: PhoneticType -> PhoneticType -> Bool # (>=) :: PhoneticType -> PhoneticType -> Bool # max :: PhoneticType -> PhoneticType -> PhoneticType # min :: PhoneticType -> PhoneticType -> PhoneticType # | |
Show (UZPP Char PhoneticType) Source # | |
Defined in Languages.Phonetic.Ukrainian.Syllable.Arr |
phoneType :: UZPP2 -> PhoneticType Source #
str2UZPP2s :: String -> [UZPP2] Source #
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).
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
reSyllableCntnts :: [[UZPP2]] -> [[UZPP2]] Source #
createSyllablesUkrS :: String -> [[[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
.