Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否区分语种地使用专业术语替换? #227

Open
BlueShipper opened this issue Mar 5, 2025 · 2 comments
Open

能否区分语种地使用专业术语替换? #227

BlueShipper opened this issue Mar 5, 2025 · 2 comments

Comments

@BlueShipper
Copy link

像是英语里有个词abcd,西语里也有,长得一模一样但意思完全不同,我只想替换英语而不替换西语,似乎不能用正则表达式实现。而且两个语种出现在同一个网站,我不能分“全局”和“个人”规则,除非单个网页单个规则地写。

@fishjar
Copy link
Owner

fishjar commented Mar 7, 2025

你这个需求原理上应该可以实现,比如通过识别整句的内容,判断是什么语言,然后再根据不同的语言来替换相应的术语。
但是挺麻烦的,首先要句子的语言判断准确,还要维护一个多语言的术语列表。
实现这个感觉不是很划算。

当然还有个办法是试试AI翻译接口能否实现。

@BlueShipper
Copy link
Author

你这个需求原理上应该可以实现,比如通过识别整句的内容,判断是什么语言,然后再根据不同的语言来替换相应的术语。 但是挺麻烦的,首先要句子的语言判断准确,还要维护一个多语言的术语列表。 实现这个感觉不是很划算。

当然还有个办法是试试AI翻译接口能否实现。

或者,在悬浮球中加当前页面“是否启用专业术语”开关?由人判断是否需要比什么都容易。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants