nehing_generator 0.1.0 copy "nehing_generator: ^0.1.0" to clipboard
nehing_generator: ^0.1.0 copied to clipboard

A Dart package that generates meaningless but funny random Korean text (known as 'Nehing') for dummy content, testing, games, and fun experiments.

nehing_generator #

pub package License: MIT CI

🎲 의미 μ—†λŠ” 랜덀 ν•œκΈ€ λ¬Έμžμ—΄, 일λͺ… β€˜λ…œνžβ€™μ„ μƒμ„±ν•˜λŠ” Dart νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

λ‹‰λ„€μž„, 더미 ν…μŠ€νŠΈ, ν…ŒμŠ€νŠΈ 데이터, 감정 ν‘œν˜„,
ν˜Ήμ€ κ·Έλƒ₯ 웃고 싢을 λ•Œ μ“°λ©΄ 쒋을 것 κ°™μ•„μš”.

🎲 A Dart package that generates meaningless but funny random Korean text,
commonly known as β€œNehing”.

This package does not try to generate meaningful Korean words or sentences.
Instead, it creates random Hangul syllables that are perfect for:

  • Dummy text and placeholder content
  • Test data generation
  • Random nicknames
  • Emotion expressions and onomatopoeia
  • Fun experiments

Example Output #

Basic Generation #

  • λ…œνž
  • 꺄릉
  • 멍텅
  • 힣힣

Emotion Onomatopoeia #

  • ν•˜ν•˜ (happy)
  • 흑흑 (sad)
  • 크악 (angry)
  • ν—‰μ—‰ (surprised)
  • ν‚₯ν‚₯ (laughing)

Usage #

Basic Random Generation #

import 'package:nehing_generator/nehing_generator.dart';

void main() {
  // κΈ°λ³Έ 2음절 생성
  print(Nehing.generate());  // 예: "λ…œνž"
  
  // 길이 μ§€μ •
  print(Nehing.generate(length: 4));  // 예: "꺄릉멍텅"
  
  // λ°›μΉ¨ μ œμ™Έ
  print(Nehing.generate(finalConsonant: false));  // 예: "μ½”λ‚˜λ¦¬"
}

Emotion Onomatopoeia #

import 'package:nehing_generator/nehing_generator.dart';

void main() {
  // ν–‰λ³΅ν•œ μ†Œλ¦¬
  print(Nehing.generateEmotion(EmotionType.happy));  // 예: "ν•˜ν•˜"
  
  // μŠ¬ν”ˆ μ†Œλ¦¬
  print(Nehing.generateEmotion(EmotionType.sad));  // 예: "흑흑"
  
  // ν™”λ‚œ μ†Œλ¦¬
  print(Nehing.generateEmotion(EmotionType.angry));  // 예: "크악"
  
  // λ†€λž€ μ†Œλ¦¬
  print(Nehing.generateEmotion(EmotionType.surprised));  // 예: "ν—‰μ—‰"
  
  // μ›ƒμŒ μ†Œλ¦¬
  print(Nehing.generateEmotion(EmotionType.laughing));  // 예: "ν‚₯ν‚₯"
  
  // 길이 쑰절
  print(Nehing.generateEmotion(EmotionType.laughing, length: 4));  // 예: "ν‚₯ν‚₯크ν‚₯"
}

API Reference #

Nehing.generate() #

κΈ°λ³Έ 랜덀 ν•œκΈ€ λ¬Έμžμ—΄μ„ μƒμ„±ν•©λ‹ˆλ‹€.

Parameters:

  • length (int, default: 2) - 생성할 음절 개수
  • finalConsonant (bool, default: true) - λ°›μΉ¨ 포함 μ—¬λΆ€

Returns: String

Nehing.generateEmotion() #

감정에 λ§žλŠ” μ˜μ„±μ–΄λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€.

Parameters:

  • emotion (EmotionType, required) - 감정 νƒ€μž…
    • EmotionType.happy - 행볡/ν₯λΆ„
    • EmotionType.sad - μŠ¬ν””/울음
    • EmotionType.angry - 화남
    • EmotionType.surprised - λ†€λžŒ
    • EmotionType.laughing - μ›ƒμŒ
  • length (int, default: 2) - 생성할 음절 개수

Returns: String

1
likes
160
points
346
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package that generates meaningless but funny random Korean text (known as 'Nehing') for dummy content, testing, games, and fun experiments.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on nehing_generator