With the ascii apostrophe ', the spell checker defaults to treating words with a genetive s as bad; can that be remedied?
Asked
Active
Viewed 486 times
5
1 Answers
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.
Martin Tournoij
- 62,054
- 25
- 192
- 271
-
1I 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
'spelllang'set toen, unless it is clearly wrong, e.g.:dog'sis displayed without any mark, whilethe'sis marked as an error. Can you please provide a example and the value of'spelllang'you are using? – mMontu Feb 23 '16 at 17:55potential's,something's. – Toothrot Feb 23 '16 at 20:25