> ## Documentation Index
> Fetch the complete documentation index at: https://hangulpy.uiharu.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 구성요소 추출 (get_chosung, get_jungsung, get_jongsung, get_hangul_components)

> 완성형 한글 음절에서 초중종성 추출

## get\_chosung

```python theme={null}
get_chosung(char: str) -> str | None
```

## get\_jungsung

```python theme={null}
get_jungsung(char: str) -> str | None
```

## get\_jongsung

```python theme={null}
get_jongsung(char: str) -> str | None
```

받침이 없으면 빈 문자열을 반환합니다.

## get\_hangul\_components

```python theme={null}
get_hangul_components(char: str) -> tuple[str, str, str] | None
```

## 예시

```python theme={null}
from hangulpy import get_chosung, get_jungsung, get_jongsung, get_hangul_components

print(get_chosung("강"))  # ㄱ
print(get_jungsung("강"))  # ㅏ
print(get_jongsung("강"))  # ㅇ
print(get_jongsung("가"))  # ""
print(get_hangul_components("한"))  # ('ㅎ', 'ㅏ', 'ㄴ')
```

## 같이 보기

* [decompose\_hangul\_string](../assembly/decompose-hangul-string)
