Korean Name Generator 
한국어 이름을 랜덤으로 작명해 주는 라이브러리입니다. 남자 이름과 여자 이름 중 하나를 지정하면 그에 어울리는 이름이 생성됩니다.
본 프로젝트는 npm의 korean-name-generator를 python 패키지로 재배포한 프로젝트입니다.
원작자에 대한 정보는 여기서 확인해주세요.
설치하기
pip install korean-name-generator
사용하기
from korean_name_generator import namer
# 남자 이름 생성
male_name = namer.generate(True)
# 여자 이름 생성
female_name = namer.generate(False)
작명 원리
초성, 중성, 종성의 자모별 연관 관계를 인접행렬 형태로 도출한 후, 아래와 같은 간단한 확률 모델을 사용하여 어울릴 법한 자모들을 조합하는 방식입니다. 초성이 선택되면 중성의 확률변수 A가 정해지고, 중성이 정해지면 종성의 확률변수 B*C가 정해집니다.
현재 기본적으로 남자 이름은 약 10000개, 여자 이름은 1000개가 학습되어 있으나, 다른 이름을 학습 데이터로 사용할 수도 있습니다.
from korean_name_generator import namer
names = ['홍범도', '안중근', '유관순', '이봉창', '김좌진']
# 학습
trainedData = namer.train(names)
# 학습된 데이터를 바탕으로 이름 생성
name = namer.generateCustom(trainedData)
라이센스
이 프로젝트는 MIT 라이센스에 따라 자유롭게 이용 가능합니다.
Metadata
Release files for korean-name-generator 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| korean_name_generator-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for korean_name_generator-1.0.1-py3-none-any.whl |
Release files / korean_name_generator-1.0.1-py3-none-any.whl
| Download URL | korean_name_generator-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4298c3b84413b4360f346dbdc988b319433e5b52275912a417be86e0f6fc205
|
|
BLAKE2b-256 checksum How to use checksums |
039c520fe5987b9becd111206dfafff13be6c18e12b73da0fb8111a833f5a29f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2
|
Security for korean-name-generator 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.