Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Input Tools "API" -- can it be used?

I noticed that Google accepts transliteration and IME requests in any language through the url:

https://inputtools.google.com/request?text=$&itc=$&num=$\
    &cp=0&cs=1&ie=utf-8&oe=utf-8&app=test

where $ is a variable below, for any language and text.

For example, French (try it):

var text = "ca me plait",
    itc = "fr-t-i0-und",
    num = 10;
// Result:
[
    "SUCCESS",
    [
        [
            "ca me plait",
            [
                "ça me plaît"
            ]
        ]
    ]
]

Or, Mandarin (try it):

var text = "shide",
    itc = "zh-t-i0-pinyin",
    num = 5;
// Result: 
[
    "SUCCESS",
    [
        [
            "shide",
            [
                "使得",
                "似的",
                "是的",
                "实德",
                "似地"
            ],
            [],
            {
                "annotation": [
                    "shi de",
                    "shi de",
                    "shi de",
                    "shi de",
                    "shi de"
                ]
            }
        ]
    ]
]

All languages work and return great suggestions. The thing is I can't find documentation for this anywhere on the web, although it clearly looks like an API. Does anyone know if there is an official Google client or if they're okay with raw, unauthenticated requests?

It's used perhaps unofficially by plugins like jQuery.chineseIME.js, but I would appreciate any official usage information.

like image 481
atp Avatar asked Aug 20 '13 07:08

atp


People also ask

Is Google Input Tools Free?

Free input tool transliteration software extension. Google Input Tools is a free transliteration software extension for your PC. The Windows extension allows you to enter text in your preferred language, even when your keyboard doesn't have the correct characters. Google Input Tool supports over 90 languages.

Can we download Google Input Tools?

Google Input is currently available on Google Drive. There is also an extra option of downloading the Google Input extension on Google Chrome. After the download, open Microsoft Word, change the language from default English to the native language via the language bar and users can write in their native language.

What are the benefits of Google Input Tools?

Advantages of using Google Input ToolsIt supports multiple languages. It is easy to use and has a clean user-interface. It is a free tool that can be used both online and offline. You can easily integrate it with the Chrome browser to use online.


1 Answers

Whatever. I created my own plugin that uses it for Chinese, and can be extended easily: https://bitbucket.org/purohit/jquery.intlkeyboard.js.

like image 79
atp Avatar answered Oct 14 '22 04:10

atp