PDA

View Full Version : php spelling


ChronicleX.com
05-19-2005, 11:18 AM
Hi,

I want to make a script for my phpbb/website that checks for spelling mistakes and gives a list of words that could match like MS word spell check. So there will be a button next to submit post to spell check your message.

Would this be hard for a new php coder to do?

Please don’t reply with google links of scripts to download as I want to learn something and make this my self With a bit of help though.

it's got to fit all versions of phpbb. I think it will be ok with no matter what changes on my site.

I don’t want a full script but if someone could show me a little of how it could be done or give me some code to start from I would be very happy. Or even maybe something to look up.

Thanks

SeeIT Solutions
05-19-2005, 11:51 AM
the coding probably would be all that hard, adding a couple million words to a dictionary database would be.

ChronicleX.com
05-19-2005, 12:02 PM
the coding probably would be all that hard, adding a couple million words to a dictionary database would be.


that sounds fun lol

i thought you might have to do something like that.

i will just nick errrr borrow a few words from a dick somewhere :D

or a could just do the most common misspelled sdrow

marek_mar
05-19-2005, 03:17 PM
Ok first of all there is SpellingCow (http://www.spellingcow.com) for phpbb. You Spelling can be done with php using the pspell (http://www.php.net/pspell) functions. You can find dictionarys for the pspell/aspell library not only in english.

ChronicleX.com
05-19-2005, 03:38 PM
i guess that gives me start am going to have to do a lot of reading i will post my errors in here when i start making it ;)

ChronicleX.com
05-20-2005, 02:53 PM
what do i start with in Table of Contents in that link you posted me?

not sure what command to start with? :confused:



<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/dictionaries/custom.pws");
pspell_config_repl($pspell_config, "/dictionaries/custom.repl");
$pspell_link = pspell_new_personal($pspell_config, "en");
?>




maybe i start with that?????? it says error line 2 tho????

marek_mar
05-20-2005, 03:07 PM
What error?

ChronicleX.com
05-24-2005, 02:35 PM
Fatal error: Call to undefined function: pspell_config_create() in /script.php on line 2

delinear
05-24-2005, 02:47 PM
PHP on your server probably wasn't compiled with pspell support. You can check this by looking at the PHP info and look for the PSPELL section. It should say "PSpell Support enabled" - if it doesn't, you can't use PSpell unless your host recompile with the proper modules.

ChronicleX.com
05-24-2005, 02:53 PM
great thanks i will get right onto my host :rolleyes: