string-interpreter-0.7.0.0: Is used in the phonetic languages approach (e. g. in the recursive mode).
Copyright(c) OleksandrZhabenko 2021-2022
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010
Extensions
  • ScopedTypeVariables
  • ExplicitForAll

Interpreter.StringConversion

Description

A library that has commonly used function for the phonetic-languages implementations.

Synopsis

Documentation

convStringInterpreter :: String -> String -> String Source #

Converts the second given string into the form that can be easily used by the phonetic-languages-simplified-* implementations.

convStringInterpreterIO :: String -> String -> IO String Source #

Variant of the convStringInterpreter with the additional possibility to correct splitting after revision.

correctionF :: Monad m => Int -> String -> Int -> [String] -> m String Source #

readFileIfAny :: FilePath -> IO String Source #

Inspired by: 'https://hackage.haskell.org/package/base-4.15.0.0/docs/src/GHC-IO.html#catch' Reads a textual file given by its FilePath and returns its contents lazily. If there is some IOException thrown or an empty file then returns just "". Raises an exception for the binary file.

fullArgsConvertTextual Source #

Arguments

:: (String -> Bool)

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

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

fullArgsConvertTextualSimple Source #

Arguments

:: (String -> Bool)

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

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