Project Icon

random_chinese_fantasy_names

随机生成仙侠小说专有名词的开源项目

这是一个开源的仙侠小说专有名词生成器。该项目可随机生成12种仙侠风格的名称,包括人名、法号、功法、秘籍、生灵、材料、丹药、法宝、门派、国家、地点和大陆。提供NPM包和在线版本,支持自定义生成参数如数量、稀有度等。返回的数据包含名称和稀有度信息,便于开发者进一步使用。适用于小说创作、游戏开发等场景,为创作者提供丰富的灵感来源。

仙侠小说专有名词随机生成器

随机生成仙侠风格的人名、法号、功法、秘籍、生灵、材料、丹药、法宝、门派、国家、地点、大陆。

在线版本

https://hetu.dev/random-names/

NPM包

安装

npm i random_chinese_fantasy_names

导入

import { getName } from "random_chinese_fantasy_names";

Common js模块:

const { getName } = require("random_chinese_fantasy_names/commonjs");

接口

number是生成数量,必填,其他参数可选,如果省略将进行随机。

/**
 * 人名样式
 */
type nameStyleType = "single" | "double" | "combine";

/**
 * 稀有度
 */
type rarityType =
  | "common"
  | "uncommon"
  | "rare"
  | "epic"
  | "legendary"
  | "mythic"
  | "exotic";

/**
 * 人名
 */
export function getName(
  number: number,
  options?: {
    isFemale?: boolean;
    style?: nameStyleType;
    familyName?: string;
    middleCharacter?: string;
  }
): string[];

/**
 * 法号
 */
