Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
문자열과 단일 문자 기준의 기본 한글 판별 함수
is_hangul(text: str, spaces: bool = False) -> bool
spaces
False
from hangulpy import is_hangul print(is_hangul("반가워요")) # True print(is_hangul("안녕 하세요")) # False print(is_hangul("안녕 하세요", spaces=True)) # True print(is_hangul("")) # False
is_hangul_consonant(char: str) -> bool
is_hangul_vowel(char: str) -> bool
from hangulpy import is_hangul_consonant, is_hangul_vowel print(is_hangul_consonant("ㄱ")) # True print(is_hangul_consonant("ㅏ")) # False print(is_hangul_vowel("ㅏ")) # True print(is_hangul_vowel("ㄱ")) # False