Enhance blacklist handling: regex replacements and partial date removal
So this is still a draft as I am TERRIBLE with Regex and just as bad with coding. Please let me know if there is anything that needs fixed, I'm happy to do so.
- Added support for regex-based replacements in blacklist processing
- Implemented
||delimiter to allow custom replacements (e.g., "bwb||bigwetbutts") - Improved regex handling for partial date removal:
- Allows removing only the day (
-DD) fromYYYY-MM-DDwhile keepingYYYY-MM - Example:
"(\d{4}-\d{2})-\d{2}||$1"removes-DDbut preservesYYYY-MM
- Allows removing only the day (
- Prevented regex errors using
try/catch - Ensured spaces are normalized after replacements
Problem Description I am using the text translation (api-version=3.0) API. Although the official documentation states that version 3.0 uses neural network translation by default, the actual translation results seem very stiff and awkward. This is not the translation result I want.
Desired Solution I hope to support adjustments to the tone of the translation result, for example: standard, informal, formal.
Additionally, I would like to add request parameters to support this.You can refer to...
@samvaity can you please help connect @selfancy with the Text Translation owners?
@MikeyMCZ Could you please take a look at the issue and help out @selfancy, thanks!