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

Latest on Hackage:2010.1.24

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Joao F. Ferreira, Jinjing Wang
Maintained by Jinjing Wang


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


> :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)


2010.01.24 Joao F. Ferreira

  • Added support for language detection: Text.Language.Detect
  • Text.Translate is now Text.Language.Translate, but I’ve maintained Text.Translate for backward compatibility
  • Fixed bug with URI escaping. Google’s API is expecting an ASCII string that is first escaped with UTF-8.
  • Refactored parts of the module to avoid repeated code
Depends on 5 packages:
Used by 1 package:
comments powered byDisqus