Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Text.Titlecase.Internal
Description
As the name implies, this module is meant to be used only if you want to
get access to the internals, say, if you're unhappy with the provided
titlecase
function.
- newtype Article = Article {}
- isArticle :: String -> Bool
- articles :: [Article]
- newtype Conjunction = Conjunction {}
- conjunctions :: [Conjunction]
- isConjunction :: String -> Bool
- data Preposition
- prepositions :: [Preposition]
- unPreposition :: Preposition -> String
- isOneWordPreposition :: String -> Bool
- isTwoWordPreposition :: String -> String -> Bool
- isThreeWordPreposition :: String -> String -> String -> Bool
- isFourWordPreposition :: String -> String -> String -> String -> Bool
- oneWordPrepositions :: [Preposition]
- twoWordPrepositions :: [Preposition]
- threeWordPrepositions :: [Preposition]
- fourWordPrepositions :: [Preposition]
- toTitle :: String -> String
- (<#>) :: String -> String -> String
- uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
- uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
- isElem :: (a -> String) -> [a] -> String -> Bool
Articles
Conjunctions
conjunctions :: [Conjunction] Source #
isConjunction :: String -> Bool Source #
Prepositions
data Preposition Source #
Constructors
OneWordPreposition String | |
TwoWordPreposition String String | |
ThreeWordPreposition String String String | |
FourWordPreposition String String String String |
Instances
prepositions :: [Preposition] Source #
The words come from Wikipedia but without subordinating conjunctions.
unPreposition :: Preposition -> String Source #
isOneWordPreposition :: String -> Bool Source #