sroberts / hubot-vtr-scripts

Scripts for making Hubot a CND Sidekick
MIT License
59 stars 15 forks source link

Create Translation Script #28

Open sroberts opened 10 years ago

sroberts commented 10 years ago

Possible APIs

patcon commented 10 years ago

Can we just extract this into its own packages and dep on it? https://github.com/github/hubot-scripts/blob/master/src/scripts/speak.coffee

patcon commented 10 years ago

Oops. That's spoken word.

Wow. Genuinely surprised that translate functionality didn't exist already. Any objection to packaging this separately and adding it as a dependency?

patcon commented 10 years ago

Google costs cash-monies, but seems microsoft api is free (for 2 million chars/month): http://blogs.msdn.com/b/translation/p/gettingstarted2.aspx

http://api.microsofttranslator.com/v2/Http.svc/Translate?text=<urlencoded string>&from=en&to=es

sroberts commented 10 years ago

@patcon you bring up an interesting point about this being a more generalized plugin that we could use in VTR, that's not a bad idea. It'd be easy to add it as a part of github/hubot-script, then we can just add something to hubot-scripts.json.

I agree though, the BingAPI seems the best one by far.

Wanna take a crack?