uniqueness-periods-general 0.1.0.0 → 0.2.0.0
raw patch · 3 files changed
+15/−10 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- String/UniquenessPeriodsG.hs +10/−9
- uniqueness-periods-general.cabal +1/−1
ChangeLog.md view
@@ -3,3 +3,7 @@ ## 0.1.0.0 -- 2020-08-16 * First version. Released on an unsuspecting world.++## 0.2.0.0 -- 2020-08-18++* Second version. Some documentation improvements.
String/UniquenessPeriodsG.hs view
@@ -9,7 +9,7 @@ -- @uniqueness-periods@ package functions. Provides the generalization of them. -- For all the used conversion functions of the type @g :: String -> Vector String@ -- it is important that they are stable for the repeated application (their result after --- the first application cannon be changed by the rules in the function into new variants). +-- the first application cannot be changed by the rules in the function into new variants). -- Otherwise, the recursive scheme of the functions in the module will lead to wrong results. -- So the conversion function should work the following way (@xs@ denotes a word in the language) in GHCi: --@@ -19,7 +19,7 @@ -- > v == v2 -- > True -- --- Or in the other words, for the single word, @g . concat . toList . g = g@.+-- Or in the other words, for the single word, @g . concat . toList . g = g@; -- module String.UniquenessPeriodsG (@@ -42,7 +42,7 @@ import Data.List ((\\),nubBy) -- | Function 'listToString' converts the list of Strings being the sequential sounds representations into the text with whitespaces--- (whitespaces are substituted instead of punctuation symbols, too) and some phonetical conversions. The first argument must be a list of 'String', +-- (whitespaces are substituted instead of punctuation symbols, too) and some phonetic conversions. The first argument must be a list of 'String', -- each of which is a representation for the white space (or more generally, non-sound symbol representation). listToString :: [String] -> [String] -> String listToString whspss = concatMap (\ts -> if ts `elem` whspss then " " else ts)@@ -55,8 +55,9 @@ | xs `elem` whspss || ys `elem` whspss = False | otherwise = xs == ys --- | The same as @show7s''@, but the second element in the resulting tuple is again the text with whitespaces (whitespaces are substituted--- instead of punctuation symbols, too) and some phonetical conversions. The first argument must be a list of 'String', +-- | The same as @show7s''@ from MMSyn7s module (@mmsyn7s@ package), but the second element in the resulting tuple is again the text with +-- whitespaces (whitespaces are substituted+-- instead of punctuation symbols, too) and some phonetic conversions. The first argument must be a list of 'String', -- each of which is a representation for the white space (or more generally, non-sound symbol representation). show7s''' :: [String] -> [String] -> ([String],String) show7s''' whspss zss =@@ -68,9 +69,9 @@ -- | Function 'show7s5' takes a text being a @String@ and returns a tuple, the first element of which is a list of Strings that correspond to the -- sounds representations that (except pauses) are unique and are not repeated starting from the beginning of the given text (this list is filtered from --- the representations for the silence and then sorted in the ascending order), and the second one is a @String@ obtained from the remainder+-- the representations for the silence), and the second one is a @String@ obtained from the remainder -- list of Strings starting from the first duplicated non-silent sound representation with whitespaces (whitespaces are substituted--- instead of punctiuation symbols, too) and some phonetical conversions. The first argument must be a list of 'String', +-- instead of punctiuation symbols, too) and some phonetic conversions. The first argument must be a list of 'String', -- each of which is a representation for the white space (or more generally, non-sound symbol representation). The second argument is a function that -- converts a 'String' of the text into the 'V.Vector' of sound representations for that language. show7s5 :: [String] -> (String -> V.Vector String) -> String -> ([String], String)@@ -87,7 +88,7 @@ -- | Function 'uniquenessPeriods' takes a text being a @String@ and returns a list of Ints. Each Int value is a number of -- the sounds representations (non-silent ones) being unique and not duplicated alongside the given text starting from the beginning to the end.--- This function provides some important information about the phonetic and in some cases semantical structures of the text. +-- This function provides some important information about the phonetic and in some cases semantic structures of the text. -- The first argument must be a list of 'String', -- each of which is a representation for the white space (or more generally, non-sound symbol representation). The second argument is a function that -- converts a 'String' of the text into the 'V.Vector' of sound representations for that language. @@ -102,7 +103,7 @@ show7snc :: [String] -> [String] -> [Int] show7snc whspss xss = let (tss,vss) = show7sn4' whspss xss in if null vss then [length tss] else length tss:show7snc whspss vss --- | The same as @show7sn'''@, but does not concatenate the list of 'String' as the second tuple's element. +-- | The same as @show7sn'''@ from the MMSyn7s module from the @mmsyn7s@ package, but does not concatenate the list of 'String' as the second tuple's element. -- The first argument must be a list of 'String', -- each of which is a representation for the white space (or more generally, non-sound symbol representation). show7sn4' :: [String] -> [String] -> ([String],[String])
uniqueness-periods-general.cabal view
@@ -2,7 +2,7 @@ -- further documentation, see http://haskell.org/cabal/users-guide/ name: uniqueness-periods-general-version: 0.1.0.0+version: 0.2.0.0 synopsis: Can be used to produce the similar to 'String.Ukrainian.UniquenessPeriods' functions. description: Can be used to produce the similar to 'String.Ukrainian.UniquenessPeriods' from uniqueness-periods package functions. Provides the generalization of them. homepage: https://hackage.haskell.org/package/uniqueness-periods-general