Currently, a call to
println(NSSpellChecker.sharedSpellChecker().availableLanguages)
prints out this list of languages:
[en_GB, en, en_AU, en_CA, en_IN, da, de, es, fr, it, nl, nb, pt_BR, pt_PT, sv, tr, ru]
I need to work with 2 more, so I followed the answer here and successfully added these 2 languages to my mac's spell checker. So yes, I have now system wide spell checking in these to aditional languages. And they show in available spell check languages as well as show on following screenshot - first language Slovenčina is new (it's code is sk):

Unfortunatelly, NSSpellChecker seems to not have registered these new languages as they are not listed as available. List of available languages is unchanged, as shown above.
Is there a way to make NSSpellChecker work with these added languages?
It seems like the NSSpellChecker class has some bugs in it. There already was a discussion about a bug with custom NSSpellChecker servers back in 2008 (which was fixed few months later).
At the moment I suggest you to file a bugreport since your code is correct as the documentation and the compiler says.
Update
There are lots of other bugs regarding the NSSpellChecker class, so it doesn't surprise me, that you just found another one.
countWordsInString:language:NSSpellCheckerCheckStringBuggy NSSpellChecker it seems...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With