refactor(copywriting): 深入审查全站文案,彻底剔除AI味与冗长套话,全面强化务实大厂工程语言

这个提交包含在:
wikiboss
2026-10-09 15:10:54 +08:00
父节点 157e5f4a40
当前提交 a72f3c9966
共有 12 个文件被更改,包括 189 次插入 和 34 次删除

查看文件

@@ -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()