stash icon indicating copy to clipboard operation
stash copied to clipboard

Enhance blacklist handling: regex replacements and partial date removal

Open Gykes opened this issue 9 months ago • 0 comments

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) from YYYY-MM-DD while keeping YYYY-MM
    • Example: "(\d{4}-\d{2})-\d{2}||$1" removes -DD but preserves YYYY-MM
  • Prevented regex errors using try/catch
  • Ensured spaces are normalized after replacements

Gykes avatar Mar 12 '25 04:03 Gykes

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...

joshfree avatar Jun 05 '25 15:06 joshfree

@samvaity can you please help connect @selfancy with the Text Translation owners?

joshfree avatar Jun 05 '25 15:06 joshfree

@MikeyMCZ Could you please take a look at the issue and help out @selfancy, thanks!

samvaity avatar Sep 18 '25 00:09 samvaity