hunspell icon indicating copy to clipboard operation
hunspell copied to clipboard

Command-line version of Hunspell deletes the period

Open janschreiber opened this issue 9 years ago • 5 comments

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.

janschreiber avatar Feb 12 '16 12:02 janschreiber

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.

grothesque avatar Aug 31 '17 08:08 grothesque

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.

dimztimz avatar Aug 31 '17 10:08 dimztimz

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.

dimztimz avatar Aug 31 '17 10:08 dimztimz

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.

grothesque avatar Aug 31 '17 13:08 grothesque

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...

grothesque avatar Jan 10 '20 09:01 grothesque