nehing_generator 0.1.0
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 #
π² μλ―Έ μλ λλ€ νκΈ λ¬Έμμ΄, μΌλͺ βλ νβμ μμ±νλ 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