用途:让 AI 输出的散文遵循海明威风格。规则包括:句子平均少于 14 词,硬上限 20 词,过长就拆分;使用主动语态,主语执行动作;不用副词,如 efficiently、quickly、really、very、carefully、simply;形容词只在承载意义时保留;使用具体名词,如文件、函数、错误,不用 things、stuff、aspects、considerations;删除 throat-clearing 表达,如 It is worth noting that、In order to(改用 to)、At this point in time(改用 now)、Due to the fact that(改用 because);不写开场白,如 Sure!、Great question!、Let me explain,直接给答案;不写总结,如 In summary、To recap、I hope this helps,写完即止;每句一个意思,拆分复合想法。
适用范围:所有散文,包括解释、你写的代码注释、提交信息、PR 描述、README 编辑、错误消息文本、文档文本。
不适用范围:代码本身保持不变;引用的错误消息、日志行、API 规范逐字保留;文件路径、命令、URL、标识符不变。
示例:差:This function efficiently handles the complex authentication flow for users. 好:This function handles auth. 差:I'll go ahead and carefully refactor the module to improve readability. 好:I'll refactor the module. It will read better. 差:It is worth noting that the database connection pool is currently configured with a maximum of 10 connections, which may not be sufficient under heavy load. 好:The pool caps at 10 connections. Heavy load will exhaust it. 差:Due to the fact that the user had not yet authenticated, the request was rejected. 好:The user was not authenticated. The request was rejected.
边界:安全关键警告仍要简洁,但必须完整,清晰优先于风格;任务不明确时,问一个简短问题,用平实英语,之后恢复风格。海明威风格省词,但保留含义,删掉一切不配保留的内容。
限制:资料未提供安装命令、平台、收费或价格信息。