Questions tagged [pspell]

31 questions
8
votes
3 answers

Adding a dictionary to Aspell/Pspell

I have Aspell successfully installed and have compiled PHP with Pspell, and everything seems to be working fine. The only thing I am unable to do, is create a list of "ignore" words, or a personal dictionary, however you want to refer to it. I've…
edeneye
  • 447
  • 1
  • 4
  • 12
4
votes
2 answers

pspell and aspell with php for german language

I am trying to use the pspell in combination with aspell for PHP. I have installed it on this way: sudo apt-get install libpspell-dev sudo apt-get install php5-pspell sudo apt-get install aspell-de After that, here is an example code: $pspell_link…
Mutatos
  • 1,675
  • 4
  • 25
  • 55
3
votes
1 answer

Pspell don't work

Please, help me with pspell problem. I have installed aspell and I have done following comands in terminal: sudo apt-get install libpspell-dev sudo apt-get install php7.0-pspell sudo apt-get install aspell-en My os is linux Mint 17. PHP - 7.0.28.…
Aleksej_Shherbak
  • 2,757
  • 5
  • 34
  • 71
3
votes
1 answer

Convert American words to British equivalent

I have a function that auto corrects a string. It corrects misspelled words as expected. This issue I'm facing is that it will not correct an American spelled word into it's British equivalent. $pspell =…
steve
  • 471
  • 6
  • 15
3
votes
0 answers

how can I install pspell in php5/windows

I have installed pspell according to http://pritomkumar.blogspot.com/2013/04/enabling-pspell-for-php-in-xampp-on.html but when trying to restart xampp apache shows me the error: PHP Startup: Invalid library (maybe not a PHP library) 'php_pspell.dll'
Pritom
  • 1,294
  • 8
  • 19
  • 37
2
votes
0 answers

How to configure pspell extension in WAMP (php spell checker)

I am trying to configure my WAMPServer to use PHP Spellchecker. As stated I installed ASPELL/PSPELL from http://aspell.net/win32/ and tried configuring the extension. But I am unable to do it. In every forum they have asked to install ASPELL/PSPELL,…
2
votes
2 answers

How to get list of supported languages/dictionaries using pspell API?

pspell Is there a way to get an array of dictionaries that pspell supports, preferably with their full human-readble names, using the PHP API? For the time being I'm doing it this way: $dicts = explode(PHP_EOL,rtrim(`aspell dicts`)); But that still…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
1
vote
0 answers

How can I install the Pspell functions in XAMPP (Windwos/PHP 8)?

Unfortunately, all the answers did not help. Is there a way to install the Pspell library in XAMPP (3.3.0 / PHP 8.1.6)? https://www.php.net/manual/en/ref.pspell.php Or is there any alternative for pspell in PHP?
1
vote
0 answers

PSPELL couldn't open the dictionary

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 the English dictionary file needs to…
bobonwhidbey
  • 485
  • 7
  • 17
1
vote
1 answer

Error on circleci deployment on pspell debian

Well I get this error on CircleCI: checking for PSPELL support... yes, shared configure: error: Cannot find pspell when I run this step: - run: sudo docker-php-ext-install pspell I check online and find the solución but only for yum yum install…
CutePotato
  • 191
  • 1
  • 8
1
vote
0 answers

PHP pspell_check returns always FALSE

I want to use pspell_check to determine the complexity of passwords chosen by users. The problem is that my code, inspired by the basic examples available on the web, always returns FALSE. Example code: $pspell_link = pspell_new('en'); echo…
Marc Ruef
  • 3,251
  • 1
  • 11
  • 13
1
vote
1 answer

How can I test pspell?

This was working fine then I switched to the cpanel with godaddy. If I run a test with my php info its says that pspell is enabled. Does anyone know of a way to test for errors, or even possibly a fix? $pspell_config =…
1
vote
1 answer

Extract valid words from a text file PHP

I have created a PHP code that extracts valid words form a text file : $pspell_link = pspell_new("en"); $handle = fopen("list.txt", "r"); if ($handle) { while (($line = fgets($handle)) !== false) { $line =…
Kareem Connor
  • 63
  • 1
  • 6
1
vote
3 answers

Case-insensitive PSpell spell checking?

I'd like to use PHP's PSpell check function in my program. Is there an option somewhere for case-insensitive checking in pspell_check()?
Jon Gauthier
  • 25,202
  • 6
  • 63
  • 69
1
vote
2 answers

PHP: Add words to pspell?

I am using pspell like this: $ps = pspell_new("en"); if(!pspell_check($ps, $word)) { $suggestion = pspell_suggest($ps, $word); } However I want to added some industry terms to the list. I looked up pspell_add_to_session which says the first…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
1
2 3