mmsyn7s 0.6.7.0 → 0.7.0.0
raw patch · 4 files changed
+12/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- MMSyn7s: uniqPeriodsDispersion :: String -> Double
+ MMSyn7s: uniqPeriodsDispersion :: String -> Float
- MMSyn7s: uniqPeriodsMean :: String -> Double
+ MMSyn7s: uniqPeriodsMean :: String -> Float
- MMSyn7s: uniqStdQDeviation :: String -> Double
+ MMSyn7s: uniqStdQDeviation :: String -> Float
Files
- CHANGELOG.md +5/−0
- MMSyn7s.hs +4/−4
- README.markdown +2/−2
- mmsyn7s.cabal +1/−1
CHANGELOG.md view
@@ -86,3 +86,8 @@ * Sixth version revised H. Changed the bounds for dependencies so that now also GHC 8.10* series are supported. +## 0.7.0.0 -- 2020-06-24++* Seventh version. Changed Double to Float in the MMSyn7s module so that the functons can be consistent with new dobutokO packages. Besides, the double precision +is not needed and in some cases is meaningless and can potentially (a little bit, however) reduce performance in some cases. Some minor code and documentation improvements.+
MMSyn7s.hs view
@@ -107,7 +107,7 @@ ; putStrLn "which shows what sound representations are needed to be created if every sound is unique; " ; putStrLn " the other beginning is equivalent to the \"0\" behaviour." }- "-v" -> putStrLn "mmsyn7s: version 0.6.5.1"+ "-v" -> putStrLn "mmsyn7s: version 0.7.0.0" "-s" -> let ys = unwords . drop 1 $ texts zs = uniquenessPeriods ys in if zs /= [0::Int]@@ -298,7 +298,7 @@ -- | Function 'uniqPeriodsMean' is a mathematical expectation for the list obtained by 'uniquenessPeriods' function. It is a statistic metric. -- It is a mean for the quantities of the unique (not duplicated, not repeated) Ukrainian sounds in the given Ukrainian text as a @String@. -- If there are no Ukrainian letters in the text, it is equal to 0.0. The greater it is, the more diverse (phonetically) the text is.-uniqPeriodsMean :: String -> Double+uniqPeriodsMean :: String -> Float uniqPeriodsMean xs | any (not . isSpace) xs = let ys = uniquenessPeriods xs in (fromIntegral . sum $ ys) / (fromIntegral . length $ ys) | otherwise = 0.0 @@ -306,7 +306,7 @@ -- It is a dispersion for the quantities of the unique (not duplicated, not repeated) Ukrainian sounds in the given Ukrainian text as a @String@. -- If there are no Ukrainian letters in the text, it is equal to 0.0. The greater it is, the more suitable for changing pronunciation for the sounds -- (and may be for intonation changes, too) the text is.-uniqPeriodsDispersion :: String -> Double+uniqPeriodsDispersion :: String -> Float uniqPeriodsDispersion xs | any (not . isSpace) xs = let ys = uniquenessPeriods xs z = uniqPeriodsMean xs@@ -318,7 +318,7 @@ -- It is a standard quadratic deviation for the quantities of the unique (not duplicated, not repeated) Ukrainian sounds in the given Ukrainian text as a @String@. -- If there are no Ukrainian letters in the text, it is equal to 0.0. The greater it is, the more suitable for changing pronunciation for the sounds -- (and may be for intonation changes, too) the text is.-uniqStdQDeviation :: String -> Double+uniqStdQDeviation :: String -> Float uniqStdQDeviation = sqrt . uniqPeriodsDispersion -- | Function 'uniqMax' is a maximum element in the 'uniquenessPeriods' function for the same argument. It is provided as a standard element for the
README.markdown view
@@ -1,5 +1,5 @@ ***** Usage *****- -----------------+ ================= The package provides library functions and an executable. The executable takes the first command line argument and (may be) a Ukrainian text@@ -41,7 +41,7 @@ and processed as a whole one object). ***** Syllable Segmentation *****- ---------------------------------+ ================================= The program (and the library) can be used to obtain information about syllable segmentation of the Ukrainian text. For more information,
mmsyn7s.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: mmsyn7s-version: 0.6.7.0+version: 0.7.0.0 synopsis: Shows a sorted list of the Ukrainian sounds representations that can be used by mmsyn7 series of programs description: A program and a library that show a sorted list of the Ukrainian sounds representations that can be used by mmsyn7 series of programs homepage: https://hackage.haskell.org/package/mmsyn7s