Skip to content

A gem that converts Korean names into their English equivalent. And vice-versa.

Notifications You must be signed in to change notification settings

DaniG2k/korean_name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

KoreanName

The KoreanName gem converts Korean names from hangeul into their English equivalent. It can also do the reverse.

Installation

Add this line to your application's Gemfile:

gem 'korean_name'

And then execute:

$ bundle

Or install it yourself as:

$ gem install korean_name

Usage

Require the gem:

require 'korean_name'

Then convert a Korean name into English:

name = KoreanName::Translator.new :first_name => '연아', :last_name => "김"
name.to_en
 => {:first_name=>"Yeonah", :last_name=>"Kim"}

or do the opposite:

name = KoreanName::Translator.new :first_name => "Sohyeon", :last_name => "Choe"
name.to_ko
 => {:first_name=>"소현", :last_name=>"최"}

Development

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/DaniG2k/korean_name.

About

A gem that converts Korean names into their English equivalent. And vice-versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published