/romaji

Utility to convert between katakana and romaji for Ruby.

Primary LanguageRubyMIT LicenseMIT

romaji

Build Status MIT License

Utility to convert between katakana and romaji for Ruby.

Requirement

  • Ruby

Usage

require './romaji.rb'

romaji = Romaji.new './romaji.csv'

romaji.to_romaji 'コンニチハ'
# => [["ko"], ["nn"], ["ni"], ["ti", "chi"], ["ha"]]

oooooo
romaji.to_katakana ["ko", "nn", "ni", "chi", "ha"]
# => コンニチハ