← 返回 Skills 市场
crystaria

Linguistic Landscape Analyzer

作者 Crystaria · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
251
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install linguistic-landscape-analyzer
功能描述
语言景观分析 MCP 工具 - 小红书情感分析与关键词提取,支持语言学/社会学研究
使用说明 (SKILL.md)

Linguistic Landscape Analyzer

Version: 1.0.1 · 安全优化版
Author: 小爪 🦞
License: MIT
Tags: #linguistics #sentiment-analysis #mcp #social-media #research


📊 语言景观分析 MCP 工具

专业的语言景观分析工具,为语言学和社会学研究提供数据支持。通过情感分析、关键词提取和自动报告生成,帮助研究者快速分析社交媒体文本数据。

🎯 这个技能能帮你做什么?

  • 如果你是语言学研究者:分析社交媒体中的语言使用模式、情感倾向和话题演变,支持定量和定性研究。

  • 如果你是社会学研究者:研究网络社区的话语特征、群体情感变化和舆论趋势,获取一手数据支持。

  • 如果你是内容运营者:监控内容情感反馈,提取用户关注热点,优化内容策略。

  • 如果你是数据分析师:快速处理社交媒体文本数据,生成结构化分析报告,提升工作效率。

功能特性

  • 📊 情感分析 - 分析文本的情感倾向(支持中文)
  • 🔑 关键词提取 - 从文本中提取核心关键词
  • 📝 笔记列表 - 读取和管理小红书笔记数据
  • 📈 周报生成 - 自动生成语言景观分析周报(Markdown 格式)

⚠️ 注意事项

  • 当前版本仅处理本地 CSV 数据,不包含任何网络爬虫功能。 未来若增加此类功能,会另行发布。
  • 报告输出路径: 报告保存在技能目录内的 reports/ 文件夹下,确保安全性。
  • 数据隐私: 所有数据处理在本地完成,不会上传到外部服务器。

快速开始

1. 安装 Skill

clawhub install linguistic-landscape-analyzer

或手动安装:

cd /path/to/skill
npm install

2. 启动服务器

npm start

3. 在 OpenClaw 中调用

通过 mcporter CLI:

# 列出工具
mcporter list

# 情感分析
mcporter call linguistic-landscape.analyze_sentiment text:"这个产品很好用" language:"zh"

# 关键词提取
mcporter call linguistic-landscape.extract_keywords text:"小红书运营数据分析" limit:5 language:"zh"

# 笔记列表
mcporter call linguistic-landscape.list_notes source:"sample" limit:10 sortBy:"likes" order:"desc"

# 生成周报
mcporter call linguistic-landscape.generate_weekly_report limit:10

工具说明

analyze_sentiment

情感分析工具 - 分析文本的情感倾向。

参数:

  • text (string, 必填) - 要分析的文本内容
  • language (string, 可选) - 语言类型:zh(中文) 或 en(英文),默认"zh"

示例:

mcporter call linguistic-landscape.analyze_sentiment text:"小红书运营数据很好,推荐" language:"zh"
# 输出:{"score": 2, "sentiment": "positive", "confidence": 0.33}

extract_keywords

关键词提取工具 - 从文本中提取关键词。

参数:

  • text (string, 必填) - 要提取关键词的文本
  • limit (number, 可选) - 返回关键词数量上限,默认 10
  • language (string, 可选) - 语言类型,默认"zh"

示例:

mcporter call linguistic-landscape.extract_keywords text:"小红书运营数据分析,内容优化方向明确" limit:5
# 输出:{"keywords": ["小红书运营数据分析", "内容优化方向明确"]}

list_notes

笔记列表工具 - 读取 CSV 文件中的小红书笔记数据。

参数:

  • source (string, 可选) - 数据源类型:csv 或 sample,默认"sample"
  • limit (number, 可选) - 返回笔记数量上限,默认 10
  • sortBy (string, 可选) - 排序字段:likes/collects/comments/date,默认"date"
  • order (string, 可选) - 排序顺序:asc/desc,默认"desc"

示例:

mcporter call linguistic-landscape.list_notes source:"sample" limit:5 sortBy:"likes" order:"desc"

generate_weekly_report

周报生成工具 - 生成语言景观分析周报(Markdown 格式)。

参数:

  • startDate (string, 可选) - 开始日期 (YYYY-MM-DD)
  • endDate (string, 可选) - 结束日期 (YYYY-MM-DD)
  • outputPath (string, 可选) - 输出文件路径
  • limit (number, 可选) - 分析笔记数量上限,默认 10

示例:

mcporter call linguistic-landscape.generate_weekly_report limit:10
# 输出:{"status": "success", "reportPath": "/path/to/report.md"}

应用场景

语言学研究

  • 分析网络语言使用模式
  • 研究语言变异和变化
  • 追踪新词新语的产生和传播

社会学研究

  • 研究群体情感变化
  • 分析舆论趋势
  • 探索社会话题演变

内容运营

  • 监控用户情感反馈
  • 提取热点话题
  • 优化内容策略

数据分析

  • 批量处理文本数据
  • 生成结构化报告
  • 支持决策制定

