| Summary: | COVID-119 & Covid-119 should fail spell-check | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Nick Levinson <Nick_Levinson> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTOURBUG | ||
| Severity: | normal | CC: | aron.budea, shantanu.oak |
| Priority: | medium | ||
| Version: | 7.1.4.2 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108728 | ||
| Attachments: | COVID entries in GB dictionary | ||
|
Description
Nick Levinson
2021-07-21 22:44:20 UTC
The US English dictionary now contains COVID as an entry, which means COVID-19 will be accepted as well. This update arrived after LO 7.1, and will be included with the 7.2 release. Otherwise, LO dictionaries are maintained separately, issues in the US English word list can be raised here: https://github.com/en-wl/wordlist/issues That's half a solution. The string COVID-119 should fail but, per your explanation, won't. Even if a coronavirus called COVID-119 is in the world's lexicon, a rarely-used word should not be in the LO dictionary because the string in an average Writer document would more likely be a misspelling of something else and therefore should be treated as a misspelling. The same principle applies to COVID-18 and COVID-9, which I suppose exist but those strings are more likely to be errors. As to case, I can add Covid to an LO dictionary but LO won't let Covid-119 be shown as wrong. This looks like a generic problem about an alpha string and a numstring in either order and separated by a hyphen. If so, it is not just a matter of adding one of the strings to a dictionary. Thus, I'm reopening. Created attachment 173817 [details]
COVID entries in GB dictionary
Hello!
The COVID words have been in the British dictionary since last year or so.
If COVID-119 doesn't trigger an error is because Hunspell in hyphenated words simply validates both words, so:
COVID is valid
then it has a hyphen
and 119 is valid.
So, both words are valid and Hunspell doesn't trigger an error.
The way of fixing this would be to implement a rule in the grammar checker LanguageTool or Lightproof that would check for the number after it.
Help says the grammar checker is an extension, so I'm closing this. Thanks. Or you can add an entry in auto-correct: COVID-119 >> COVID-19 (In reply to Shantanu from comment #5) > Or you can add an entry in auto-correct: The limitation of autocorrect is that it can only handle specific replacements, you could have one for Covid-119, but how about Covid-199 or Covid-18 as examples of different typos. |