Skip to content

Add Thai pangram text #1045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion pythainlp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,19 @@
thai_characters = "".join(
[thai_letters, thai_punctuations, thai_digits, thai_symbols]
)

# Thai pangram by Sungsit Sawaiwan
# CC BY-SA License
# Source: https://fontuni.com/articles/2015-07-12-thai-poetgram.html
thai_pangram = """กีฬาบังลังก์ ฿๑,๒๓๔,๕๖๗,๘๙๐
๏ จับฅอคนบั่นต้อง อาญา
ขุดฆ่าโคตรฃัตติยา ซ่านม้วย
ธรรมฤๅผ่อนรักษา ใจชั่ว โฉดแฮ
สืบอยู่เต็มศึกด้วย ฝุ่นฟ้ากีฬา กามฦๅ ฯ
๏ กตัญญูไป่พร้อม ปฐมฌาน
เกมส๎วัฒน์ปฏิภาณ ห่อนล้ำ
ทฤษฎีถ่อยๆ สังหาร เกณฑ์โทษ
โกรธจี๊ดจ๋อยจ่มถ้ำ อยู่เฝ้า “อตฺตา” ๚ะ๛
๑๒ กรกฎาคม ๒๕๕๘"""

from pythainlp.soundex import soundex
from pythainlp.spell import correct, spell
Expand Down
Loading