Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

daangn/korean-string

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split Korean characters to individual compontents, join components together to create characters.

You could use it to make some weird conjugation rules. Go wild.

Return an array of arrays of Korean character components

require 'korean-string'
'읽어싶'.split_ko
=> [["ㅇ", "ㅣ", "ㄺ"], ["ㅇ", "ㅓ"], ["ㅅ", "ㅣ", "ㅍ"]]

Accepts an array of character pieces

require 'korean-string'
[["ㅇ", "ㅣ", "ㄺ"], ["ㅇ", "ㅓ"], ["ㅅ", "ㅣ", "ㅍ"]].join_ko
=> '읽어싶'

$ gem build korean-string.gemspec

$ gem push –key github \ –host rubygems.pkg.github.com/daangn \ korean-string-0.1.0.gem

Come up with other useful methods?

Copyright © 2010 Ben Humphreys. See LICENSE for details.

About

Ruby Korean string manipulation gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 100.0%