Generate English-sounding nonsense words.
npm install @unglish/word-generator
import wordGenerator from '@unglish/word-generator';
// Generate a single word
const word = wordGenerator.generateWord();
console.log(word);
// Deterministic output by seeding
const rng = wordGenerator.random.seedRandom(42);
const seeded = wordGenerator.generateWord({ rand: rng });
Run a local demo with Vite:
npm run dev
Then open http://localhost:5173 to try the interactive demo located in demo/
.
Run the unit tests with:
npm test
See agents.md for the project's purpose and core design goals.