5

With the ascii apostrophe ', the spell checker defaults to treating words with a genetive s as bad; can that be remedied?

  • 3
    I don't see this problem with 'spelllang' set to en, unless it is clearly wrong, e.g.: dog's is displayed without any mark, while the's is marked as an error. Can you please provide a example and the value of 'spelllang' you are using? – mMontu Feb 23 '16 at 17:55
  • @mMontu, Sorry, I see now that it is only a problem with some words. Examples: potential's, something's. – Toothrot Feb 23 '16 at 20:25
4

The words potential's and something's are not in the default spell file.

I checked this by enabling spell checking, and then using the :spelldump command. This will create a new buffer with all valid words.

If you do :g/'s$/ you will see that words ending with 's are separate entries.

So your solution is to add these words to the spell file. This can be done easily with either zg from normal mode, or the :spellgood command.

| improve this answer | |
  • 1
    I was hoping for something less cumbersome. Would it not be possible to make the spell checker treat the apostrophe as a word boundary? Even if there should be any word that could not be put into the genetive, I don't see much danger of doing it by mistype. – Toothrot Feb 24 '16 at 14:04
  • 1
    @Lawrence Not easily as far as I can see. See the "WORDS" section in :help spell. You can probably hack the binary .spl file, but adding a few words to a spellfile is probably easier... – Martin Tournoij Feb 24 '16 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.