translate-2010.1.24: Haskell binding to Google's AJAX Language API for Translation and Detection




detect :: String -> IO (Maybe (String, Bool, Double))Source

Returns a triple where the first component is the language code associated with given text, the second is a boolean representing whether or not the detection interval believes the language code is reliable for the given text, and the third is a numeric value between 0-1.0 that represents the confidence level in the language code for the given text.

detectCode :: String -> IO (Maybe String)Source

Returns the language code associated with the given text