← Back to Skills Marketplace
esnowxu

各地方言 Map

by esnowxu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
32
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fangyan-map
Description
普通话与六种中文方言双向对照查询技能。支持东北话(哈尔滨话)、河南话、湖南话、天津话、北京话、上海话与普通话的日常词汇对照。适用于AI方言对话、跨方言沟通、方言文化研究、文案本地化。含9489条词汇库。
README (SKILL.md)

方言对照技能 · Chinese Dialect Mapper

普通话 ↔ 六种中文方言 双向对照查询 支持:哈尔滨话 | 河南话 | 湖南话 | 天津话 | 北京话 | 上海话


安装步骤

第一步:初始化数据库

首次安装需要运行初始化脚本,自动创建数据库:

cd skills/dongbeihua-map
python3 init_db.py

运行后会:

  • ✅ 创建 data/dialect.db 数据库
  • ✅ 创建 dialect_map 数据表
  • ✅ 自动导入 9489 条方言记录
  • ✅ 支持 6 种方言

第二步:开始使用

初始化完成后,使用查询命令:

python3 query_dialect.py "你好"
python3 query_dialect.py "贼" --fuzzy
python3 query_dialect.py "聊天" --dialect 上海话

数据统计

方言 总词条 真实数据 AI推断补充
哈尔滨话 1632 1571 61
河南话 1609 1000 609
湖南话 1615 1006 609
天津话 1572 963 609
北京话 1571 962 609
上海话 1490 591 899
合计 9489 6093 3396
  • 唯一普通话词条:1451 条
  • 更新时间:2026-06-06

⚠️ 数据说明

真实数据(6093条):来自真实方言对照文件,来源可靠。

AI推断数据(3396条):基于各方言语言学规律推断生成。标注规则:

方言 推断依据
河南话 "嘞"结尾、"儿"化音
湖南话 "咯/啰"结尾、"不晓得"否定模式
天津话 "儿"化音、"嘛"疑问词
北京话 "儿"化音、"真"程度副词
上海话 "伐/个/勿"否定词

查询命令

# 基本查询(普通话或方言词均可)
python3 query_dialect.py "干什么"
python3 query_dialect.py "嘎哈"
python3 query_dialect.py "贼好"

# 模糊查询(查不到时使用)
python3 query_dialect.py "贼" --fuzzy

# 指定方言查询
python3 query_dialect.py "漂亮" --dialect 上海话

# 按分类查询
python3 query_dialect.py --category 形容词

# 列出所有分类
python3 query_dialect.py --list-categories

# 列出所有方言
python3 query_dialect.py --list-all

输出格式示例

🔍 查询「贼」:
   普通话 → 哈尔滨话 / 河南话 / 湖南话 / 天津话 / 北京话 / 上海话
---------------------------------------------------------------------------
  很好/非常 → 贼/老/嘎嘎/贼拉 / 怪得慌/美里狠 / 扎实好 / 多好 / 多好呀 / 蛮好  (万能副词)

数据分类(哈尔滨话)

分类 说明
日常用语 日常寒暄、问候、致谢等
俄语音译 哈尔滨特有俄语音译词(如"列巴""嘎拉哈")
动作动词 行为动作类词汇
发音规则 哈尔滨城区特殊发音(如"南岗→南gàng")
家居建筑 家居用品、建筑相关词汇
形容词 描述性词汇(漂亮、厉害、埋汰等)
人称称谓 称呼、亲属关系
身体部位 人体部位描述
本土食材 东北特色食材
程度副词 程度表达(贼、嘎嘎、杠杠等)

方言特色词汇示例

普通话 哈尔滨话 上海话 河南话
聊天 唠嗑 谈山海经 说话
厉害 尿性 结棍 真中
膝盖 波棱盖 脚馒头 不老盖儿
漂亮 真俊/带劲 老漂亮个 可排场
回家 家走 转去 回去
舒服 得劲儿 写意 美气
骗人 忽悠 坍朋友 哄人

联系人方言偏好

可通过 contacts.json 设置不同用户的方言偏好,Agent 自动使用对应方言对话。

{
  "contacts": [
    { "open_id": "ou_xxx", "name": "张三", "dialect": "上海话" },
    { "open_id": "ou_yyy", "name": "李四", "dialect": "河南话" }
  ]
}

文件说明

文件 说明
SKILL.md 本技能说明文件
init_db.py 数据库初始化脚本(首次安装必须运行)
query_dialect.py 方言查询工具
data/dialect_data.json.gz 方言数据压缩包(init_db.py 使用)
data/dialect.db 数据库文件(init_db.py 自动生成)
contacts.json 联系人方言偏好设置

免责声明

  • 本技能数据仅供参考娱乐使用
  • AI推断生成的数据可能存在偏差,请以当地方言为准
  • 如有方言准确性争议,以当地方言习惯为准
Usage Guidance
Install only if you are comfortable with a local dialect database being created or reset. Review contacts.json before use, remove any contact entries you do not need, and do not run the auxiliary import scripts unless you understand their hardcoded paths and database mutations.
Capability Assessment
Purpose & Capability
The artifacts match the stated purpose: local Mandarin-to-dialect lookup using bundled data, SQLite initialization, and a query script. I found no network calls, credential handling, background workers, or unrelated capabilities.
Instruction Scope
The README says an agent can automatically use dialect preferences from contacts.json. That behavior is disclosed and purpose-aligned, but users should be able to review or override it because it links names/open_ids to dialect preferences.
Install Mechanism
Installation is a manual python3 init_db.py step. The initializer deletes and recreates the skill-local data/dialect.db, and data/init.sql drops/recreates dialect_map if run directly; this is scoped to the skill database but should be treated as a reset operation.
Credentials
The main query/init flow is local and proportionate. Some auxiliary import scripts contain hardcoded /root/.openclaw paths and row-deletion import behavior, which looks like author-side data maintenance rather than hidden runtime behavior.
Persistence & Privilege
The skill creates a persistent local SQLite database and includes a contacts.json preference file, but it does not request elevated privileges, install services, or persist outside the documented local files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fangyan-map
  3. After installation, invoke the skill by name or use /fangyan-map
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
全新发布:各地方言 Map,支持6种方言对照
Metadata
Slug fangyan-map
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 各地方言 Map?

普通话与六种中文方言双向对照查询技能。支持东北话(哈尔滨话)、河南话、湖南话、天津话、北京话、上海话与普通话的日常词汇对照。适用于AI方言对话、跨方言沟通、方言文化研究、文案本地化。含9489条词汇库。 It is an AI Agent Skill for Claude Code / OpenClaw, with 32 downloads so far.

How do I install 各地方言 Map?

Run "/install fangyan-map" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 各地方言 Map free?

Yes, 各地方言 Map is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 各地方言 Map support?

各地方言 Map is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 各地方言 Map?

It is built and maintained by esnowxu (@esnowxu); the current version is v1.0.0.

💬 Comments