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.7.tar.gz
(12.3 kB
view details)
File details
Details for the file korean-0.1.7.tar.gz.
File metadata
- Download URL: korean-0.1.7.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1de1deec93f3a641d80eabc3a3f54014ff73504a04aaaf9b64675be7d9527a7
|
|
| MD5 |
e4f0ac7d05b09c1a522c914ffb277ca3
|
|
| BLAKE2b-256 |
6dbcd473c2e38f6872b62b6cdf6d19b265805846417e240a7e5864c75a88fb0d
|