Module: LearnHangul

Defined in:
lib/support-korean-language.rb

Constant Summary collapse

KOREAN_VOWELS =
%w[                    ].freeze
KOREAN_CONSONANTS =
%w[                  ].freeze
CONSONANT_NAMES =
{ '' => '기역', '' => '니은', '' => '디귿', '' => '리을',
'' => '미음', '' => '비읍', '' => '시옷', '' => '지읒',
'' => '이응', '' => '히읗', '' => '키읔', '' => '티읕',
'' => '피읖', '' => '치읓', '' => '쌍기역', '' => '쌍디귿',
'' => '쌍비읍', '' => '쌍시옷', '' => '쌍지옺' }.freeze
PHONETIC_VALUES =
{ '' => '[a]', '' => '[ə]', '' => '[o]', '' => '[u]',
'' => '[ɨ]', '' => '[i]', '' => '[e],', '' => '[ɛ]',
'' => '[wa]', '' => '[wə]', '' => '[ya]', '' => '[yə]',
'' => '[yo]', '' => '[yu]', '' => '[ye]', '' => '[yɛ]',
'' => '[ö/we]', '' => '[ü/wu]', '' => '[ɨy]', '' => '[we]',
'' => '[wɛ]', '' => '[k/g]', '' => '[n]', '' => '[t/d]',
'' => '[r/l]', '' => '[m]', '' => '[p/b]', '' => '[s]',
'' => '[ø/ŋ]', '' => '[tʃ/j]', '' => '[h]', '' => '[kh]',
'' => '[th]', '' => '[ph]', '' => '[tʃh]', '' => '[k\']',
'' => '[t\']', '' => '[p\']', '' => '[s\']', '' => '[tʃ\']' }.freeze

Instance Method Summary collapse

Instance Method Details

#consonant_name_of(name) ⇒ Object



28
29
30
# File 'lib/support-korean-language.rb', line 28

def consonant_name_of(name)
  CONSONANT_NAMES[name]
end

#display_korean_consonantsObject



24
25
26
# File 'lib/support-korean-language.rb', line 24

def display_korean_consonants
  KOREAN_CONSONANTS.each { |n| print n }
end

#display_korean_vowelsObject



20
21
22
# File 'lib/support-korean-language.rb', line 20

def display_korean_vowels
  KOREAN_VOWELS.each { |n| print n }
end

#pronunciation_of(name) ⇒ Object



32
33
34
# File 'lib/support-korean-language.rb', line 32

def pronunciation_of(name)
  PHONETIC_VALUES[name]
end