Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 795 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 795 Bytes

Romaji

Build Status Coverage Status

Yet another Romaji-Kana transliterator.

Installation

$ gem install romaji

Usage

require "romaji"
Romaji.kana2romaji "スシ" #=> "sushi"
Romaji.romaji2kana "sushi" #=> "スシ"
Romaji.romaji2kana "sushi", :kana_type => :hiragana #=> "すし"

require "romaji/core_ext/string"
"sushi".kana #=> "スシ"
"スシ".romaji #=> "sushi"
a = "sushi"
a.kana!
p a #=> "スシ"
a.romaji!
p a #=> "sushi"

Author

Shimpei Makimoto

Licence

MIT