Loading...
Loading...
Compare original and translation side by side
| Type | Strategy | Risk |
|---|---|---|
| Promotional language | Replace superlatives with specifics | Needs review |
| Vague authority | Delete the claim or add a citation | Safe |
| Formulaic structure | Remove the intro/conclusion wrapper | Needs review |
| Synthetic openers | Delete the opener, start with the point | Safe |
In today's rapidly evolving software landscape, authentication is a crucial
component that plays a pivotal role in securing modern applications.This guide covers authentication setup for the API.| 类型 | 优化策略 | 风险等级 |
|---|---|---|
| 宣传式表述 | 用具体内容替换夸张形容词 | 需要人工审核 |
| 模糊的权威性表述 | 删除该表述或添加引用来源 | 安全 |
| 公式化结构 | 移除开头/结尾的套话 | 需要人工审核 |
| 无意义的开场白 | 删除开场白,直接切入主题 | 安全 |
In today's rapidly evolving software landscape, authentication is a crucial
component that plays a pivotal role in securing modern applications.This guide covers authentication setup for the API.| Type | Strategy | Risk |
|---|---|---|
| High-signal AI words | Direct word swap | Safe |
| Low-signal clusters | Reduce density, keep 1-2 | Needs review |
| Copula avoidance | Use "is/are" naturally | Safe |
| Rhetorical devices | Delete the question, state the fact | Safe |
| Synonym cycling | Pick one term, use it consistently | Needs review |
| Commit inflation | Rewrite to match actual change scope | Needs review |
| AI Word | Replacement |
|---|---|
| utilize | use |
| leverage (as "use") | use |
| delve | look at, explore, examine |
| facilitate | help, enable, let |
| endeavor | try, work, effort |
| harnessing | using |
| paradigm | approach, model, pattern |
| whilst | while |
| furthermore | also, and |
| moreover | also, and |
| robust (non-technical) | reliable, solid, strong |
| seamless | smooth, easy |
| cutting-edge | modern, latest, new |
| pivotal | important, key |
| elevate | improve |
| empower | let, enable |
| revolutionize | change, improve |
| unleash | release, enable |
| synergy | (delete — rarely means anything) |
| embark | start, begin |
feat: Leverage robust caching paradigm to facilitate seamless data retrievalfeat: add response caching for faster reads| 类型 | 优化策略 | 风险等级 |
|---|---|---|
| 典型AI高频词汇 | 直接替换词汇 | 安全 |
| 无意义词汇堆砌 | 精简密度,仅保留1-2个核心词汇 | 需要人工审核 |
| 刻意回避系动词 | 自然使用“is/are” | 安全 |
| 修辞性问句 | 删除问句,直接陈述事实 | 安全 |
| 同义词滥用 | 选定一个术语并保持一致 | 需要人工审核 |
| Commit信息浮夸 | 改写以匹配实际变更范围 | 需要人工审核 |
| AI词汇 | 替换词 |
|---|---|
| utilize | use |
| leverage (作“使用”义) | use |
| delve | look at, explore, examine |
| facilitate | help, enable, let |
| endeavor | try, work, effort |
| harnessing | using |
| paradigm | approach, model, pattern |
| whilst | while |
| furthermore | also, and |
| moreover | also, and |
| robust (非技术语境) | reliable, solid, strong |
| seamless | smooth, easy |
| cutting-edge | modern, latest, new |
| pivotal | important, key |
| elevate | improve |
| empower | let, enable |
| revolutionize | change, improve |
| unleash | release, enable |
| synergy | (直接删除——几乎无实际意义) |
| embark | start, begin |
feat: Leverage robust caching paradigm to facilitate seamless data retrievalfeat: add response caching for faster reads| Type | Strategy | Risk |
|---|---|---|
| Boldface overuse | Remove bold from non-key terms | Safe |
| Emoji decoration | Remove emoji from technical content | Safe |
| Heading restatement | Delete the restating sentence | Safe |
undefined| 类型 | 优化策略 | 风险等级 |
|---|---|---|
| 过度使用粗体 | 移除非关键术语的粗体格式 | 安全 |
| 表情符号装饰 | 从技术文档中移除表情符号 | 安全 |
| 标题重复表述 | 删除重复标题的句子 | 安全 |
undefinedhandleError
**After:**
```markdownhandleError
**优化后:**
```markdownhandleErrorundefinedhandleErrorundefined| Type | Strategy | Risk |
|---|---|---|
| Chat leaks | Delete entirely | Safe |
| Cutoff disclaimers | Delete entirely | Safe |
| Sycophantic tone | Delete or neutralize | Safe |
| Apologetic errors | Rewrite as direct error message | Needs review |
undefined| 类型 | 优化策略 | 风险等级 |
|---|---|---|
| 聊天式冗余内容 | 直接删除 | 安全 |
| 时效性免责声明 | 直接删除 | 安全 |
| 谄媚语气 | 删除或中性化表述 | 安全 |
| 道歉式错误信息 | 改写为直接明确的错误提示 | 需要人工审核 |
undefined
**After:**
```python
**优化后:**
```pythonundefinedundefined| Type | Strategy | Risk |
|---|---|---|
| Filler phrases | Delete the phrase | Safe |
| Excessive hedging | Remove qualifiers, state directly | Safe |
| Generic conclusions | Delete the conclusion paragraph | Safe |
It's worth noting that the configuration file might potentially need to be
updated. Going forward, this could possibly affect performance.Update the configuration file. This affects performance.| 类型 | 优化策略 | 风险等级 |
|---|---|---|
| 冗余短语 | 删除该短语 | 安全 |
| 过度模糊表述 | 移除限定词,直接陈述 | 安全 |
| 通用结论 | 删除结论段落 | 安全 |
It's worth noting that the configuration file might potentially need to be
updated. Going forward, this could possibly affect performance.Update the configuration file. This affects performance.| Type | Strategy | Risk |
|---|---|---|
| Tautological docstrings | Delete or add real information | Needs review |
| Narrating obvious code | Delete the comment | Safe |
| "This noun verbs" | Rewrite in active/direct voice | Safe |
| Exhaustive enumeration | Keep only non-obvious params | Needs review |
def get_user(user_id: int) -> User:
"""Get a user.
This method retrieves a user from the database by their ID.
Args:
user_id: The ID of the user to get.
Returns:
User: The user object.
Raises:
ValueError: If the user ID is invalid.
"""
return db.query(User).get(user_id)def get_user(user_id: int) -> User:
"""Raises UserNotFound if ID doesn't exist in the database."""
return db.query(User).get(user_id)| 类型 | 优化策略 | 风险等级 |
|---|---|---|
| 同义反复的docstrings | 删除或添加实际有效信息 | 需要人工审核 |
| 陈述代码显而易见功能的注释 | 删除该注释 | 安全 |
| “This noun verbs”式表述 | 改写为主动/直接语态 | 安全 |
| 过度详尽的参数枚举 | 仅保留非显而易见的参数说明 | 需要人工审核 |
def get_user(user_id: int) -> User:
"""Get a user.
This method retrieves a user from the database by their ID.
Args:
user_id: The ID of the user to get.
Returns:
User: The user object.
Raises:
ValueError: If the user ID is invalid.
"""
return db.query(User).get(user_id)def get_user(user_id: int) -> User:
"""Raises UserNotFound if ID doesn't exist in the database."""
return db.query(User).get(user_id)| Artifact | Tone | Length | Example |
|---|---|---|---|
| Commit message | Terse, imperative | 50-72 chars | |
| Code comment | Brief, explains why | 1-2 lines | |
| Docstring | Precise, adds value | What the name doesn't tell you | |
| PR description | Structured, factual | Context + what changed + how to test | Bullet points, not paragraphs |
| README | Conversational, scannable | As short as possible | Start with what it does, then how to use it |
| Error message | Actionable, specific | What happened + what to do | |
| 文档类型 | 语气 | 长度 | 示例 |
|---|---|---|---|
| Commit message | 简洁、命令式 | 50-72个字符 | |
| 代码注释 | 简短、解释原因 | 1-2行 | |
| Docstring | 精准、补充信息 | 补充名称无法传达的内容 | |
| PR描述 | 结构化、事实性 | 上下文 + 变更内容 + 测试方法 | 使用项目符号,而非段落 |
| README | 通俗易懂、易扫描 | 尽可能简短 | 先说明功能,再讲解使用方法 |
| 错误提示 | 可操作、具体 | 说明问题 + 解决方案 | |