Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (10 sloc) 384 Bytes

Translate

Haskell binding to Google's AJAX Language API for Translation and Detection

ghci

> :m Text.Language.Translate
> translate "en" "fr" "hello"

Just "bonjour"

> :m Text.Language.Detect
> detect "Program testing can be used to show the presence of bugs, but never to show their absence!"

Just ("en",True,0.87355334)