-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Random text generation based on spintax
--   
--   Random text generation based on spintax with nested alternatives and
--   empty options.
@package Spintax
@version 0.3.2

module Text.Spintax

-- | Generate random texts based on a spinning syntax template, with nested
--   alternatives and empty options.
--   
--   <pre>
--   λ&gt; spintax "{{Oh my God|Awesome}, {a|the}|A|The} {quick {and dirty |||}||}{brown |pink |grey |}{fox|flea|elephant} jumps over {the|a} {lazy |smelly |sleepy |}{dog|cat|whale}{.|!|...}"
--    Right "Awesome, the quick pink fox jumps over a sleepy whale."
--   </pre>
spintax :: Text -> IO (Either String Text)
