Romajify
Japanese romanization library for Ruby.
Installation
Add this line to your application's Gemfile:
gem 'romajify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install romajify
Usage
Command Line Interface
$ romajify hepburn すし
Ruby Source Code
require 'romajify/converter'
puts Romajify::Converter.hepburn('すし')
Supported Romaji
Hepburn Romaji
Modified Hepburn:
$ romajify hepburn しんばし
# => shinbashi
Traditional Hepburn:
$ romajify hepburn --traditional しんばし
# => shimbashi
Nihon-shiki Romaji
$ romajify nihon まちづくり
# => matidukuri
Kunrei-shiki Romaji
$ romajify kunrei まちづくり
# => matizukuri
Contributing
- Fork it ( https://github.com/emsk/romajify/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