simple-formatter

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Simple Text Formatter

简单文本格式化工具

This skill formats text according to style guidelines.
该技能可根据样式指南格式化文本。

Features

功能特性

  • Capitalize sentences
  • Fix spacing
  • Apply punctuation rules
  • 句子首字母大写
  • 修复空格问题
  • 应用标点规则

Usage

使用方法

When the user provides text to format, apply the following rules:
  1. Capitalize first letter of sentences
  2. Ensure single space after periods
  3. Remove trailing whitespace
In most cases, you should use the python tool in
scripts/formatter.py
rather than attempting the conversion yourself.
当用户提供需要格式化的文本时,请遵循以下规则:
  1. 句子首字母大写
  2. 确保句号后仅保留一个空格
  3. 移除末尾空白字符
大多数情况下,你应该使用
scripts/formatter.py
中的python工具,而非自行尝试转换。

Example

示例

Input: "hello world.this is a test." Output: "Hello world. This is a test."
输入:"hello world.this is a test." 输出:"Hello world. This is a test."