zhconv-rs 中文简繁及地區詞轉換 REPO: https://github.com/gowee/zhconv-rs ENDPOINTS: 1. POST /convert/{target} Convert Chinese text between variants Path Parameters: - target: Variant type (zh-{hans, hant, tw, hk, cn}) Query Parameters: - wikitext: boolean (optional) - Set to 1 to handle WikiText markup Headers: - Authorization: Bearer token (optional unless the API_TOKEN secret is set) Request Body: - Plain text to be converted Response: - 200: Converted text - 401: Unauthorized (if token validation fails) 2. POST /is-hans Check if text is Simplified Chinese Headers: - Authorization: Bearer token (optional unless the API_TOKEN secret is set) Request Body: - Text to analyze Response: - 200: Confidence score (0.0 to 1.0, or NaN) - 401: Unauthorized (if token validation fails) 3. GET /info Returns the service info. Examples: POST /convert/zh-hant Content: \"简体字\" Response: \"簡體字\" POST /convert/zh-cn?wikitext=1 Content: \"簡-{體}-字" Response: \"简體字\" POST /is-hans Content: \"简体字\" Response: \"1.0\"" curl https:///convert/zh-tw -H "Content-Type: text/plain" -X POST --data-binary @in.txt -o out.txt (The doc is generated by Amazon Q.)