refactor(copywriting): 深入审查全站文案,彻底剔除AI味与冗长套话,全面强化务实大厂工程语言
这个提交包含在:
@@ -9,7 +9,7 @@
|
||||
<span class="nhc-seal" style="background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.4); color: #F87171;">纳海川</span>
|
||||
</div>
|
||||
<p class="nhc-footer-brand-desc">
|
||||
纳海川,立足西南、服务全国,专注于企业级数字化技术中台建设、全场景移动端/小程序生态定制及垂直领域 AI 智能体应用研发,以严谨工匠精神打造稳定、高可用的软件资产。
|
||||
纳海川,立足西南、服务全国,专注于企业级数字化技术中台建设、移动端与小程序开发及企业私有化 AI 落地,严格遵循工程规范与代码审查,交付稳定可靠、自主可控的软件系统。
|
||||
</p>
|
||||
<div style="font-size: 13px; color: #64748B;">
|
||||
<span>统一技术标准 · 遵循 ISO 研发规范 · 源码交付与私有化部署</span>
|
||||
|
||||
@@ -417,7 +417,7 @@
|
||||
</li>
|
||||
<li class="nhc-product-feat-item">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
<span>自动生成经营毛利分析与多维度财务报表</span>
|
||||
<span>自动生成经营毛利与多项目财务报表</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="nhc-product-footer">
|
||||
@@ -773,7 +773,7 @@
|
||||
<div class="nhc-testimonial-card">
|
||||
<div class="nhc-quote-icon">“</div>
|
||||
<p class="nhc-testimonial-text">
|
||||
在企业级 AI 智能体开发上,纳海川团队的技术储备令人印象深刻。搭建的专属 RAG 知识库检索准确率极高,而且在私有化部署和数据合规上做得滴水不漏,值得托付。
|
||||
在企业级 AI 智能体开发上,纳海川团队的技术能力扎实。搭建的专属 RAG 知识库检索精准,私有化部署完全符合内网审查标准,合作省心。
|
||||
</p>
|
||||
<div class="nhc-testimonial-author">
|
||||
<div class="nhc-author-avatar">王</div>
|
||||
|
||||
@@ -25,19 +25,19 @@
|
||||
<div class="nhc-carousel" id="nhcHeroCarousel">
|
||||
<div class="nhc-carousel-track">
|
||||
|
||||
<!-- 幻灯片 1:领航篇 -->
|
||||
<!-- 幻灯片 1:企业开发篇 -->
|
||||
<div class="nhc-carousel-slide nhc-slide-theme-1 active" data-slide-index="0">
|
||||
<div class="nhc-container">
|
||||
<div class="nhc-hero-content">
|
||||
<div class="nhc-hero-badge">
|
||||
<span class="nhc-seal">纳海川</span>
|
||||
<span class="nhc-hero-badge-text">现代企业数字化底座与智能体定制专家</span>
|
||||
<span class="nhc-seal">企业级开发</span>
|
||||
<span class="nhc-hero-badge-text">贵阳纳海川科技 · 定制开发与技术中台</span>
|
||||
</div>
|
||||
<h1 class="nhc-hero-title">
|
||||
专注企业级软件定制开发<br><span class="highlight">按期交付</span>自主可控系统
|
||||
</h1>
|
||||
<p class="nhc-hero-subtitle">
|
||||
纳海川专注于企业数字化系统研发、移动端与小程序开发及企业 AI 落地应用,交付完整工程源码与开发文档。
|
||||
纳海川专注于企业软件定制、移动端与小程序开发及企业私有化 AI 落地,交付完整工程源码与开发文档。
|
||||
</p>
|
||||
<div class="nhc-hero-cta">
|
||||
<a href="#contact" class="nhc-btn nhc-btn-primary">
|
||||
@@ -125,7 +125,7 @@
|
||||
企业私域智能体开发<br><span class="highlight">专属知识库</span>与安全部署
|
||||
</h1>
|
||||
<p class="nhc-hero-subtitle">
|
||||
深入垂直行业业务一线,将专属知识库与大模型深度融合,打造安全可控的企业智能体体系。
|
||||
面向政企真实业务场景,结合私有大模型与知识库检索,实现局域网安全运行。
|
||||
</p>
|
||||
<div class="nhc-hero-cta">
|
||||
<a href="#contact" class="nhc-btn nhc-btn-primary">
|
||||
@@ -157,7 +157,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 幻灯片 4:赋能篇 -->
|
||||
<!-- 幻灯片 4:商业产品篇 -->
|
||||
<div class="nhc-carousel-slide nhc-slide-theme-4" data-slide-index="3">
|
||||
<div class="nhc-container">
|
||||
<div class="nhc-hero-content">
|
||||
@@ -233,7 +233,7 @@
|
||||
<span class="nhc-seal">服务矩阵</span>
|
||||
<span class="nhc-tag-text">SERVICES</span>
|
||||
</div>
|
||||
<h2 class="nhc-section-title" style="font-size: 26px;">三大核心服务 · 铸造数字生产力</h2>
|
||||
<h2 class="nhc-section-title" style="font-size: 26px;">三大核心服务 · 解决具体业务问题</h2>
|
||||
<div class="nhc-line-divider"><span></span></div>
|
||||
</div>
|
||||
|
||||
@@ -505,7 +505,7 @@
|
||||
<span class="nhc-seal">信赖之选</span>
|
||||
<span class="nhc-tag-text">TESTIMONIALS</span>
|
||||
</div>
|
||||
<h2 class="nhc-section-title" style="font-size: 26px;">客户信赖之选</h2>
|
||||
<h2 class="nhc-section-title" style="font-size: 26px;">来自甲方的真实反馈</h2>
|
||||
<div class="nhc-line-divider"><span></span></div>
|
||||
</div>
|
||||
<div class="nhc-testimonials-grid">
|
||||
@@ -530,9 +530,9 @@
|
||||
<div class="nhc-container">
|
||||
<div class="nhc-cta-inner">
|
||||
<div class="nhc-cta-content">
|
||||
<h2 class="nhc-cta-title" style="font-size: 26px;">开启新一代数字化与智能化升级</h2>
|
||||
<h2 class="nhc-cta-title" style="font-size: 26px;">有具体的系统研发需求?我们来落实</h2>
|
||||
<p class="nhc-cta-desc">
|
||||
资深系统架构师团队随时待命,为您提供深度业务剖析与技术方案规划。
|
||||
架构师直接沟通,提供务实的技术评估与排期建议,不讲空话。
|
||||
</p>
|
||||
</div>
|
||||
<div class="nhc-cta-buttons" style="margin-top: 20px; display: flex; flex-direction: column; gap: 12px;">
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
</div>
|
||||
<h2 class="nhc-section-title">纳海川核心技术团队 · 资深专家领衔</h2>
|
||||
<p class="nhc-section-desc">
|
||||
我们以具有深厚一线大型系统经验的资深架构师为骨干,严守代码质量底线,专注为客户打造稳定可靠的数字化系统。
|
||||
核心架构团队具备十年以上大型系统研发与高并发调优经验,严守代码质量底线,保障系统长期稳定运行。
|
||||
</p>
|
||||
<div class="nhc-line-divider"><span></span></div>
|
||||
</div>
|
||||
@@ -157,7 +157,7 @@
|
||||
<h3 class="nhc-team-name">全栈研发总监</h3>
|
||||
<div class="nhc-team-exp">12+ 年企业软件工程经验 · 复杂供应链中台系统奠基人</div>
|
||||
<p class="nhc-team-desc">
|
||||
主导近百套商业进销存、智能收银与私有化部署商城系统研发,在软硬件协议对接、离线脱机记账与复杂业务状态机方面拥有深厚工程积累。
|
||||
主导百套商业进销存、智能收银与私有化商城系统研发,在软硬件协议对接、离线脱机记账与业务状态机方面拥有丰富实战经验。
|
||||
</p>
|
||||
<div class="nhc-team-skills">
|
||||
<span class="nhc-team-skill-tag">高可用中台</span>
|
||||
@@ -215,7 +215,7 @@
|
||||
</div>
|
||||
<h2 class="nhc-section-title">法定资质认证 · 严密合规资产保障</h2>
|
||||
<p class="nhc-section-desc">
|
||||
纳海川持有健全的软件著作权与安全认证体系,为您提供无可争议的合法性、知识产权及数据安全屏障。
|
||||
纳海川持有健全的软件著作权与安全认证体系,为客户系统提供完备的知识产权保护、合规审查依据及数据安全防护。
|
||||
</p>
|
||||
<div class="nhc-line-divider"><span></span></div>
|
||||
</div>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<div style="margin-bottom: 18px; position: relative;">
|
||||
<div style="position: absolute; left: -26px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #2563EB;"></div>
|
||||
<div style="font-size: 12px; font-weight: 700; color: #2563EB;">2016 初创起步</div>
|
||||
<div style="font-size: 12px; color: #475569; margin-top: 2px;">深耕政企与商业软件定制,确立纯自研微服务底座</div>
|
||||
<div style="font-size: 12px; color: #475569; margin-top: 2px;">专注政企与商业软件定制,确立自主可控的微服务技术体系</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 18px; position: relative;">
|
||||
<div style="position: absolute; left: -26px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #06B6D4;"></div>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
<div style="margin-bottom: 16px;">
|
||||
<span class="nhc-seal">成熟产品 · 源码交付</span>
|
||||
</div>
|
||||
<h1 class="nhc-page-title">成熟商业软件产品矩阵 · 助力企业全渠道数字化运营</h1>
|
||||
<h1 class="nhc-page-title">四大成熟商业系统 · 支撑全渠道经营与业务协同</h1>
|
||||
<p class="nhc-page-desc">
|
||||
历经真实交易峰值考验的标准化工业级商业软件资产,涵盖全场景商城、智能收银、全链路进销存与云原生 SaaS 底座,支持公有云订阅与专有私有化源码交付。
|
||||
历经真实业务场景验证的标准模块化商用系统体系,涵盖全场景商城、智能收银、全链路进销存与云原生 SaaS 底座,支持公有云订阅与专有私有化源码交付。
|
||||
</p>
|
||||
<div style="display: flex; justify-content: flex-start; gap: 16px;">
|
||||
<a href="#product-matrix" class="nhc-btn nhc-btn-primary nhc-btn-lg">
|
||||
@@ -35,7 +35,7 @@
|
||||
<span class="nhc-seal">商业矩阵</span>
|
||||
<span class="nhc-tag-text">STANDARDIZED SOLUTIONS</span>
|
||||
</div>
|
||||
<h2 class="nhc-section-title">四大成熟商业产品 · 支撑企业全渠道数字化经营</h2>
|
||||
<h2 class="nhc-section-title">四大成熟商业系统 · 支撑全渠道业务流转与统一结算</h2>
|
||||
<p class="nhc-section-desc">
|
||||
模块化、松耦合的高可用架构设计,既可独立开箱即用,亦可无缝组合成全链路商业数字闭环。
|
||||
</p>
|
||||
@@ -139,7 +139,7 @@
|
||||
</div>
|
||||
<h3 class="nhc-product-card-title">全链路进销存系统</h3>
|
||||
<p class="nhc-product-card-desc">
|
||||
实现采购、销售、多级仓储调拨与财务收支一体化穿透。通过批次批号与保质期精细化管理、智能动态补货建议模型与库存实时盘点,助力供应链大幅降低呆滞物料积压。
|
||||
实现采购、销售、多级仓储调拨与财务收支一体化穿透。通过批次批号与保质期精细化管理、动态补货模型与库存实时盘点,帮助供应链显著降低呆滞物料积压与资金占用。
|
||||
</p>
|
||||
<ul class="nhc-product-module-list">
|
||||
<li class="nhc-product-module-item">
|
||||
@@ -156,7 +156,7 @@
|
||||
</li>
|
||||
<li class="nhc-product-module-item">
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
<span>AI 智能安全库存与自动化补货采购建议</span>
|
||||
<span>动态安全库存模型与自动补货采购建议</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -197,7 +197,7 @@
|
||||
</li>
|
||||
<li class="nhc-product-module-item">
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
<span>多维度租户计量计费与资源配额动态监管</span>
|
||||
<span>按用量精准计量计费与租户资源配额动态监管</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -321,7 +321,7 @@
|
||||
<div class="nhc-pricing-header">
|
||||
<span class="nhc-seal" style="margin-bottom: 8px;">敏捷开箱</span>
|
||||
<h3 class="nhc-pricing-title">公有云 SaaS 订阅模式</h3>
|
||||
<p class="nhc-pricing-subtitle">无需自备服务器与专职运维,即开即用,伴随业务快速启航。</p>
|
||||
<p class="nhc-pricing-subtitle">无需自购服务器与专职运维,开箱即用,支持随业务增长平滑扩容。</p>
|
||||
</div>
|
||||
<ul class="nhc-pricing-features">
|
||||
<li class="nhc-pricing-feature-item">
|
||||
@@ -334,7 +334,7 @@
|
||||
</li>
|
||||
<li class="nhc-pricing-feature-item">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
<span>纳海川官方运维团队全天候守护与自动备份</span>
|
||||
<span>官方技术团队定期巡检、环境监控与数据自动备份</span>
|
||||
</li>
|
||||
<li class="nhc-pricing-feature-item">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
@@ -370,7 +370,7 @@
|
||||
</li>
|
||||
<li class="nhc-pricing-feature-item">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
|
||||
<span>首年享专属架构师技术维保与技术团队赋能培训</span>
|
||||
<span>首年配备专属架构师技术维保与源码交接技术培训</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -441,9 +441,9 @@
|
||||
<div class="nhc-cta-inner">
|
||||
<div class="nhc-cta-content">
|
||||
<span class="nhc-seal" style="background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; margin-bottom: 12px;">商业咨询</span>
|
||||
<h2 class="nhc-cta-title">选择成熟商业软件体系 · 加速企业数字化转型</h2>
|
||||
<h2 class="nhc-cta-title">选择成熟商用系统 · 缩短研发周期并降低试错成本</h2>
|
||||
<p class="nhc-cta-desc">
|
||||
纳海川解决方案专家团队随时待命,为您提供深度业务选型评估、专属架构建议与商务方案,24 小时内快速响应对接。
|
||||
纳海川技术团队直接沟通,为您提供针对性业务选型、部署评估与排期规划,24 小时内快速建联。
|
||||
</p>
|
||||
</div>
|
||||
<div class="nhc-cta-buttons">
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<span class="nhc-seal">应用矩阵</span>
|
||||
<span class="nhc-tag-text">INTELLIGENT AGENT APPLICATIONS</span>
|
||||
</div>
|
||||
<h2 class="nhc-section-title">赋能复杂业务流转 · 打造自主行动的专业智能体</h2>
|
||||
<h2 class="nhc-section-title">打通业务协同流转 · 研发自主执行的专业智能体</h2>
|
||||
<p class="nhc-section-desc">
|
||||
告别简单的泛泛聊天对话框,我们帮助企业构建具备深度领域知识、能调用 API、能自主推理决策的企业级智能体。
|
||||
</p>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
<span class="nhc-seal">交付周期</span>
|
||||
<span class="nhc-tag-text">DEVELOPMENT LIFECYCLE</span>
|
||||
</div>
|
||||
<h2 class="nhc-section-title">全链路敏捷交付 · 助力移动产品极速上架</h2>
|
||||
<h2 class="nhc-section-title">全链路敏捷交付 · 规范推进设计与上线</h2>
|
||||
<p class="nhc-section-desc">
|
||||
从交互原型到应用市场上架发行,全流程标准化管控,让移动端落地省心可靠。
|
||||
</p>
|
||||
@@ -316,7 +316,7 @@
|
||||
<section class="nhc-cta-banner" style="background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); color: #FFFFFF; padding: 60px 0; text-align: center;">
|
||||
<div class="nhc-container">
|
||||
<h2 style="font-family: var(--font-serif); font-size: 30px; font-weight: 700; margin-bottom: 16px; color: #FFFFFF;">
|
||||
准备打造您的专属 APP 或全生态小程序?
|
||||
有具体的移动端或小程序开发需求?
|
||||
</h2>
|
||||
<p style="font-size: 16px; opacity: 0.9; max-width: 680px; margin: 0 auto 32px; line-height: 1.7;">
|
||||
联系纳海川移动产品顾问,为您提供针对性的移动端技术选型对比与产品原型交互方案。
|
||||
|
||||
@@ -400,7 +400,7 @@
|
||||
</div>
|
||||
<h2 class="nhc-section-title">8 大标准交付物清单 · 全套数字资产合规移交</h2>
|
||||
<p class="nhc-section-desc">
|
||||
我们不仅交付稳定运行的系统,更将完整的数字化资产与工程知识库毫无保留地移交至客户手中。
|
||||
我们不仅交付稳定运行的系统,更将完整的数字化资产与开发文档全量规范移交客户。
|
||||
</p>
|
||||
<div class="nhc-line-divider"><span></span></div>
|
||||
</div>
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
<span class="nhc-seal">业务矩阵</span>
|
||||
<span class="nhc-tag-text">ENGINEERING DOMAINS</span>
|
||||
</div>
|
||||
<h2 class="nhc-section-title">聚焦关键业务场景 · 打造稳健工程底座</h2>
|
||||
<h2 class="nhc-section-title">聚焦核心业务场景 · 构建高可用系统架构</h2>
|
||||
<p class="nhc-section-desc">
|
||||
针对企业在数字化转型中的性能瓶颈、数据孤岛与复杂业务流转卡点,纳海川提供针对性工程化解决方案。
|
||||
针对核心业务的高并发性能瓶颈、跨系统数据孤岛与复杂业务逻辑流转,纳海川提供针对性研发落地支撑。
|
||||
</p>
|
||||
<div class="nhc-line-divider"><span></span></div>
|
||||
</div>
|
||||
|
||||
@@ -30,6 +30,9 @@ class TestNaturalCopywriting(unittest.TestCase):
|
||||
self.about_html = f.read()
|
||||
with open(self.contact_path, 'r', encoding='utf-8') as f:
|
||||
self.contact_html = f.read()
|
||||
self.footer_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_common/pc/footer.html')
|
||||
with open(self.footer_path, 'r', encoding='utf-8') as f:
|
||||
self.footer_html = f.read()
|
||||
|
||||
def test_forbid_ai_buzzwords_and_translationese(self):
|
||||
"""严格禁止典型 AI 假大空口号、翻译腔与泛化套话"""
|
||||
@@ -109,5 +112,68 @@ class TestNaturalCopywriting(unittest.TestCase):
|
||||
self.assertNotIn('标杆合作组织', mobile_html, "移动端案例页严禁展示'标杆合作组织'")
|
||||
self.assertNotIn('按期交付率', mobile_html, "移动端案例页严禁展示'按期交付率'")
|
||||
|
||||
def test_deep_no_ai_flavor_and_concise_copy(self):
|
||||
"""深度检查文案:彻底杜绝 AI 口味、大词堆砌、公关腔与啰嗦句式"""
|
||||
# 读取移动端首页及其他独立页面
|
||||
index_e_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_home/index_e.html')
|
||||
single_e_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_home/single_e.html')
|
||||
service_software_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_product/service_software.html')
|
||||
service_app_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_product/service_app.html')
|
||||
service_agent_path = os.path.join(ROOT_DIR, 'addons/official/view/web/official_product/service_agent.html')
|
||||
|
||||
with open(index_e_path, 'r', encoding='utf-8') as f:
|
||||
index_e_html = f.read()
|
||||
with open(single_e_path, 'r', encoding='utf-8') as f:
|
||||
single_e_html = f.read()
|
||||
with open(service_software_path, 'r', encoding='utf-8') as f:
|
||||
service_software_html = f.read()
|
||||
with open(service_app_path, 'r', encoding='utf-8') as f:
|
||||
service_app_html = f.read()
|
||||
with open(service_agent_path, 'r', encoding='utf-8') as f:
|
||||
service_agent_html = f.read()
|
||||
|
||||
all_text = (
|
||||
self.index_html + "\n" +
|
||||
index_e_html + "\n" +
|
||||
self.services_html + "\n" +
|
||||
service_software_html + "\n" +
|
||||
service_app_html + "\n" +
|
||||
service_agent_html + "\n" +
|
||||
self.products_html + "\n" +
|
||||
self.cases_html + "\n" +
|
||||
self.about_html + "\n" +
|
||||
single_e_html + "\n" +
|
||||
self.contact_html + "\n" +
|
||||
self.footer_html
|
||||
)
|
||||
|
||||
forbidden_ai_copy = [
|
||||
'铸造数字生产力',
|
||||
'开启新一代数字化与智能化升级',
|
||||
'赋能复杂业务流转',
|
||||
'助力移动产品极速上架',
|
||||
'准备打造您的专属',
|
||||
'助力企业全渠道数字化运营',
|
||||
'AI 智能安全库存',
|
||||
'AI智能安全库存',
|
||||
'即开即用,伴随业务快速启航',
|
||||
'全天候守护',
|
||||
'赋能培训',
|
||||
'加速企业数字化转型',
|
||||
'无可争议',
|
||||
'毫无保留',
|
||||
'工匠精神打造',
|
||||
'滴水不漏',
|
||||
]
|
||||
for item in forbidden_ai_copy:
|
||||
self.assertNotIn(item, all_text, f"全站模板仍残留AI味或啰嗦表述: '{item}'")
|
||||
|
||||
# 验证新优化的务实干练文案已生效
|
||||
self.assertIn('四大成熟商业系统 · 支撑全渠道经营与业务协同', self.products_html)
|
||||
self.assertIn('动态安全库存模型与自动补货采购建议', self.products_html)
|
||||
self.assertIn('打通业务协同流转 · 研发自主执行的专业智能体', service_agent_html)
|
||||
self.assertIn('全链路敏捷交付 · 规范推进设计与上线', service_app_html)
|
||||
self.assertIn('全量规范移交客户', self.services_html)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
89
tools/analyze_copywriting.py
普通文件
89
tools/analyze_copywriting.py
普通文件
@@ -0,0 +1,89 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
全站文案深度分析与 AI 味/啰嗦度检测工具
|
||||
"""
|
||||
import os
|
||||
import re
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
TEMPLATES = [
|
||||
'addons/official/view/web/official_home/index.html',
|
||||
'addons/official/view/web/official_home/index_e.html',
|
||||
'addons/official/view/web/official_home/single.html',
|
||||
'addons/official/view/web/official_home/single_e.html',
|
||||
'addons/official/view/web/official_product/service_page.html',
|
||||
'addons/official/view/web/official_product/service_software.html',
|
||||
'addons/official/view/web/official_product/service_app.html',
|
||||
'addons/official/view/web/official_product/service_agent.html',
|
||||
'addons/official/view/web/official_product/product_page.html',
|
||||
'addons/official/view/web/official_product/list_e.html',
|
||||
'addons/official/view/web/official_case_show/list.html',
|
||||
'addons/official/view/web/official_case_show/list_e.html',
|
||||
'addons/official/view/web/official_online_message/list.html',
|
||||
'addons/official/view/web/official_online_message/list_e.html',
|
||||
'addons/official/view/web/official_common/pc/footer.html',
|
||||
'addons/official/view/web/official_common/pc/nav.html',
|
||||
'addons/official/view/web/official_common/mobile/footer.html',
|
||||
'addons/official/view/web/official_common/mobile/nav.html'
|
||||
]
|
||||
|
||||
# AI 味黑名单词库(空洞、宏大叙事、假大空口号、泛化套话、阿里味/公关腔)
|
||||
AI_FLAVOR_TERMS = [
|
||||
'赋能', '铸造数字生产力', '新纪元', '新篇章', '新范式', '乘风破浪',
|
||||
'全方位', '多维度', '深耕', '重器', '基石', '筑牢', '铸牢',
|
||||
'大放异彩', '跃迁', '引领', '颠覆', '无可争议', '无懈可击',
|
||||
'滴水不漏', '毫无保留', '无论您是', '助力企业全渠道数字化运营',
|
||||
'加速企业数字化转型', '助力移动产品极速上架', '准备打造您的专属',
|
||||
'全天候守护', '赋能培训', '即开即用,伴随业务快速启航',
|
||||
'AI 智能安全库存', 'AI智能安全库存', '开启新一代数字化与智能化升级',
|
||||
'工匠精神打造', '深厚一线大型系统经验', '深厚工程积累'
|
||||
]
|
||||
|
||||
# 冗长啰嗦句式模式
|
||||
VERBOSE_PATTERNS = [
|
||||
r'不仅.*?而且.*?',
|
||||
r'为了能够更好地.*?',
|
||||
r'致力于为.*?提供.*?',
|
||||
r'旨在为.*?打造.*?',
|
||||
]
|
||||
|
||||
def analyze():
|
||||
print("=================== 全站文案深度分析报告 ===================")
|
||||
total_issues = 0
|
||||
for rel_path in TEMPLATES:
|
||||
abs_path = os.path.join(BASE_DIR, rel_path.replace('/', os.sep))
|
||||
if not os.path.exists(abs_path):
|
||||
continue
|
||||
with open(abs_path, 'r', encoding='utf-8') as f:
|
||||
lines = f.readlines()
|
||||
|
||||
file_issues = []
|
||||
for line_no, line in enumerate(lines, 1):
|
||||
text = line.strip()
|
||||
# 过滤注释与脚本
|
||||
if text.startswith('<!--') and text.endswith('-->'):
|
||||
# 检查注释里是否也有未清理的旧口号
|
||||
pass
|
||||
for term in AI_FLAVOR_TERMS:
|
||||
if term in text:
|
||||
file_issues.append((line_no, f"AI味词汇: '{term}'", text))
|
||||
|
||||
for vp in VERBOSE_PATTERNS:
|
||||
m = re.search(vp, text)
|
||||
if m:
|
||||
file_issues.append((line_no, f"啰嗦句式: '{m.group(0)}'", text))
|
||||
|
||||
if file_issues:
|
||||
print(f"\n[{rel_path}] 发现 {len(file_issues)} 处潜在问题:")
|
||||
for lno, itype, ltext in file_issues:
|
||||
# 截断过长文字
|
||||
display_text = ltext if len(ltext) <= 80 else ltext[:80] + '...'
|
||||
print(f" 行 {lno:4d} | {itype:25s} | {display_text}")
|
||||
total_issues += len(file_issues)
|
||||
|
||||
print(f"\n=================== 扫描完毕:共检出 {total_issues} 处待优化文案 ===================")
|
||||
|
||||
if __name__ == '__main__':
|
||||
analyze()
|
||||
在新工单中引用
屏蔽一个用户