Pronounceable and organic words that feel natural.
npm install sonare> Pronounceable and organic words that feel natural.
A lightweight library that generates unique, pronounceable and organic words that feel natural.
- Highly Unique: >85% uniqueness even when generating 1 million words
- Pronounceable: Uses phoneme-based generation for easy-to-say words
- Customizable: Configure minimum and maximum word length
- Lightweight: Zero dependencies
- Fast: Optimized for high-volume generation
``bashpnpm
pnpm add sonare
Usage
$3
`ts
import { sonare } from 'sonare';const word = sonare();
console.log(word); // e.g., "veluna" or "minecho"
`$3
`ts
import { sonare } from 'sonare';const word = sonare({ minLength: 4, maxLength: 6 });
console.log(word); // e.g., "luna" or "vexar"
const word = sonare({ minLength: 10, maxLength: 15 });
console.log(word); // e.g., "velunambor" or "crisechoten"
`$3
`ts
import { sonare } from 'sonare';const words = Array.from({ length: 100 }, () => sonare());
console.log(words); // ["ambor", "tenen", "zilfer", ...]
`API Reference
$3
Generates a single pronounceable word.
Parameters:
-
options (optional): Configuration object
- minLength (number, default: 6): Minimum length of the generated word
- maxLength (number, default: 10): Maximum length of the generated wordReturns:
-
string: A pronounceable word containing only lowercase lettersExample:
`ts
const word = sonare({ minLength: 8, maxLength: 12 });
``MIT
- Bu Kinoshita (@bukinoshita) — Resend
- Zeh Fernandes (@zehf) — Resend