Skip to content

Instantly share code, notes, and snippets.

@chanian
Forked from xchoi/gist:1516166
Created February 3, 2012 19:31
Show Gist options
  • Save chanian/1731922 to your computer and use it in GitHub Desktop.
Save chanian/1731922 to your computer and use it in GitHub Desktop.
Asian name generator
%w(a e i o u).map {|x|
['', 'a', 'e', 'i', 'o', 'u'].map {|y|
['', 'n', 'ng'].map {|z| (x!=y) ? 'ch' + x + y + z : nil }
}
}.flatten.uniq.compact
@chanian
Copy link
Author

chanian commented Feb 3, 2012

this is the number 1 generator around. sooo good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment