Korean Conjugation Paradigm Generator
Project description
KoParadigm: Korean Inflectional Paradigm Generator
(Inflectional) paradigm means the set of all the inflected forms of a word. For example, English verb "look" has inflected forms like "look", "look-s", "look-ed", and "look-ing", as all of you know. Paradigms are widely used in corpus linguistics or search engines. To create the full paradigm set of a language is sometimes tricky. It is particularly so when we deal with a morphologically rich language like Korean. Inflection of Korean verbs is notorisouly complicated. Typically, a Korean verb can combine with more than 100 endings. What is worse, the combination rules are not simple at all. They are determined by the sound of the verb/ending, and the part-of-speech of the verb (action / descriptive). That's why so far there's no open sources of Korean paradigm generator, I think. Here's the first one. With KoParadigm, you can easily get the full paradigm of a Korean verb.
Dependencies
- python >=3.6
- jamo >=0.4.1
- xlrd > 1.2.0
Installation
pip install koparadigm
Usage
>>> from koparadigm import Paradigm, prettify
>>> p = Paradigm()
>>> verb = "곱" # Note that you must drop the final ending 다
>>> paradigms = p.conjugate(verb) # this returns list of lists
>>> print(paradigms)
[['Action Verb', [('거나', '곱거나'), ('거늘', '곱거늘'), ('거니', '곱거니') ...]]]
>>> prettify(paradigms)
POS = Action Verb
• ending = 거나 form = 곱거나
• ending = 거늘 form = 곱거늘
• ending = 거니 form = 곱거니
...
==================== 2 ====================
POS = Descriptive Verb
• ending = 거나 form = 곱거나
• ending = 거늘 form = 곱거늘
• ending = 거니 form = 곱거니
• ending = 거니와 form = 곱거니와
...
References
If you use our software for research, please cite:
@misc{KoParadigm2019,
author = {Park, Kyubyong },
title = {KoParadigm},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/Kyubyong/paradigm}}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for koparadigm-0.9.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a68c0b5c66fe9416c1162066b098112c158558dc3a12bcab0fcfb8e1cf5504fd |
|
MD5 | 1c719e7d33fd25394fffbb7fe24a5b5a |
|
BLAKE2b-256 | 82d40a054ce4f83bd091e99989fa161e306261b1a0b8b9a446439d14c5164dcb |