Could you improve the Hunspell engine to make it more accurate just like in M$ Office?
I have this idea.
Imagine someone types a words with an hyphen and the word is not in the speller.
What happens currently is that if the word before and after the hyphen are in the speller, no typo is reported.
I would like an enhancement that would work like this:
Imagine I typed:
If Hunspell didn't find this exact match, it would search for the word without the hyphen.
If found without the hyphen, "online", it would mark the current word as a typo and suggest the one in the speller.
This is just a small example to explain because "on-line" and "online" are both in the spellers.
[11:03] <MarkHung> marcoagpinto: regarding tdf#106640, if you're reporting that issue, at least you should highlight the difference between LibreOffice and MS Office, and state which part do you want.
[11:04] <MarkHung> Otherwise it is very likely to be a invalid bug.
[11:05] <marcoagpinto> What I mean is "abc-def", if the words "abc" and "def" exist in the speller, Hunspell won't mark as a typo, but if it doesn't find "abc-def" and finds "abcdef" would suggest "abcdef"
[11:06] <marcoagpinto> tml__: that is how M$ Word works
So, M$ Word is better in this case
[11:07] <MarkHung> Search without hyphen if the target with hyphen is concrete but "more accurate just like in M$ Office" is vague.
[11:10] <marcoagpinto> MarkHung: what I mean is that if no word with hyphen is found in the speller, but it checks without the hyphen, and if it finds, it will suggest without the hyphen
Huspell is an independent project and its bugs should be reported here: http://hunspell.github.io/
Conditional checking of the words with hyphens is a good idea. Thanks for the suggestion, I'll check it.
By the way, you can forbid "on-line" with the recent Hunspell, too, if needed, using
in the affix file, see tests/breakoff* in the Hunspell source distribution. But this will forbid all non-dictionary words with hyphens.
(In reply to László Németh from comment #4)
> Best regards,
Thanks for replying!