Hangul Converter

A simple utility to convert between Hangul syllables and their individual components (initial consonant, medial vowel, and final consonant).

Features

  • Convert from individual Hangul components to a combined syllable.
  • Decompose a Hangul syllable into its individual components.

Usage

  1. Converting to a Syllable:
syllable = composer(initial, medial, final)

Example:

syllable = composer('ㅅ', 'ㅏ', 'ㅇ')
print(syllable)  # Outputs: 상
  1. Decomposing a Syllable:
initial, medial, final = decomposer(syllable)

Example:

initial, medial, final = decomposer('상')
print(initial, medial, final)  # Outputs: ㅅ ㅏ ㅇ

License

MIT License

Notice

This README and the associated code were initially generated by OpenAI's GPT-4 and subsequently modified for specific use cases.