技术栈

  • Node.js 22+
  • @modelcontextprotocol/sdk (官方 MCP SDK)
  • sentiment (情感分析库)
  • keyword-extractor (关键词提取)
  • zod (参数验证)

常见问题

Q: 这个技能适合哪些研究场景?

A: 适用于语言学、社会学、传播学等领域的社交媒体文本分析研究,支持情感分析、关键词提取和报告生成。

Q: 情感分析的准确性如何?

A: 当前版本使用基于词典的简单情感分析方法,适合快速原型和初步分析。如需更高精度,可接入专业 NLP API(如阿里云 NLP)。

Q: 如何替换为自己的数据?

A: 将 CSV 文件放到 data/ 目录下,格式参考 sample.csv,然后在调用 list_notes 时指定 source:"csv"

Q: 支持哪些语言?

A: 当前主要支持中文和英文。中文使用简单分词 + 情感词典,英文使用 sentiment 库。

更新日志

v1.0.1 (2026-03-17)

  • 🔒 安全修复 - 报告输出路径改为技能目录内
  • 📝 文档优化 - 添加注意事项说明
  • 🔗 链接修复 - 移除未创建的 GitHub 仓库链接
  • 标签优化 - 明确指定技能标签

v1.0.0 (2026-03-17)

  • ✅ 初始版本发布
  • ✅ analyze_sentiment 工具
  • ✅ extract_keywords 工具
  • ✅ list_notes 工具
  • ✅ generate_weekly_report 工具
  • ✅ 完整测试套件

许可证

MIT License


作者: 小爪 🦞
GitHub: (仓库筹备中,敬请期待)
ClawHub: linguistic-landscape-analyzer

安全使用建议
This skill appears internally consistent and limited to local CSV processing. Before installing: (1) confirm you are comfortable with it writing reports under the skill directory (reports/), (2) review or replace sample.csv with only data you expect it to read, (3) run the included test (npm test) in an isolated environment if you want to observe behavior, and (4) be cautious when upgrading — repository notes mention potential future web scraping or third-party API integration which would expand network access and may require credentials. If you need absolute assurance, inspect src/server.js and the test script locally (they are small and readable) before enabling the skill in production.
功能分析
Type: OpenClaw Skill Name: linguistic-landscape-analyzer Version: 1.0.1 The linguistic-landscape-analyzer bundle is a legitimate Model Context Protocol (MCP) server designed for linguistic and sociological research on social media text. It provides tools for sentiment analysis, keyword extraction, and generating Markdown reports from local CSV data. The code (src/server.js) uses standard libraries like 'sentiment' and 'keyword-extractor' and restricts file operations to the skill's internal 'data/' and 'reports/' directories. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (language-sentiment/keyword extraction for Xiaohongshu research) matches the code and SKILL.md. The only required binary is Node.js and the package.json dependencies (MCP SDK, sentiment, keyword-extractor, zod) are appropriate for the stated functionality.
Instruction Scope
SKILL.md and server.js explicitly operate on local CSV data (data/sample.csv or data/notes.csv) and write reports under the skill directory (reports/). The docs repeatedly state no network crawling in this version. A minor note: other documentation files (01-技术方案.md, delivery report) reference external workspace paths (e.g., /home/admin/.openclaw/...) and possible future web-scraping/cron plans — those are not implemented in the code but should be watched for in future releases.
Install Mechanism
This registry entry has no install spec; SKILL.md contains an npm install suggestion. There is no remote download or extract step; dependency installation is standard npm. No high-risk install URLs or archive extraction were observed.
Credentials
The skill declares no required environment variables or credentials and the code does not access secrets or environment variables beyond file-system paths relative to the project directory. Requested permissions are proportionate to the task.
Persistence & Privilege
always is false and the skill does not request system-wide configuration changes. It writes reports into its own 'reports/' folder and otherwise operates within its project directory. The test script spawns a local Node process to run the MCP server (expected for this platform).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install linguistic-landscape-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /linguistic-landscape-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 报告输出路径调整为技能目录内,提高数据安全性 - 补充文档注意事项,明确说明无网络爬虫,仅处理本地 CSV 数据 - 修正文档中无效或未创建的 GitHub 链接 - 技能标签优化与明确 - 新增交付报告文件
v1.0.0
Linguistic Landscape Analyzer v1.0.0 - Initial release of a professional linguistic landscape analysis tool for research and social media monitoring. - Provides sentiment analysis (中文 & English) and keyword extraction tools. - Supports reading and managing 小红书 notes data via CSV or sample sources. - Generates automated weekly analysis reports in Markdown format. - Fully documented installation and usage instructions for researchers and data analysts.
元数据
Slug linguistic-landscape-analyzer
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Linguistic Landscape Analyzer 是什么?

语言景观分析 MCP 工具 - 小红书情感分析与关键词提取,支持语言学/社会学研究. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 251 次。

如何安装 Linguistic Landscape Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install linguistic-landscape-analyzer」即可一键安装,无需额外配置。

Linguistic Landscape Analyzer 是免费的吗?

是的,Linguistic Landscape Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Linguistic Landscape Analyzer 支持哪些平台?

Linguistic Landscape Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Linguistic Landscape Analyzer?

由 Crystaria(@crystaria)开发并维护,当前版本 v1.0.1。

💬 留言讨论