Namegen
javascript Name Generator (or advanced string concatenator)
Install / Use
/learn @jimdoescode/NamegenREADME
This is an advanced string concatenator. It is geared towards creating random names but can be used to create any random string given the correct setup.
To setup a name generator you need to create a javascript object which you then pass into the name generator upon execution.
The object should look as follows:
var nameObj = {
//Declare some casts
male: {
//Declare parts of string
start: ['Aer', 'An', 'Ar'],
middle: ['al', 'an', 'ian'],
end: ['an', 'ath', 'is', 'or'],
title: ['The Brave'],
//(optional) Declare illegal combos
illegal: ['ananan'],
//Declare a rule that puts the parts together
//Dollar sign '$' separates each command.
//A number specifies the chance the next part will appear.
//An underscore '_' represents a space.
rule: '$start$50$middle$end$_$10$title'
},
female: {
start: ['Aer', 'An', 'Ar'],
middle: ['al', 'en', 'ess'],
end: ['aella', 'ia', 'wen', 'wyn'],
title: ['Lady'],
rule: '$10$title$_$start$50$middle$end'
}
}
Now when you create the name generator you would pass in the name object like this:
var gen = new NameGen(nameObj);
Then to get a name you would specify a cast that is in the nameObj like this:
var name = gen.getName('female');
That will return a random combination of the string segments you created in the name object.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
