feat(spellcheck): underline possible mistakes in transcriptions (#53, part 1) #58
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/53-spellcheck"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #53: spelling and grammar underlines in a page's transcription. Marks on the handwriting follow in a stacked PR (feat/53-ink-marks).
What it does
LANGUAGETOOL_URLwins over the setting; a URL typed in the UI can't reach private or reserved networks (Backups.Network), only the env var can.spellcheck_results); text with no words is never sent.Spellcheck.Words), whitespace-delimited and trimmed of edge punctuation, so 10:30, e.g. and and/or are one word each, as they are one word of ink. The OCR's guesses (teh [?]),[illegible], struck text, code, links, list markers and symbol runs aren't checked.Backups.Networknow also refuses::/96,2001::/32(Teredo) and2002::/16(6to4). Armstrong's SSRF audit test is in astest/rm_analyzer/spellcheck_ssrf_test.exs.docs/spellcheck.md, README.Checked
mix precommit: 947 pass.teh [?],10:30,e.g.and&left alone; hiding clears the underlines.Migrations
20261027120000(spellcheck settings),20261027130000(spellcheck results).Browser check by me (Chromium, real LanguageTool 6.8):
Desktop 1280px:

Phone 390x844:

Nye still does the QA pass.
keep/1 inserts through a changeset with the foreign keys, so a transcription deleted while LanguageTool answers returns {:error, "that page is gone"} and logs the ids. The cache hash includes Words.version/0, dropped hits are counted at debug, and a non-200 body is logged by its first line only. Adds Armstrong's audit test (F4).