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.
초성, 부분 음절, 완성형 패턴 포함 여부 확인
hangul_contains
hangul_contains(word: str, pattern: str, not_allow_empty: bool = False) -> bool
not_allow_empty
False
notallowempty
from hangulpy import hangul_contains print(hangul_contains("사과", "ㅅ")) # True print(hangul_contains("사과", "삭")) # True print(hangul_contains("사과", "ㅅㄱ")) # True print(hangul_contains("사과", "삽")) # False
from hangulpy import hangul_contains print(hangul_contains("사과", "")) # True print(hangul_contains("사과", "", not_allow_empty=True)) # False