google-transliterate
v0.1.0
Published
Non-official Google Transliterate API for Node.js.
Downloads
98
Readme
google-transliterate
Non-official Google Transliterate API for Node.js
Note
- Important: The Google Transliteration API has been officially deprecated as of May 26, 2011.
- https://developers.google.com/transliterate/
- https://developers.google.com/transliterate/v1/getting_started
- http://www.google.co.jp/ime/cgiapi.html
Install
$ npm install --save google-transliterate
Usage
var googleTransliterate = require('google-transliterate');
googleTransliterate.transliterate('おあややおやにおあやまり', 'ja-Hira', 'ja', function(err, transliteration){
transliteration = [
[ 'おあやや', [ 'お文や', 'おあやや', 'お彩や', 'お綾や', 'オアヤヤ' ] ],
[ 'おやに', [ '親に', 'おやに', 'オヤに', 'お屋に', 'お矢に' ] ],
[ 'おあやまり', [ 'お誤り', 'お謝り', 'おあやまり', 'オアヤマリ', 'オアヤマリ' ] ]
];
});
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.
Release History
0.1.0 release
License
Copyright (c) 2014 sanemat. Licensed under the MIT license.