Skip to content

Add pythainlp.transliterate.pronunciate_pali#1411

Merged
wannaphong merged 3 commits into
devfrom
add-transliterate_pali
May 21, 2026
Merged

Add pythainlp.transliterate.pronunciate_pali#1411
wannaphong merged 3 commits into
devfrom
add-transliterate_pali

Conversation

@wannaphong

@wannaphong wannaphong commented May 13, 2026

Copy link
Copy Markdown
Member

Add pythainlp.transliterate.pronunciate_pali

Convert pali word to Thai pronunciation

    :Example:

        >>> from pythainlp.transliterate import pronunciate_pali
        >>> pronunciate_pali('ภควา')
        'ภะคะวา'
        >>> pronunciate_pali('สมฺมา')
        'สัมมา'
        >>> pronunciate_pali('มยํ')
        'มะยัง'
        >>> pronunciate_pali('สฺวากฺขา')
        'สวากขาโต'

Rule docs: http://210.86.210.116/chalengsak/units/unit1/chapter%205/balee/balee1.html

Your checklist for this pull request

  • Passed code styles and structures
  • Passed code linting checks and unit test

@coveralls

coveralls commented May 13, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 66.741% (+0.05%) from 66.694% — add-transliterate_pali into dev

@wannaphong

Copy link
Copy Markdown
Member Author

@copilot Fix Lint / ruff

Copilot AI commented May 13, 2026

Copy link
Copy Markdown
Contributor

@copilot Fix Lint / ruff

Fixed in commit 70ed111. I resolved the Ruff lint failures by sorting imports in pythainlp/transliterate/__init__.py and tests/core/test_transliterate.py, and re-ran Ruff and transliterate tests successfully.

@sonarqubecloud

Copy link
Copy Markdown

@wannaphong wannaphong added this to the 6.0 milestone May 13, 2026
@wannaphong wannaphong merged commit 3705800 into dev May 21, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants