Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Web Page and HTML Spell Checker

Our web site consists of some 7000 different URLs - we aim to add one or two new pages every day; they may be technical tips on the blog, answers to questions on our forum, or just general information pages. And it's so easy to make typing mistakes - especially when there's no spell checker in the application that we're using!

This solution centre page provides you with the links to a web page spell checker that was written initially as a "test of concept" but has proven to be rather useful to us - it's certainly allowed me to find a few rather embarrassing typos that have been on our site for quite a while.

HOW DOES IT WORK?

The application reads in a complete file of HTML, a block of HTML from a textarea, or even a full URL (yes, you can use it to test a live web site too).

We use the PHP striptags function to remove all the tags (with extra code to remove Javascript too) and we then break up the page into a series of tokens - words (or wannabe words), punctuation and spaces.

The dictionary that's supplied with Linux and Unix operating systems is read into an associative array, and each incoming word from the HTML is the checked against that associative array (the keys are the words - done for efficiency). An extra file of our own acceptable words has been added too - the original dictionary is now a bit old and non-technical.

Many words have derivates - big, bigger, biggest for example - and if the initial match fails there's a series of derivative checks made too.

CAN I USE THE SPELLCHECKER?

You are very welcome to run a few pages through the spell checker on this site - but please be mindful of the resources and bandwidth you will be using; we've added an unpublished "cap" into the live script.

>> Run the spell checker
You are welcome to adopt and adapt our source code for use on your own web site, but we do ask you to refer other people back to this page if they want to use it too. You may NOT ask for payment from anyone for use of this script, you may NOT charge for implementing on anyone else's site, and you may NOT republish it.

>> View the source code
ENHANCEMENTS

This script could be enhanced to add facilities such as:

1. Suggestions of corrected spellings

2. Your own private dictionary

3. Logging in, authorisation, charging and accounting facilities

If you would like to learn PHP so that you can add these facilities, or if you would like to enquire about specific tailored training and help installing the code, please contact us.

See also Run the spell checker

Please note that articles in this section of our web site were current and correct to the best of our ability when published, but by the nature of our business may go out of date quite quickly. The quoting of a price, contract term or any other information in this area of our website is NOT an offer to supply now on those terms - please check back via our main web site

Related Material

String Handling in PHP
  [31] - ()
  [54] - ()
  [337] - ()
  [422] - ()
  [463] - ()
  [493] - ()
  [558] - ()
  [560] - ()
  [574] - ()
  [589] - ()
  [608] - ()
  [642] - ()
  [716] - ()
  [728] - ()
  [1008] - ()
  [1058] - ()
  [1195] - ()
  [1336] - ()
  [1372] - ()
  [1533] - ()
  [1603] - ()
  [1613] - ()
  [1799] - ()
  [2046] - ()
  [2165] - ()
  [2238] - ()
  [2629] - ()
  [3020] - ()
  [3424] - ()
  [3515] - ()
  [3516] - ()
  [3534] - ()
  [3788] - ()
  [3789] - ()
  [3790] - ()
  [4071] - ()
  [4072] - ()

resource index - PHP
Solutions centre home page

You'll find shorter technical items at The Horse's Mouth and delegate's questions answered at the Opentalk forum.

At Well House Consultants, we provide training courses on subjects such as Ruby, Lua, Perl, Python, Linux, C, C++, Tcl/Tk, Tomcat, PHP and MySQL. We're asked (and answer) many questions, and answers to those which are of general interest are published in this area of our site.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/solutions/php-web- ... ecker.html • PAGE BUILT: Wed Mar 28 07:47:11 2012 • BUILD SYSTEM: wizard