Spellchecker API is not working

Avatar

Avatar
Validate 1
Level 2
Niveshchandra
Level 2

Likes

6 likes

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
Level 2
Niveshchandra
Level 2

Likes

6 likes

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Niveshchandra
Level 2

22-04-2020

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.

Accepted Solutions (0)

Answers (0)