🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

ko-pron

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ko-pron

Korean pronunciation and romanisation based on Wiktionary ko-pron lua module

pipPyPI
Version
1.3
Maintainers
1

Information

Hangul pronunciation and romanisation module.

This is actally rewritten to python Wiktionary lua module ko-pron Current revision: https://en.wiktionary.org/w/index.php?title=Module_talk:ko-pron&oldid=49615051

Supported transformations:

  • Revised Romanisation (rr)
  • phonetic hangul (ph)
  • Yale romanisation (yr)
  • McCune-Reischauer (mr)
  • WT-revised Revised Romanisation (rrr)
  • IPA (ipa)

McCune-Reischauer, IPA, Revised Romanisation, phonetic hangul take into aacount changes in pronunciation like: "있다" is pronounced as "itta" etc.

Method "romanise" also accepts optional parameters. They are described in documentation of original lua module

Usage

from ko_pron import romanise

print(romanise("있다", "mr"))

Result: itta

Install locally

pip install -e .

Test coverage

Run tests with coverage

cd test
./coverage.sh

Run html tests after running tests

coverage html

Results

NameStmtsMissCover
/Users/andrey/Projects/ko_pron/ko_pron/__init__.py20100%
/Users/andrey/Projects/ko_pron/ko_pron/data.py20100%
/Users/andrey/Projects/ko_pron/ko_pron/ko_pron.py1862388%
test_params.py770100%
test_pronunciation.py110100%
--------------------------------------------------------------------
TOTAL2782392%

GitHub

Original lua module

Optional parameters

Keywords

hangul korean pronunciation romanisation romanization IPA Yale McCune-Reischauer WT-revised revised

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts