Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Spellchecker API is not working

Avatar

Level 2

Hi,

 

I used below code to perform spell check operation.

 

String[] dictionaryPaths = {"C:\\aem\\en_us.dic","C:\\aem\\en_us.aff"};

SpellChecker spellChecker = spellCheckerProvider.createSpellChecker("English",dictionaryPaths,resourceResolver);

 

But it giving exception like 

com.day.cq.spellchecker.SpellCheckException: No suitable dictionary found for language 'english'.

 

Can anyone please help me what is the parameter i need to give for language. I tried with en, en_us. No use with that also.

Thanks in advance.

0 Replies