drasil-utils-0.1.1.0: A framework for code and document generation for scientific software - Utils SubPackage
Safe HaskellNone
LanguageGHC2024

Utils.Drasil.English

Description

Useful functions for working with English-related Strings.

Synopsis

Documentation

capitalize :: String -> String Source #

String capitalization.

foldlList :: (IsString a, Semigroup a) => [a] -> a Source #

Organize a list of Strings (or other IsString/Semigroup types), separated by commas and inserting "and" before the last item.

stringList :: [String] -> String Source #

Comma separated list with "and" before final item, omitting empty strings.