npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

korean-name-generator

v1.0.4

Published

Generates random yet reasonable Korean names

Downloads

483

Readme

Korean Name Generator npm

한국어 이름을 랜덤으로 작명해 주는 간단한 라이브러리입니다. 남자 이름과 여자 이름 중 하나를 지정하면 그에 어울리는 이름이 생성됩니다. 통계적 학습 방법을 사용하여 그럴듯한 이름이 만들어지도록 하였습니다.

설치하기

npm install korean-name-generator

사용하기

var namer = require("korean-name-generator");

// 남자 이름 생성
var maleName = namer.generate(true);

// 여자 이름 생성
var femaleName = namer.generate(false);

작명 예제

// 남자 이름
"곽형수", "전창희", "박진석", "이상지", "송성훈", "김혜석", "김장군", "최정웅", "서재균", "고상희", "이승호"

// 여자 이름
"이세연", "홍승현", "최주원", "변지경", "최은아", "이민서", "권주안", "진하은", "김소경", "임수영", "정유진"

다른 언어에서 사용하기

현재 Python과 Go로 포팅된 버전이 존재합니다.

| 환경 | 리포지토리 | 개발 | |--------|---------------------------------------------------------------------------|------------------------------------------| | Python | korean-name-generator | @tinyjin | | Go | korname | @dfkdream |

작명 원리

초성, 중성, 종성의 자모별 연관 관계를 인접행렬 형태로 도출한 후, 아래와 같은 간단한 확률 모델을 사용하여 어울릴 법한 자모들을 조합하는 방식입니다. 초성이 선택되면 중성의 확률변수 A가 정해지고, 중성이 정해지면 종성의 확률변수 B*C가 정해집니다.

Diagram

커스텀 학습 데이터

현재 기본 내장된 trained-data.js에 약 10,000개의 90년대생 남자 이름과 약 1,000개의 90년대생 여자 이름이 학습되어 있습니다. 혹시 다른 특성을 가진 이름군을 소스로 사용하고 싶다면, 아래의 메서드로 학습 및 적용이 가능합니다.

var names = ["홍범도", "안중근", "유관순", "이봉창", "김좌진"];

// 학습
var trainedData = namer.train(names);

// 학습된 데이터를 바탕으로 이름 생성
var name = namer.generateCustom(trainedData);

커스텀 데이터를 사용하실 경우 최소 500개 이상의 이름을 학습시키는 것을 권장합니다.

라이센스

이 프로젝트는 MIT 라이센스에 따라 자유롭게 이용 가능합니다.