Lurker News

Comments (210) 45 threads

Show all comments

Showing thread 2 of 45

Deukhoofd4 replies#
Does anyone know how this compares to other products in its field, such as LanguageTool and Harper? LanguageTool can be hosted locally, and Harper runs entirely as an extension, so I'm interested in how the spelling and grammar checks compare.
raegis3 replies#
I just tested both on the text "Look Dick. See Jane. Jane run home. I says you go home to. They eats dinner." LanguageTool does what I would expect. Harper does not. However, both whine about two spaces after a period.

Edit: Alas, Hacker News also removes the extra space after periods.

codesnik#
browser rendering does. You'd need white-space: pre-wrap rule to retain double spaces.
dreamcompiler1 reply#
Extra space after periods is never correct with proportionally-spaced fonts, which is why all browsers remove it by default.

Two spaces after periods is a kludge invented for typewriters that had monospaced fonts and touch typing teachers need to stop teaching it in the modern era where most writing uses proportional fonts.

dkga2 replies#
Curiously, it‘s also a tell-tale sign that a North-American typed the text.

Continue this thread — 2 replies

chilipepperhott#
Harper will detect those errors in its next release.
scottfr1 reply#
We're building a Chrome extension grammar checker that runs locally using Chrome's built-in LLM.

You can try it out here:
https://chromewebstore.google.com/detail/grammit-the-ai-gram...
LLMs can also correct other sorts of mistakes, such as correcting "The first US President was _Ben Franklin_" to "George Washington".

slacktivism1231 reply#
>LLMs can also correct other sorts of mistakes, such as correcting "The first US President was _Ben Franklin_" to "George Washington".

And they can also cause new factual mistakes that a grammar checker never would!

chilipepperhott#
Preach.
Someone1234#
I've run LanguageTool Server with the ngrams[0] for years, it is legitimately excellent with the ngrams (and mediocre without). The English-only ngrams are roughly 15 GB on disk.

Just have a Windows Scheduled Task kick off this bat file:

     SET PATH=SET PATH=C:\program files\Amazon Corretto\jdk17.0.15_6\bin\
     start javaw -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin "*" -l en-US --languageModel "C:\LanguageTool\LanguageTool-6.3\ngram"

[0] https://dev.languagetool.org/finding-errors-using-n-gram-dat...