accentuateus-0.9.1: A Haskell implementation of the Accentuate.us API.

Text.AccentuateUs

Synopsis

Documentation

data AUSResponse Source

Represents responses for the three Accentuate.us calls

Constructors

Langs 

Fields

status :: LangsStatus
 
version :: Int
 
languages :: [(String, Lang)]
(ISO-639, Localized Language)
Lift 

Fields

text :: String
 
Feedback 

data LangsStatus Source

Represents languages response status

Constructors

OutOfDate

Given version number < server's

UpToDate

Given version number == server's

OverDate

Given version number > server's

langs :: Maybe Locale -> Int -> IO (Either String AUSResponse)Source

Get langs and their localized names

accentuate :: Lang -> Maybe Locale -> String -> IO (Either String AUSResponse)Source

For a given language, and optionally a locale, accentuates text

feedback :: Lang -> Maybe Locale -> String -> IO (Either String AUSResponse)Source

Submits corrected text as feedback to Accentuate.us