export function getDao(
  number: number,
  options?: {
    isFemale?: boolean;
    title?: string;
    firstCharacter?: string;
  }
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 功法
 */
export function getSkill(
  number: number,
  options?: {
    length?: number;
    kind?: string;
    prefix?: string;
    numfix?: string;
  }
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 秘籍
 */
export function getBook(
  number: number,
  options?: {
    length?: number;
    prefix?: string;
    mainkind?: string;
    postkind?: string;
    postfix?: string;
  }
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 生灵
 */
export function getCreature(
  number: number,
  options?: {
    category?: string;
    rarity?: string;
  }
): {
  name: string;
  rarity: rarityType;
  category: string;
}[];

/**
 * 材料
 */
export function getMaterial(
  number: number,
  options?: {
    kind?: string;
    rarity?: string;
    postfix?: string;
  }
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 法宝
 */
export function getTalisman(
  number: number,
  options?: {
    kind?: string;
    rarity?: string;
    postfix?: string;
  }
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 丹药
 */
export function getAlchemy(
  number: number,
  kind?: string
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 门派
 */
export function getClan(number: number, kind: string): string[];

/**
 * 国家
 */
export function getNation(
  number: number,
  kind?: string
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 地点
 */
export function getLocation(
  number: number,
  kind?: string
): {
  name: string;
  rarity: rarityType;
}[];

/**
 * 大陆
 */
export function getZone(
  number: number,
  kind?: string
): {
  name: string;
  rarity: rarityType;
}[];

返回数据示例

[
  "易尤厚",
  "墨岂艺",
  "路瑛闵",
  "董年昕",
  "诸葛之霖",
  "夏侯朝闲",
  "常崇皓",
  "申司翼",
  "欧阳佳",
  "陈奇璐",
][
  ({ name: "秘亨", rarity: "普通" },
  { name: "寂善子", rarity: "不常见" },
  { name: "建临", rarity: "普通" },
  { name: "本信", rarity: "普通" },
  { name: "阳莲子", rarity: "不常见" },
  { name: "恭泰", rarity: "普通" },
  { name: "善方", rarity: "普通" },
  { name: "法常子", rarity: "不常见" },
  { name: "立道", rarity: "普通" },
  { name: "荣章道姑", rarity: "不常见" })
][
  ({ name: "玄冰导引术", rarity: "普通" },
  { name: "守天花雨内功", rarity: "不常见" },
  { name: "照天御剑术", rarity: "普通" },
  { name: "摘星飞渡枪", rarity: "不常见" },
  { name: "戮龙紫霞六阴气", rarity: "稀有" },
  { name: "灵鳌气", rarity: "普通" },
  { name: "千钧灵宝莲华神术", rarity: "稀有" },
  { name: "紫微步", rarity: "普通" },
  { name: "三危金蛇神法", rarity: "不常见" },
  { name: "太元枪", rarity: "普通" })
][
  ({ name: "《定风棍》", rarity: "普通" },
  { name: "《静禅功》", rarity: "普通" },
  { name: "《十一路大洞虚棍》", rarity: "普通" },
  { name: "《白虹大赤一气擒拿手》", rarity: "稀有" },
  { name: "《无相诛天困仙指》", rarity: "稀有" },
  { name: "《素银太祖遁术》", rarity: "不常见" },
  { name: "《小逍遥轻功》", rarity: "普通" },
  { name: "《离梦三才爪》", rarity: "不常见" },
  { name: "《凤凰神行法》", rarity: "普通" },
  { name: "《分神荡魔凌云御剑术真典》", rarity: "传说" })
][
  ({ name: "碧野芝", rarity: "不常见", category: "植物" },
  { name: "无上蚯蚓", rarity: "稀有", category: "蠕虫" },
  { name: "合欢野猫", rarity: "传说", category: "野兽" },
  { name: "暗魔鲸", rarity: "不常见", category: "鱼类" },
  { name: "黑玄鳄", rarity: "不常见", category: "爬行动物" },
  { name: "白仙蜥蜴", rarity: "不常见", category: "爬行动物" },
  { name: "伏虎棘", rarity: "稀有", category: "植物" },
  { name: "万花暗虫", rarity: "史诗", category: "昆虫" },
  { name: "无妄草", rarity: "稀有", category: "植物" },
  { name: "黑灵竹", rarity: "不常见", category: "植物" })
][
({ name: "墨魔钻", rarity: "非凡" },
  { name: "普贤古果", rarity: "稀有" },
  { name: "碧宝金", rarity: "非凡" },
  { name: "烟雨玄参", rarity: "稀有" },
  { name: "碧魔玉", rarity: "非凡" },
  { name: "四海神浆", rarity: "稀有" },
  { name: "金霞古丝", rarity: "稀有" },
  { name: "碧古金", rarity: "非凡" },
  { name: "碧宝液", rarity: "非凡" },
  { name: "紫仙岩", rarity: "非凡" })
][
  ({ name: "百灵茶", rarity: "普通" },
  { name: "百毒酒", rarity: "普通" },
  { name: "抱元酒", rarity: "普通" },
  { name: "守拙丸", rarity: "普通" },
  { name: "两界药", rarity: "普通" },
  { name: "青焰精散", rarity: "稀有" },
  { name: "雷电神茶", rarity: "传说" },
  { name: "游身酒", rarity: "非凡" },
  { name: "御龙散", rarity: "普通" },
  { name: "五气丸", rarity: "非凡" })
][
  ({ name: "太元真罩", rarity: "奇异" },
  { name: "绝魔石锁", rarity: "史诗" },
  { name: "化影印", rarity: "稀有" },
  { name: "白水晶针(仿制品)", rarity: "非凡" },
  { name: "封仙鼓", rarity: "稀有" },
  { name: "潇湘矛", rarity: "稀有" },
  { name: "护神金戟", rarity: "史诗" },
  { name: "灰竹钟(赝品)", rarity: "非凡" },
  { name: "乌骨链", rarity: "非凡" },
  { name: "灵丹弓(赝品)", rarity: "稀有" })
][
  ("灭魔轩",
  "绝神客栈",
  "青焰门",
  "雷电观",
  "化影苑",
  "燕子斋",
  "混元山庄",
  "混元宫",
  "乘风寨",
  "戮龙洞")
][
  ({ name: "滨国", rarity: "普通" },
  { name: "越国", rarity: "普通" },
  { name: "永国", rarity: "普通" },
  { name: "岚国", rarity: "普通" },
  { name: "玲珑部落", rarity: "非凡" },
  { name: "满国", rarity: "普通" },
  { name: "虎首联盟", rarity: "稀有" },
  { name: "抚国", rarity: "普通" },
  { name: "万刃国", rarity: "非凡" },
  { name: "丽国", rarity: "普通" })
][
  ({ name: "诛妖水", rarity: "非凡" },
  { name: "并阴市", rarity: "普通" },
  { name: "灵洞", rarity: "普通" },
  { name: "混天堡", rarity: "非凡" },
  { name: "梁坞", rarity: "普通" },
  { name: "永阳林", rarity: "普通" },
  { name: "离别观", rarity: "非凡" },
  { name: "惠湖", rarity: "普通" },
{ name: "万里峰", rarity: "uncommon" },
{ name: "狐岐观", rarity: "rare" }
][
({ name: "浮玉大陆", rarity: "rare" },
{ name: "单洲", rarity: "common" },
{ name: "琼洲", rarity: "common" },
{ name: "安洲", rarity: "common" },
{ name: "容洲", rarity: "common" },
{ name: "滨洲", rarity: "common" },
{ name: "谯明界", rarity: "rare" },
{ name: "德洲", rarity: "common" },
{ name: "无踪洋", rarity: "uncommon" },
{ name: "固洲", rarity: "common" })
];
项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

吐司

探索Tensor.Art平台的独特AI模型,免费访问各种图像生成与AI训练工具,从Stable Diffusion等基础模型开始,轻松实现创新图像生成。体验前沿的AI技术,推动个人和企业的创新发展。

Project Cover

SubCat字幕猫

SubCat字幕猫APP是一款创新的视频播放器,它将改变您观看视频的方式!SubCat结合了先进的人工智能技术,为您提供即时视频字幕翻译,无论是本地视频还是网络流媒体,让您轻松享受各种语言的内容。

Project Cover

美间AI

美间AI创意设计平台,利用前沿AI技术,为设计师和营销人员提供一站式设计解决方案。从智能海报到3D效果图,再到文案生成,美间让创意设计更简单、更高效。

Project Cover

稿定AI

稿定设计 是一个多功能的在线设计和创意平台,提供广泛的设计工具和资源,以满足不同用户的需求。从专业的图形设计师到普通用户,无论是进行图片处理、智能抠图、H5页面制作还是视频剪辑,稿定设计都能提供简单、高效的解决方案。该平台以其用户友好的界面和强大的功能集合,帮助用户轻松实现创意设计。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号