[PHP] Spell Checker
Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. Regards BH.VN.Viswanath
Re: [PHP] Spell Checker
BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. by all means ask a question. oh btw, I doubt there are many tools out there capable fo smelling that you want a space between the 'e' and the 't' of onlinetradeing. Regards BH.VN.Viswanath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Spell Checker
Possibly the Porter Stemming Algorithm could help you? Just an idea . . . Basically I'm thinking that in each string, you would break it down into a combination of root words and Prefixes and suffixes. Definitely some serious data crunching going on. Hope this helps. http://www.chuggnutt.com/stemmer.php (this just just one implementation of it) See this for the background theory and more info: http://en.wikipedia.org/wiki/Stemming_algorithm Dan -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:31 AM To: BH.VN.Viswanath Cc: php-general@lists.php.net Subject: Re: [PHP] Spell Checker BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. by all means ask a question. oh btw, I doubt there are many tools out there capable fo smelling that you want a space between the 'e' and the 't' of onlinetradeing. Regards BH.VN.Viswanath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Spell Checker
Hi, Can you please mention those tools ? I am unaware of any tool of that kind Regards BH.VN.Viswanath -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:01 PM To: BH.VN.Viswanath Cc: php-general@lists.php.net Subject: Re: [PHP] Spell Checker BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. by all means ask a question. oh btw, I doubt there are many tools out there capable fo smelling that you want a space between the 'e' and the 't' of onlinetradeing. Regards BH.VN.Viswanath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
BH.VN.Viswanath wrote: Hi, Can you please mention those tools ? I am unaware of any tool of that kind I said 'I doubt there are many tools ...' which strongly suggests that I don't know off the top of my head any tools/software that will allow someone with absolutely no knowledge of dictionary/spelling algorithm 'magic'/etc to go about implementing a routine that will automatically split a string of characters into two or more strings at exactly the point you it to be split unless that routine involves _you_ doing it manually at a keyboard. software doesn't generally do well at either mind-reading or smelling. maybe google will launch GoogleSmell[tm] soon - in the mean time try their search engines (anyones search engine for that matter - Yahoo! is another good one to get you going) ... or do you expect me to do the searching for you? (like some of your country-men have seemed to in the past) Regards BH.VN.Viswanath -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:01 PM To: BH.VN.Viswanath Cc: php-general@lists.php.net Subject: Re: [PHP] Spell Checker BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. by all means ask a question. oh btw, I doubt there are many tools out there capable fo smelling that you want a space between the 'e' and the 't' of onlinetradeing. Regards BH.VN.Viswanath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
BH.VN.Viswanath wrote: Hi I just asked you because I m unaware of those things. All wont be the same.. better stop blaming and criticizing and work on the things. And My country the critique is justified because you _just_ asked - you didn't (seemlingly) make any effort to even do a 5 second search for anything related to what you want to achieve. and there was no blame placed anywhere, btw. people don't criticize like U. I serously doubt that of the 800million+ people currently living in in the Indian subcontinent none of them have ever critizised anything. as an example: the guy that owned this blog, http://mediaah.blogspot.com/, obviously critizised something or somebody (given that he was server a take down notice). UR country people do such things. which country might that be then? :-P Thanks for your help -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 2:43 PM To: BH.VN.Viswanath Cc: php-general@lists.php.net Subject: Re: [PHP] Spell Checker BH.VN.Viswanath wrote: Hi, Can you please mention those tools ? I am unaware of any tool of that kind I said 'I doubt there are many tools ...' which strongly suggests that I don't know off the top of my head any tools/software that will allow someone with absolutely no knowledge of dictionary/spelling algorithm 'magic'/etc to go about implementing a routine that will automatically split a string of characters into two or more strings at exactly the point you it to be split unless that routine involves _you_ doing it manually at a keyboard. software doesn't generally do well at either mind-reading or smelling. maybe google will launch GoogleSmell[tm] soon - in the mean time try their search engines (anyones search engine for that matter - Yahoo! is another good one to get you going) ... or do you expect me to do the searching for you? (like some of your country-men have seemed to in the past) Regards BH.VN.Viswanath -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:01 PM To: BH.VN.Viswanath Cc: php-general@lists.php.net Subject: Re: [PHP] Spell Checker BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. by all means ask a question. oh btw, I doubt there are many tools out there capable fo smelling that you want a space between the 'e' and the 't' of onlinetradeing. Regards BH.VN.Viswanath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
At 12:42 PM +0530 4/18/06, BH.VN.Viswanath wrote: Hi We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. When your post was checked, I found words that were absent, such as: Google, Google search, and any attempt at finding a solution besides posting this nonsense to a php list. Your question is as shallow as the solution you seek is complex -- try thinking about it for a while. tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. Ok, this is gonna show how bored I've been today, maybe I need to find a more interesting job!! http://dev.stut.net/words/ There's a link there to the source of the guts. Hope it helps you. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
Stut wrote: BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. Ok, this is gonna show how bored I've been today, maybe I need to find a more interesting job!! http://dev.stut.net/words/ There's a link there to the source of the guts. Hope it helps you. -Stut lol. Awesome =) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
Stut wrote: BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. Ok, this is gonna show how bored I've been today, maybe I need to find a more interesting job!! http://dev.stut.net/words/ There's a link there to the source of the guts. Hope it helps you. nice :-) -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
Stut wrote: Ok, this is gonna show how bored I've been today, maybe I need to find a more interesting job!! http://dev.stut.net/words/ There's a link there to the source of the guts. Hope it helps you. Still bored!! It can now order the results by average word length which pushes the less likely results to the end. *Twiddles thumbs* -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
On Tue, April 18, 2006 2:12 am, BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. Okay. Who's going to split it into words for you?... There are only so many choices, here: #1. Brute force. spellcheck('o nlinetrading'); spellcheck('on linetrading'); spellcheck('onl inetrading'); . . . Plus, you have to consider that it might be THREE words in the domainname... This means you have WAY too many things to check. #2. Some human reads the domainname and types in the words. #3. If these are existing valid domains with content, read the HTML and see if you can find the domain name in the content, but with spaces. I don't think you can do this with a single regex or anything, but it's at least in the realm of possible. #4. Solve the AI problem. :-) You'd have to get the computer to know what words are in the domainname, somehow, by being intelligent. Also note that things like nite are not correctly spelled, but humans have absolutely no problem with something like goodnitesite and knowing that it's probably about sleeping or something of that nature. So your spelling check is probably useless in the first place, when you get right down to it... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
On Tue, April 18, 2006 9:53 am, Stut wrote: BH.VN.Viswanath wrote: We need to check the spelling of a word which is actually a Domain name. For example we have to check the word onlinetradeing. When checked with the spell checkers we are getting the words which are unrelated such as on, obliterating, incinerating, intruding etc. But exactly what we want was online trading. So we would like to have the word to be split into phrases and check the spelling too. The normal spell checkers are just checking the words in the dictionary but not splitting the word into phrases. Ok, this is gonna show how bored I've been today, maybe I need to find a more interesting job!! http://dev.stut.net/words/ There's a link there to the source of the guts. Hope it helps you. You may find a longer (possibly better, or not) list of words in: /usr/share/dict/web2 Or similar location. Here is the README from that directory: # @(#)README 8.1 (Berkeley) 6/5/93 # $FreeBSD: src/share/dict/README,v 1.7.2.2 2002/08/20 21:42:32 alfred Exp $ WEB (introduction provided by [EMAIL PROTECTED]) - Welcome to web2 (Webster's Second International) all 234,936 words worth. The 1934 copyright has elapsed, according to the supplier. The supplemental 'web2a' list contains hyphenated terms as well as assorted noun and adverbial phrases. The wordlist makes a dandy 'grep' victim. -- James A. Woods{ihnp4,hplabs}!ames!jaw(or [EMAIL PROTECTED]) Dictionaries for other languages, e.g. Afrikaans, American, Aussie, Chinese, Croatian, Czech, Danish, Dutch, Esperanto, Finnish, French, German, Hindi, Hungarian, Italian, Japanese, Latin, Norwegian, Polish, Russian, Spanish, Swahili, Swedish, Yiddish, are available at ftp://ftp.ox.ac.uk/pub/wordlists. Country names are stored in the file /usr/share/misc/iso3166. FreeBSD Maintenance Notes - Note that FreeBSD is not maintaining a historical document, we're maintaining a list of current [American] English spellings. A few words have been removed because their spellings have depreciated. This list of words includes: corelation (and its derivatives) -- correlation is the preferred spelling -- A list of technical terms has been added in the file 'freebsd'. This word list contains FreeBSD/Unix lexicon that is used by the system documentation. It makes a great ispell(1) personal dictionary to supplement the standard English language dictionary. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell Checker
Richard Lynch wrote: You may find a longer (possibly better, or not) list of words in: /usr/share/dict/web2 Or similar location. Here is the README from that directory: # @(#)README 8.1 (Berkeley) 6/5/93 # $FreeBSD: src/share/dict/README,v 1.7.2.2 2002/08/20 21:42:32 alfred Exp $ WEB (introduction provided by [EMAIL PROTECTED]) - Welcome to web2 (Webster's Second International) all 234,936 words worth. I did find a wordlist named web2 that contained roughly that number of words, unfortunately it contained far too much noise to be useful for this utility. For example it had a-z as single letters instead of just 'a' and 'i' which really messed it up. Of course if I was going to use it in a production system it would evolve over time, and I might take the time to clean a wordlist such as this to remove noise like that. Thanks for the suggestion tho. Dictionaries for other languages, e.g. Afrikaans, American, Aussie, Chinese, Croatian, Czech, Danish, Dutch, Esperanto, Finnish, French, German, Hindi, Hungarian, Italian, Japanese, Latin, Norwegian, Polish, Russian, Spanish, Swahili, Swedish, Yiddish, are available at ftp://ftp.ox.ac.uk/pub/wordlists. The table has a field for the language. My original intention was to import wordlists in several languages and to add a language selection field to the form, but it started to seem more like work than play so I didn't bother. It would be trivial to add tho. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP spell checker for Textarea
HI all, Does anyone know of a decent spell checker for an HTML textarea? Thanks in advance Angelo Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP spell checker for Textarea
[snip] Does anyone know of a decent spell checker for an HTML textarea? [/snip] Google is your friend.at least he/she/it is mine... http://www.google.com/search?hl=enlr=q=PHP+spell+checker+for+text+area -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP spell checker for Textarea
Angelo Zanetti wrote: HI all, Does anyone know of a decent spell checker for an HTML textarea? http://us4.php.net/manual/en/ref.pspell.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP spell checker for Textarea
Jay Blanchard wrote: Google is your friend.at least he/she/it is mine... You lie!!! You have no friends!!! ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP spell checker for Textarea OT
[snip] Google is your friend.at least he/she/it is mine... You lie!!! You have no friends!!! ;) [/snip] *sniff* yes I do have friendsjust not losers like you ;) j/k of course Happy Holidays All! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP spell checker for Textarea
On 25/11/2004, at 1:13 AM, Angelo Zanetti wrote: HI all, Does anyone know of a decent spell checker for an HTML textarea? most decent browsers (firefox, safari, etc) have one built in :) Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell checker in PHP
Justin, I don't know what version of Word you have, but XP seems to do fine with correcting city names. Alex Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday, January 10, 2004, at 06:57 AM, Robin Kopetzky wrote: Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the user mangles the words. U, does is Word actually capable of City/State names? To the best of my knowledge (I don't use Word), Word checks against a dictionary (US/UK/AU English, etc)... I wouldn't think these dictionaries would extend as far as all City State names applicable for that dictionary. That's insane. Although technically, you *could* add them all to Word's dictionary. However, my point is, Spell-checking of City State names isn't common, because it's too hard for the dictionaries to keep up with the list. So, if Word can't offer this feature, why would your web application need it? Also, given the global nature of the web, you'd have a LOT of data entry to do :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Spell checker in PHP
There are a lot of words in the spelling checking in Microsoft products that isn't part of what you'd consider a standard 'dictionary', like city names and such. I think for spell checking, using the internal spell check in Word would be best, but if you ever decided to work on Word-PHP integration, look into COM. I havn't played around with it a lot, but someone at my work doubted I could use PHP to control Microsoft MapPoint. I got just far enough to prove them wrong before getting busy. $mappoint = new COM(mappoint.application) or die(Unable to instanciate mappoint); print Loaded mappoint, version {$mappoint-Version}\n; $map = new COM(mappoint.map) or die (Unable to instanciate map); $map = $mappoint-NewMap or die (Unable to NewMap); $map-Name = Test or die (Unable to Name);; $mappoint-Visible = 1; You should be able to do similar things with almost all the latest Microsoft applications, even if they don't have an obvious VBA editor built in like Access and Excel do. -TG -Original Message- From: Alex King [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Spell checker in PHP Justin, I don't know what version of Word you have, but XP seems to do fine with correcting city names. Alex Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday, January 10, 2004, at 06:57 AM, Robin Kopetzky wrote: Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the user mangles the words. U, does is Word actually capable of City/State names? To the best of my knowledge (I don't use Word), Word checks against a dictionary (US/UK/AU English, etc)... I wouldn't think these dictionaries would extend as far as all City State names applicable for that dictionary. That's insane. Although technically, you *could* add them all to Word's dictionary. However, my point is, Spell-checking of City State names isn't common, because it's too hard for the dictionaries to keep up with the list. So, if Word can't offer this feature, why would your web application need it? Also, given the global nature of the web, you'd have a LOT of data entry to do :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell checker in PHP
On Saturday, January 10, 2004, at 06:57 AM, Robin Kopetzky wrote: Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the user mangles the words. U, does is Word actually capable of City/State names? To the best of my knowledge (I don't use Word), Word checks against a dictionary (US/UK/AU English, etc)... I wouldn't think these dictionaries would extend as far as all City State names applicable for that dictionary. That's insane. Although technically, you *could* add them all to Word's dictionary. However, my point is, Spell-checking of City State names isn't common, because it's too hard for the dictionaries to keep up with the list. So, if Word can't offer this feature, why would your web application need it? Also, given the global nature of the web, you'd have a LOT of data entry to do :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Spell checker in PHP
Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the user mangles the words. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Spell checker in PHP
Haven't heard of anyone doing this, and it's got to be slow but you could consider creating a word document, invoking word, and saving/retrieving the results. I would start with http://www.php.net/manual/en/ref.com.php this should show you how to invoke word from your php script since you are on windows. good luck, Warren Vail -Original Message- From: Robin Kopetzky [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 11:58 AM To: PHP General Subject: [PHP] Spell checker in PHP Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the user mangles the words. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Spell checker in PHP
I used system call to a dos spell checker program from here http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html#ftp-sites using the places2k.txt file from the US census as the dictionary http://www.census.gov/geo/www/gazetteer/places2k.html -Dave At 02:57 PM 1/9/2004, Robin Kopetzky wrote: Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check spelling on city/state names and select the most appropriate if the user mangles the words. Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php David G. O'Brien Web Services Coordinator / Systems Administrator NACCRRA The Nation's Network of Child Care Resource Referral 1319 F Street NW, Suite 500 Washington, DC 20004 (202) 393-5501 ext. 113 (202) 393-1109 fax
[PHP] spell checker
I need to install a spell checker on a content management system that I wrote in PHP a few months ago. I've found a free, simple spell checker written in ASP that I can easily port to PHP, but the more daunting task for me is creating the JavaScript to implement the spell checker. I haven't been able to find an existing, inexpensive PHP spell checker solution. Can anyone direct me to one or provide advice? Thanks. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] spell checker
Google it!! http://www.google.com/search?hl=enie=ISO-8859-1q=php+spell+checkerbtnG=Go ogle+Search Seems to be a few good starts on the first 10 results!! Justin French on 01/10/02 10:10 PM, Lowell Allen ([EMAIL PROTECTED]) wrote: I need to install a spell checker on a content management system that I wrote in PHP a few months ago. I've found a free, simple spell checker written in ASP that I can easily port to PHP, but the more daunting task for me is creating the JavaScript to implement the spell checker. I haven't been able to find an existing, inexpensive PHP spell checker solution. Can anyone direct me to one or provide advice? Thanks. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] spell checker
Running a spell-checker and highlighting problems with a web-interface for the original author to decide what to do is probably the ideal middle ground... It's not a trivial HTML/browser interface to write, but it shouldn't kill you to do it. If you don't have pspell/aspell/ispell/uspell/weallspell compiled in, you *MIGHT* be able to compile it dynamically and use dl() to load it, if your ISP was not competent enough to turn that off... At least, I *think* that's a true statement... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Michael Hall [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, August 06, 2001 12:02 AM Subject: Re: [PHP] spell checker Justin: IMHO it would be very difficult to build/use a reliable spell checker that worked automatically. Natural languages are just too complex and ambiguous. Look at how often something like Word or Star Office gets things wrong. 'Hare' is not spelled wrong unless you meant to write 'hair', for example. And spell checkers can't deal with scrambled syntax, etc. Go for a human editor if you want something approaching 100% reliability. Mick On Mon, 06 Aug 2001, Justin French wrote: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it's being supplied by writers world-wide, submitted dynamically. My other option is to have an editor approve each article before publishing, but I thought i'd at least ASK if nyone's attempted it. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Michael Hall mulga.com.au [EMAIL PROTECTED] ph/fax (+61 8) 8953 1442 ABN 94 885 174 814 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] spell checker
thanks to everyone for their help. it's not my server, so I doubt I can get a recompile, but it'll be worth a try. this message is worth discussing though: Michael Hall wrote: IMHO it would be very difficult to build/use a reliable spell checker that worked automatically. Natural languages are just too complex and ambiguous. Look at how often something like Word or Star Office gets things wrong. 'Hare' is not spelled wrong unless you meant to write 'hair', for example. And spell checkers can't deal with scrambled syntax, etc. I had a bit more of a think about *how* today. I'm thinking along the lines of looking for words not in the dictionary (eg caat) and then: a) alerting the user ('unknown word caat') b) offering alternatives ('did you mean cat|cart?') c) displaying the text for the user to review and resubmit I think the idea is to warn the user of unknown words, rather than trying to have a program automatically insert a word, in context with the surrounding words -- k, that'd be massive!! Essentially, the above solution would have to: 1. attempt to match every word in the string to a dictionary, and maybe even a user-defined dictionary 2. look for close matches (have no idea how to approach this!!) 3. spit the text back out in a form, with the alerts/suggestions 4. accept the next text submission regardless There could be other solutions like: 1. attempt to match every word in the string to a dictionary then, for each unknown word: 2. report the word, in context (3 words either side?), in a tect field to be directly edited 3. offer a drop down menu of suggestions 4. click submit, goes onto next word Seems like wy to much work (even out of my league) to contemplate for this project, but it could be an interesting hobby project later on :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] spell checker
Justin French wrote: I'm thinking along the lines of looking for words not in the dictionary (eg caat) and then: a) alerting the user ('unknown word caat') b) offering alternatives ('did you mean cat|cart?') 2. look for close matches (have no idea how to approach this!!) aspell_suggest() - http://www.php.net/aspell_suggest -- H | Life is the art of drawing without an eraser. - John Gardner + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 Director of Internet Operations / SysAdmin. 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave, #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] spell checker
Justin French: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it's being supplied by writers world-wide, submitted dynamically. My other option is to have an editor approve each article before publishing, but I thought i'd at least ASK if nyone's attempted it. I had the exact same situation as you, so I'm in the process of attempting it now (versions 0.1 and 0.2 released so far)... The one I built that uses a lot of client side Javascript (therefore requires IE5+ or NS6) and a call to XML-RPC service on a server. It's called XSpell, and you can find the demo at: http://www.northern.ca/projects/xspell/ And D/L the source off sourceforge at: http://sourceforge.net/projects/xspell/ Note: You need to build pspell support into PHP for the XML-RPC service to work. -Ironstorm Northern.CA ===-- http://www.northern.ca Canada's Search Engine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] spell checker
Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it's being supplied by writers world-wide, submitted dynamically. My other option is to have an editor approve each article before publishing, but I thought i'd at least ASK if nyone's attempted it. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] spell checker
http://php.net/pspell On Mon, 6 Aug 2001, Justin French wrote: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it's being supplied by writers world-wide, submitted dynamically. My other option is to have an editor approve each article before publishing, but I thought i'd at least ASK if nyone's attempted it. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] spell checker
On Mon, 6 Aug 2001 12:02, Justin French wrote: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it's being supplied by writers world-wide, submitted dynamically. My other option is to have an editor approve each article before publishing, but I thought i'd at least ASK if nyone's attempted it. Justin French You can configure support for aspell at compile time. From configure --help --with-aspell[=DIR] Include ASPELL support. And the functions available: http://au2.php.net/manual/en/ref.aspell.php Maybe something there will do what you want. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Not a computer nerd; merely a techno-weenie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] spell checker
Justin: IMHO it would be very difficult to build/use a reliable spell checker that worked automatically. Natural languages are just too complex and ambiguous. Look at how often something like Word or Star Office gets things wrong. 'Hare' is not spelled wrong unless you meant to write 'hair', for example. And spell checkers can't deal with scrambled syntax, etc. Go for a human editor if you want something approaching 100% reliability. Mick On Mon, 06 Aug 2001, Justin French wrote: Hi, I know this is a biggie, but has anyone attempted to write a spell check (preferably english) in PHP? I'd LOVE something that can spell-check user-submitted text somehow, becuase I'm writing a fully dynamic news-based site, and the only downfall to the site could be bad content, since it's being supplied by writers world-wide, submitted dynamically. My other option is to have an editor approve each article before publishing, but I thought i'd at least ASK if nyone's attempted it. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Michael Hall mulga.com.au [EMAIL PROTECTED] ph/fax (+61 8) 8953 1442 ABN 94 885 174 814 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Spell checker?
In article [EMAIL PROTECTED], Brandon Orther [EMAIL PROTECTED] wrote: Check here, I have never messed with it just ran into it the other day. I hope it helps. http://www.php.net/manual/en/ref.pspell.php Sort of. Thanks go to Kristi as well for spotting this, PHP has so many bult in functions already! The only problem is that the site host doesn't have this functionality installed, and as its a free host, I won't bother asking them. What I will probably have to do is make my own function/class using a great big list of words. Does anyone know where I could find a text list of every word in the English language ;-) Thanks, Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Spell checker?
Plain Text Dictionary: http://www.mso.anu.edu.au/~ralph/OPTED/ Word list: http://www.antionline.com/archives/text/word-lists/ I just found these by searching through Google you may find better. Kristi - Original Message - From: "Nik Gare" [EMAIL PROTECTED] To: "PHP User Group" [EMAIL PROTECTED] Sent: Saturday, January 20, 2001 8:10 AM Subject: Re: [PHP] Spell checker? In article [EMAIL PROTECTED], Brandon Orther [EMAIL PROTECTED] wrote: Check here, I have never messed with it just ran into it the other day. I hope it helps. http://www.php.net/manual/en/ref.pspell.php Sort of. Thanks go to Kristi as well for spotting this, PHP has so many bult in functions already! The only problem is that the site host doesn't have this functionality installed, and as its a free host, I won't bother asking them. What I will probably have to do is make my own function/class using a great big list of words. Does anyone know where I could find a text list of every word in the English language ;-) Thanks, Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Spell checker?
Nik Gare [EMAIL PROTECTED] wrote Does anyone know where I could find a text list of every word in the English language ;-) You could try (also) getting hold of ispell a search on www.google.com/linux or sunsite should get it. You'll need something capable of uncompressing tar archives to peek at it. -- ** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Spell checker?
Hi, I have a site which will be updated periodically by someone else, so have made some forms with textareas for them to upload the text into the MySQL database. I was wondering if there is a PHP function/class which could spell check these forms? TTFN Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Spell checker?
http://www.php.net/manual/en/ref.pspell.php There's also aspell which is deprecated. Kristi - Original Message - From: "Nik Gare" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 18, 2001 9:12 AM Subject: [PHP] Spell checker? Hi, I have a site which will be updated periodically by someone else, so have made some forms with textareas for them to upload the text into the MySQL database. I was wondering if there is a PHP function/class which could spell check these forms? TTFN Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Spell checker?
Check here, I have never messed with it just ran into it the other day. I hope it helps. http://www.php.net/manual/en/ref.pspell.php Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -Original Message- From: Nik Gare [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: [PHP] Spell checker? Hi, I have a site which will be updated periodically by someone else, so have made some forms with textareas for them to upload the text into the MySQL database. I was wondering if there is a PHP function/class which could spell check these forms? TTFN Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]