Skip to content

Python library for Jyutping: conversion, validation and more

Notifications You must be signed in to change notification settings

CanCLID/python-jyutping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-jyutping

Python library for Jyutping: conversion, validation and more

Install

pip install jyutping

APIs

Conversion (WIP):

>>> import jyutping
>>> jyutping.get('广东话')
['gwong2', 'dung1', 'waa6']

Validation (WIP):

>>> from jyutping import validate, ValidationStatus
>>> assert validate('jyut6') == ValidationStatus.VALID
>>> assert validate('gwek6') == ValidationStatus.UNCOMMON
>>> assert validate('nguk1') == ValidationStatus.INVALID

About

Python library for Jyutping: conversion, validation and more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%