Permalink
Browse files

update readme

  • Loading branch information...
1 parent fd7a0e6 commit f7f286fa5e2f4b2c1467d49ee2d815c9365b2067 @nfjinjing committed Jan 24, 2010
Showing with 12 additions and 2 deletions.
  1. +12 −2 readme.md
View
@@ -1,11 +1,11 @@
Translate
==========
-Haskell binding to Google translate
+Haskell binding to Google's AJAX Language API for Translation and Detection
ghci
- > :m Text.Translate
+ > :m Text.Language.Translate
> translate "en" "fr" "hello"
Just "bonjour"
@@ -14,3 +14,13 @@ Haskell binding to Google translate
> detect "Program testing can be used to show the presence of bugs, but never to show their absence!"
Just ("en",True,0.87355334)
+
+ > :m Text.Language.Detect
+ > detect "bonjour"
+
+ Just ("fr",False,3.6398243e-2)
+
+
+
+
+

0 comments on commit f7f286f

Please sign in to comment.