Sometimes you should localize your project to Korean. But common i18n solutions such as gettext are not working with non Indo-European language well. Korean also has many morphological difference. “korean” a Python module provides useful Korean morphological functions.
Do not use “을(를)” anymore
>>> from korean import Noun
>>> fmt = u'{subj:은} {obj:을} 먹었다.'
>>> print fmt.format(subj=Noun(u'나'), obj=Noun(u'밥'))
나는 밥을 먹었다.
>>> print fmt.format(subj=Noun(u'학생'), obj=Noun(u'돈까스'))
학생은 돈까스를 먹었다.
Links
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
korean-0.1.1.tar.gz
(8.8 kB
view details)
File details
Details for the file korean-0.1.1.tar.gz.
File metadata
- Download URL: korean-0.1.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41d8b44f9b819874ecc350113cd1c0bee16c56756b377ecba7fa957ab3cd3c12
|
|
| MD5 |
3ac7c9745003942ace90523da372f529
|
|
| BLAKE2b-256 |
688f7a65b6659892e13ee18fdacd33e5583f785bc1c7bd1e49fcc61ec15e1ecf
|