PSPELL error 'No word lists can be found for the language 'en'

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Jan 07, 2022 4:22 pm

My ISP where my web site is hosted is running CloudLinux OS. I'm currently using PHP 7.4, and PSPELL is already installed.

When my php file tries to execute:
$pspell = pspell_new("en");

I get this error message:
pspell_new(): PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".

It seems that an English dictionary file or folder needs to be stored somewhere. I've downloaded aspell6-en-2020.12.07-0 which contains 98 files which I can upload, but into what folder on the server would I upload it and how will PSPELL know which folder? Perhaps the dictionaries need to be installed in a different place? Ultimately I want my php program to be able to check the spelling of words in different languages.
Post Reply