Nihongo
日本語のカタカナ、ひらがな、半角、全角変換を行う事が出来ます。:jp:
Installation
Add this line to your application's Gemfile:
gem 'nihongo'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nihongo
Usage
Stringに生えています。
[1] 2.1.2(main)> require 'nihongo'
=> true
[2] 2.1.2(main)> 'コンニチハ〜'.to_hiragana
=> "こんにちは〜"
[3] 2.1.2(main)> 'いいお天気ですね'.to_katakana
=> "イイオ天気デスネ"
[4] 2.1.2(main)> 'Rubyダイ好キデス!'.to_zenkaku
=> "Rubyダイ好キデス!"
[5] 2.1.2(main)> '私はver2.1.2です~'.to_hankaku
=> "私はver2.1.2です~"
Contributing
- Fork it ( https://github.com/linyows/nihongo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Authors
License
The MIT License (MIT)