语言与文风2022languagetool.org
LanguageTool:支持 25 种语言的开源语法与文风检查工具
LanguageTool – FOSS Style and Grammar Checker for 25 Languages
导读
这是一篇介绍 LanguageTool 的帖子——一款开源、支持 25 种语言的语法与风格检查工具,评论里分享了企业部署、自托管和插件使用的实际体验。对写作者来说,它提供了一个 Grammarly 之外的免费/可自托管选项,也让人重新思考:机器能替你抓出多少写作问题,又有哪些必须靠自己。
可以直接用的写作要点
- 01
交稿前用专门的语法/风格检查工具过一遍,它能抓到浏览器自带拼写检查漏掉的问题。
- 02
别完全依赖自动语言检测:标题、标语这类短文本容易被误判成外语而乱标红,短句必须自己读一遍。
- 03
语法检查的内核仍是规则引擎,说明多数写作毛病是可归纳的规则,不妨整理一份自己的高频错误清单。
- 04
敏感或未发表的稿件可用自托管方案,避免把全文上传给第三方服务。
HN 评论精选
语法检查靠的是可枚举的规则,而非纯统计模型,说明写作错误大多有规律可循。
有意思的是,语法检查的核心部分至今仍由规则引擎和传统专家系统驱动,连 Grammarly 的核心都是用 Common Lisp 写的这类系统;现代注意力/Transformer 模型主要用来辅助依存句法等前端任务。
melony查看英文原文
It is interesting that the fundamental parts of grammar checking are still driven by rules engines and GOFAI expert systems. Even the gramamarly core is written in common lisp as a GOFAI app. Most of the modern attention/transformer NLPs are used to supplement the front end tasks like dependency parsing.
工具能多抓错,但短文本会因语言误判而误报,标题类文字仍需人工把关。
我自托管跑了几个月,装在每月 10 美元的 VPS 容器里,主要缺点是吃内存(可能是 Java 写的)。好处是不用把写的东西发给不受控的第三方。插件确实比浏览器自带的拼写检查抓得多,但总在自动检测语言,长文没问题,像标题这种短字符串经常判断失败,把我的英文标成蹩脚德语或瑞典语,还没找到怎么强制只用美式英语。
blopker查看英文原文
It's great, I've been running the self-hosted version for a few months now. I run it using a container[0] on a $10/mo Digital Ocean VPS using Dokku[1], along with other services. The main downside is that it's a bit of a memory hog, possible because it's written in Java? Otherwise, I haven't had to mess with it after the initial set up. I like that I'm not sending everything I write to another 3rd party service I don't control. As for the plugin, it definitely catches more issues than the stock browser spellchecks. The main issue I have with it (maybe someone can point me in the right direction) is that it always tries to autodetect the language. This is fine for longer texts, but often fails on shorter strings like headlines. This leaves my words highlighted red because it thinks I'm writing bad German, or Swedish (which is fair). I haven't been able to figure out how to force it to only use US English. [0]: https://hub.docker.com/r/erikvl87/languagetool [1]: https://dokku.com/
开源方案在成本和兼容性上可以替代商业语法检查工具。
最近给我们的用户上线了这套工具,效果很好,比 Grammarly 便宜,而且不像 Grammarly 那样只能在部分 Google Workspace 应用里用;我之前都不知道它是开源的。
lockyc查看英文原文
I have recently rolled this out for our users. We have found it to be very good, cheaper than Grammerly. Works with most Google Workspace apps, unlike Grammerly. I didn't realise it was open source until now
同类还值得读
像说话一样写作
Write like you talk
这篇短文主张写作应像说话一样自然、清晰,避免装腔作势的书面腔。
语言与文风2015 · 647 分 · 272 评4 条写作要点编辑精选法律语言难懂源于写作不佳,而非专业概念
Poor writing, not specialized concepts, drives difficulty with legal language
这是一项认知科学研究:法律文本难懂,主要不是因为充斥专业术语,而是因为写作者把句子写得又长又绕、修饰语层层嵌套、回指距离过远。
语言与文风2022 · 559 分 · 322 评5 条写作要点编辑精选写得简单
Write Simply
保罗·格拉汉姆在这篇短文里主张:好文章应该写得简单——用日常词汇、短句、直白的结构,不为显得聪明而堆砌复杂表达。
语言与文风2021 · 484 分 · 330 评4 条写作要点编辑精选Tortured phrases:科学写作中出现的一种可疑文风
Tortured phrases: A dubious writing style emerging in science
《自然》新闻报道了一种在科学论文中蔓延的怪现象:原本标准的术语被同义替换软件改写成了古怪说法,比如把 "cloud computing" 写成 "haze figuring"。
语言与文风2021 · 329 分 · 256 评4 条写作要点编辑精选乔治·奥威尔 1940 年对《我的奋斗》的书评
George Orwell's review of Mein Kampf (1940)
这是奥威尔1940年对《我的奋斗》的书评。
语言与文风2014 · 305 分 · 240 评4 条写作要点编辑精选