Nihongo

Gem Version Build Status Dependency Status Code Climate Coverage Status

日本語のカタカナ、ひらがな、半角、全角変換を行う事が出来ます。: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

  1. Fork it ( https://github.com/linyows/nihongo/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Authors

License

The MIT License (MIT)