Nanospell Spell Checking Software Components
JavaScript jQuery CKEditor TinyMCE PHP ASP.Net Classic ASP

PHP SpellChecker

The PHP Spell Check Settings File

  1. 1 Finding Your Settings File
  2. 2 Creating A New Settings File
  3. 3 Editing The Settings File
    1. 3.1 Registration
    2. 3.2 Basic Settings
    3. 3.3 Basic Settings
    4. 3.4 Suggestion Tolerance
    5. 3.5 Suggestion Tolerance
    6. 3.6 Dictionary Path
    7. 3.7 Custom Vocabulary
    8. 3.8 Banned Words
    9. 3.9 Enforced Corrections
    10. 3.10 Common Typing Mistakes

The settings file allows developers to fine tune the behavior of the spellchecker engine behind the SpellCheckButton and SpellAsYouType user interfaces.

Settings in this file are at server level - and so cannot be accessed though the usual APIs for security reasons.

Finding Your Settings File

The settings file is located at /phpspellcheck/core/settings/default-settings.php

Creating A New Settings File

  1. Duplicate '/phpspellcheck/core/settings/default-settings.php
  2. Rename to my-settings.php
  3. In your SpellCheckButton and SpellAsYouType implementations set the SettingsFile property to 'my-settings'

Editing The Settings File

REGISTRATION

This allows you to apply a professional Live-Spell License Key.

BASIC SETTINGS

This allows you to change the default values of basic spellchecking settings $spellcheckObject -> IgnoreAllCaps = false; $spellcheckObject -> IgnoreNumeric = false; $spellcheckObject -> CaseSensitive = true;

BASIC SETTINGS

This allows you to change the default values of basic spellchecking settings

SUGGESTION TOLERANCE

Set the tollerance of the spellchecker to 'unlikely' suggestions. 0=few suggestions ... 10=more suggestions

SUGGESTION TOLERANCE

Set the tollerance of the spellchecker to 'unlikely' suggestions. 0=few suggestions ... 10=more suggestions

DICTIONARY PATH

Set up the file path to the (.dic) dictionaries folder

CUSTOM VOCABULARY

Add vocabulary to the spellchecker from a text file loaded from the DictionaryPath

BANNED WORDS

Ban a list of words which will never be allowed as correct spellings. This is great for filtering profanity.*/

You can also add banned words from an array which you could easily populate from an SQL query

Read more about Banned Words and Strict Legal Spellchecking...

ENFORCED CORRECTIONS

$spellcheckObject -> LoadEnforcedCorrections("language-rules/enforced-corrections.txt");

COMMON TYPING MISTAKES