hunspell
hunspell copied to clipboard
Command-line version of Hunspell deletes the period
The command-line version of Hunspell deletes the period at the sentence end if a misspelled word happens to be the last word in a sentence and the user accepts one of the suggestions. That is, it replaces the misspelled word and the period with the suggestion.
Here is an example:
echo >/tmp/test Merci pour ta reponse.
hunspell -d fr_FR /tmp/test
Hunspell now proposes to replance "reponse." (including the period) with "réponse".
This is with Hunspell 1.6.1 from Debian testing.
I use hunspell within emacs, and this problem is rather annoying. @dimztimz, you seem to be the most active developer at the moment, can you see whether this is easy to fix? I can try to work on it myself, but I'd appreciate some guidance.
It's probably somewhere in the text parser.
I don't have easy fix. Our plans right now are to fix only critical bugs if they appear in 1.6.x. All other work is focused on version 2 in which we will consider this issue. So it will take some time.
It could be that the text parser puts the word and the period in the same token, "response." and then the suggestion comes without the dot.
This is not the only issue regarding punctuation. All of them will be taken into account in v2.
This is not the only issue regarding punctuation. All of them will be taken into account in v2.
Thanks for the information. I think I'll wait for v2 then.
I understand that it takes time to fix bugs, and I have my own backlog myself. But is there any chance of this getting fixed any time soon? Or is there at least a workaround?
I use hunspell within Emacs every day, and this issue is rather annoying...