google-input-tools

Google Input Tools “API” — can it be used?

百般思念 提交于 2019-12-03 07:10:14
问题 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: [

Google Input Tools “API” — can it be used?

不打扰是莪最后的温柔 提交于 2019-12-02 21:58:24
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